@charset "utf-8";

/* ============================================================
   AUDIO PLAYER BRANDING (PLYR)
   ============================================================ */

/* Fix for dark text inside the blue player box */
#player-border h2, 
#player-border h3, 
#player-border p,
#player-border .song-details * {
    color: #ffffff !important;
}

:root {
    --plyr-color-main: #009444; 
    --plyr-audio-control-color: #ffffff;
}

.plyr--audio input[type=range] { color: #009444 !important; }
.plyr--audio .plyr__time { color: #ffffff; font-size: 12px; }
.plyr--audio .plyr__controls { background: transparent !important; border-radius: 16px !important; }

/* ============================================================
   PLAYER & CONTAINER
   ============================================================ */
.player-container, .playlist-container {
    max-width: 650px;
    width: 100%;
    margin: 30px auto;
}

#player-border {
    background-color: #3a6c85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.09' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    padding: 25px;
    border-radius: 24px;
    border: rgba(0,0,0,0.1) solid 1px;
}

.current-song-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* ANTI-SQUISH LOGIC */
#current-cover {
    width: 220px !important; 
    height: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    object-fit: cover !important; /* Preserves ratio, crops edges if needed */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

@media (min-width: 601px) {
    .current-song-info { flex-direction: row; text-align: left; }
    #current-cover {
        width: 250px !important; 
        height: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
}

.song-details { color: white; flex: 1; }
.song-details h2 { font-size: 18pt; margin: 0; font-weight: 700; }
.song-details h3 { font-size: 13pt; margin: 5px 0; font-style: italic; opacity: 0.9; }
.song-details p { font-size: 11pt; line-height: 1.4; margin-top: 10px; }

/* ============================================================
   PLAYLIST STYLES
   ============================================================ */
.playlist-container {
    background-color: #1e262a;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 24px;
}

#playlist { list-style: none; padding: 10px 0; margin: 0; }

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 10%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: 0.2s;
}

.playlist-item.active { background-color: #009444; }

.playlist-item img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 8px;
    margin-right: 20px;
}

.playlist-item .song-title { color: white; font-weight: 600; margin: 0; }
.playlist-item .song-artist { color: rgba(255,255,255,0.7); font-size: 0.9em; margin: 0; }

/* ============================================================
   AUDIO PLAYER MOBILE FIX (Screens < 450px)
   ============================================================ */
@media (max-width: 450px) {
    /* 1. Give the player more breathing room by reducing border padding */
    #player-border {
        padding: 15px 12px !important;
        border-radius: 18px !important;
    }

    /* 2. Scale down the cover image so the text doesn't wrap excessively */
    #current-cover {
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
    }

    /* 3. PLYR CONTROL BOX FIXES */
    
    /* Hide the volume slider and mute button on very small screens.
       Mobile users naturally use their phone's side buttons. */
    .plyr__volume {
        display: none !important;
    }

    /* Tighten the spacing between the remaining controls (Play, Progress, Time) */
    .plyr--audio .plyr__controls {
        padding: 5px 2px !important;
        gap: 5px !important;
    }

    /* Shrink the timestamps so they don't push the progress bar out */
    .plyr__time {
        font-size: 10px !important;
        min-width: auto !important;
        padding: 0 2px !important;
    }

    /* 4. Text scaling for the song details */
    .song-details h2 { font-size: 1.2rem !important; }
    .song-details h3 { font-size: 1rem !important; }
    .song-details p { font-size: 0.9rem !important; line-height: 1.3; }

    /* 5. Tighten the playlist for better scrolling */
    .playlist-item {
        padding: 10px 5% !important;
    }
    .playlist-item img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 12px !important;
    }
}

/* ============================================================
   GALLERY GRID (Included for Gallery Page)
   ============================================================ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.gallery-container figure { margin: 0; transition: transform 0.3s ease; }
.gallery-container figure:hover { transform: translateY(-5px); }
.gallery-container img { width: 100%; height: auto; border-radius: 8px; display: block; }
.gallery-container figcaption { padding: 15px 0; font-weight: 700; color: #3a6c85; text-align: center; }

/* ============================================================
   CATEGORY PAGE STYLES (Irish Tennis / News / Interviews)
   ============================================================ */

/* 1. Header & Hero Story */
.category-page .page-header {
    border-bottom: 4px solid #3a6c85;
    margin-bottom: 30px;
}

.pagestory {
    margin-bottom: 40px;
}

.pagestory img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.pagestory h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #3a6c85;
    margin: 5px 0 10px 0;
    line-height: 1.2;
    font-weight: 700; /* Bold titles */
}

/* 2. Sub-stories List */
.page-substories {
    /* Green #009444 converted to RGBA at 60% opacity */
    border-top: 1px solid rgba(0, 148, 68, 0.6); 
    padding: 25px 0;
}

.page-substories a {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.page-substories img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.substory-text h2 {
    font-size: 1.4rem;
    color: #3a6c85;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 600; /* Bold titles */
}

/* 3. Typography for Headlines & Bylines */
.page-subhead {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.page-byline {
    font-size: 0.95rem;
    color: #69828f;
    font-weight: 700;
    margin: 0;
}

/* 4. Desktop Layout */
@media (min-width: 768px) {
    .page-substories a {
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: space-between;
    }

    .page-substories img {
        width: 38%;
        margin-top: 0;
    }

    .substory-text {
        width: 58%;
    }

    .substory-text h2 {
        font-size: 1.6rem;
    }
}

/* ============================================================
   NEWSLETTER PAGE SPECIFIC STYLES
   ============================================================ */

/* 1. Newsletter Imagery */
#newsletter-profile-pic img {
    height: auto;
    max-width: 100%;
    display: block;
    margin: auto;
}

#newletter-sample-pic {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 15px;
}

/* 2. Layout & Typography Adjustments */
/* Target article specifically when inside the newsletter context */
.category-page h1 {
    font-size: 26pt;
    text-align: center;
}

@media only screen and (min-width: 600px) {
    .category-page h1 { font-size: 32pt; }
}

.category-page h2 {
    color: #3a6c85;
    font-size: 20pt;
    text-decoration: underline;
}

#newsletter-content-points {
    margin: 0 10%;
    text-align: left;
}

@media only screen and (max-width: 767px) {
    #newsletter-content-points { margin: 0; }
}

p.spec-link, p.disclaimer {
    font-size: 14pt;
    text-align: center;
}

.spec-link a {
    text-decoration: none;
    color: white; /* Designed to contrast against the blue signup box */
    font-weight: bold;
}

/* 3. Testimonials Section */
#testimonials {
    margin: 5% auto;
    padding: 2% 6%;
}

.quote {
    color: #2a3439;
    font-size: 15pt;
}

@media only screen and (min-width: 768px) {
    #testimonials {
        width: 75%;
        margin: 0 auto;
        padding: 1% 0;
    }
}

#testimonials a {
    color: #3a6c85;
    text-decoration: none;
}

#testimonials p {
    color: #69828f;
    font-size: 13pt;
}

/* 4. Mailchimp / Signup Box Settings */
.signup {
    background-color: #3a6c85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232a3439' fill-opacity='0.20' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    border-radius: 15px;
    padding: 6% 2%;
    width: 98%;
    max-width: 470px;
    margin: 20px auto;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .signup {
        width: 50%;
        padding: 3% 1%;
    }
}

.signup p { color: white; }

.mailchimp {
    background-color: #3a6c85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232a3439' fill-opacity='0.20' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

/* Input Fields */
.mailchimp input {
    color: #2a3439;
    text-align: center; 
    font-size: 16px;    
    width: 90%; 
    height: 35px;   
    border: none;   
    border-radius: 25px;
    margin: 10px auto;
    display: block;
}

.mailchimp input.email { background: white; }

/* Submit Button */
.mailchimp input[type="submit"] {   
    background: #009444;    
    font-size: 15pt;    
    color: white;   
    font-weight: bold;  
    cursor: pointer;    
    border: solid 2px white;
    height: 60px;   
    margin: 20px 0 10px 0;
    display: inline-block;
    transition: 0.3s;
}

.mailchimp input[type="submit"]:hover { 
    background: white; 
    color: #009444;
}

.signup label {
    font-size: 10pt;
    color: transparent; /* Hides label visually but keeps it for screen readers */
    height: 0;
    display: block;
}

/* ============================================================
   CENTERED ABOUT PAGE LIST
   ============================================================ */

.about-list {
    list-style: none;
    padding: 0;
    margin: 30px auto; /* Centers the block itself */
    max-width: 550px;   /* Constrains width so the "center" is visible */
    text-align: left;   /* Keeps text/bullets neatly aligned to the left */
}

.about-list li {
    position: relative;
    padding-left: 30px; 
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Custom Green Bullet */
.about-list li::before {
    content: "•";
    color: #009444; 
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.6rem;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .about-list {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* ============================================================
   FIXED VIDEO STYLES (Center & Responsive)
   ============================================================ */

.video-wrapper {
    width: 100%;
    display: flex;       /* Use flex to force absolute centering */
    justify-content: center;
    margin: 40px 0;      /* Vertical spacing */
}

#federer-question {
    display: block;
    max-width: 650px;    /* Matches Audio Player */
    width: 100%;         /* Vital for mobile scaling */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Mobile: Ensure it doesn't touch the very edge of the screen */
@media (max-width: 768px) {
    .video-wrapper {
        padding: 0 10px; /* Breathing room on small screens */
        margin: 20px 0;
    }
}

/* ============================================================
   HOMEPAGE MOSAIC (The Shell Upgrade)
   ============================================================ */

/* The Container */
.homepage-mosaic {
    display: grid;
    grid-gap: 5px;
    /* We name the areas so the HTML IDs know where to sit */
    grid-template-areas:
        "hero"
        "st2"
        "st3"
        "upc"
        "rnk"
        "bsky";
}

@media (min-width: 768px) {
    .homepage-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-gap: 2px;
        grid-template-areas:
            "hero hero"
            "st2   st3"
            "upc   upc"
            "rnk   rnk"
            "bsky  bsky";
    }
}

/* Connect your HTML IDs to the Grid Areas */
#hero    { grid-area: hero; }
#story-2 { grid-area: st2; }
#story-3 { grid-area: st3; }
#upcoming { grid-area: upc; }
#rankings-box { grid-area: rnk; }
#bsky-social-break { grid-area: bsky; }

/* Styling the "Story Boxes" */
#hero, #story-2, #story-3 {
    background-color: #3a6c85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232a3439' fill-opacity='0.20' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

#hero img, #story-2 img, #story-3 img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid white;
}