/* ==========================================================================
   STATION NEWS - public News page (/news) and article page (/news/{story})
   File: public/css/station-news.css
   Every block is labelled with the page element it controls.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. COLOUR + SIZE TOKENS - change these to match another station's brand
   -------------------------------------------------------------------------- */
.sn-page {
    --sn-accent: #800400;            /* headings, links, buttons */
    --sn-accent-soft: #fbeaea;       /* tag and badge background */
    --sn-ink: #1f1f24;               /* body text */
    --sn-muted: #6b6b76;             /* dates, captions */
    --sn-line: #ececf1;              /* card borders */
    --sn-card-radius: 16px;
    --sn-content-width: 1180px;      /* same width as the homepage content */
    --sn-article-width: 760px;       /* reading width of an article */
    color: var(--sn-ink);
    padding: 2.5rem 0 7rem;          /* bottom space clears the sticky player */
}

.sn-container {
    max-width: var(--sn-content-width);
    margin: 0 auto;
    padding: 0 1rem;
}


/* --------------------------------------------------------------------------
   2. PAGE HEADER - "Station News" title band on /news
   -------------------------------------------------------------------------- */
.sn-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.sn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sn-accent);
    background: var(--sn-accent-soft);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}
.sn-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--sn-accent);
    margin: 0.85rem 0 0.5rem;
    letter-spacing: -0.01em;
}
.sn-hero p {
    color: var(--sn-muted);
    max-width: 620px;
    margin: 0 auto;
}


/* --------------------------------------------------------------------------
   3. FEATURED STORY - large card at the top of /news
   -------------------------------------------------------------------------- */
.sn-featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: #fff;
    border: 1px solid var(--sn-line);
    border-radius: calc(var(--sn-card-radius) + 4px);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 10, 10, 0.07);
    text-decoration: none;
    color: inherit;
    margin-bottom: 2.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sn-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(20, 10, 10, 0.12);
    color: inherit;
}
.sn-featured-media {
    aspect-ratio: 16 / 9;
    background: #f3f0ef;
    overflow: hidden;
}
.sn-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sn-featured-body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sn-featured-body h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.75rem 0;
    color: var(--sn-ink);
}
.sn-featured-body p {
    color: var(--sn-muted);
    margin-bottom: 1.25rem;
}


/* --------------------------------------------------------------------------
   4. NEWS CARDS - grid of stories on /news and "More stories" (all images 16:9)
   -------------------------------------------------------------------------- */
.sn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.sn-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sn-line);
    border-radius: var(--sn-card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(20, 10, 10, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.sn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(20, 10, 10, 0.1);
    border-color: rgba(128, 4, 0, 0.25);
    color: inherit;
}
.sn-card-media {
    aspect-ratio: 16 / 9;
    background: #f3f0ef;
    overflow: hidden;
}
.sn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.sn-card:hover .sn-card-media img {
    transform: scale(1.04);
}
.sn-card-media.is-logo img {
    object-fit: contain;
    padding: 1.5rem;
    background: #fff;
}
.sn-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.sn-card-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.5rem 0;
    color: var(--sn-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sn-card-body p {
    color: var(--sn-muted);
    font-size: 0.92rem;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sn-read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sn-accent);
}
.sn-read-more i {
    transition: transform 0.2s ease;
}
.sn-card:hover .sn-read-more i,
.sn-featured:hover .sn-read-more i {
    transform: translateX(4px);
}


/* --------------------------------------------------------------------------
   5. META LINE - date, reading time, "Station Story" tag
   -------------------------------------------------------------------------- */
.sn-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.9rem;
    font-size: 0.8rem;
    color: var(--sn-muted);
}
.sn-meta i {
    margin-right: 0.3rem;
}
.sn-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sn-accent);
    background: var(--sn-accent-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}


/* --------------------------------------------------------------------------
   6. EMPTY STATE + PAGINATION on /news
   -------------------------------------------------------------------------- */
.sn-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--sn-muted);
}
.sn-empty i {
    font-size: 2.75rem;
    color: var(--sn-accent);
    opacity: 0.5;
}
.sn-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.sn-pagination .page-link {
    color: var(--sn-accent);
}
.sn-pagination .active > .page-link,
.sn-pagination .page-item.active .page-link {
    background: var(--sn-accent);
    border-color: var(--sn-accent);
    color: #fff;
}


/* --------------------------------------------------------------------------
   7. ARTICLE PAGE - back link, headline, byline, cover image
   -------------------------------------------------------------------------- */
.sn-article {
    max-width: var(--sn-article-width);
    margin: 0 auto;
}
.sn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sn-accent);
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.sn-back:hover {
    text-decoration: underline;
    color: var(--sn-accent);
}
.sn-article-title {
    font-size: clamp(1.9rem, 4.2vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--sn-ink);
    margin: 0.75rem 0 1rem;
}
.sn-article-summary {
    font-size: 1.15rem;
    color: var(--sn-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.sn-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--sn-line);
    border-bottom: 1px solid var(--sn-line);
    margin-bottom: 1.75rem;
}
.sn-cover {
    margin: 0 calc(50% - min(50vw, 560px)) 2rem;
    border-radius: calc(var(--sn-card-radius) + 4px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f0ef;
}
.sn-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --------------------------------------------------------------------------
   8. ARTICLE TEXT - typography of the story written in Admin
   -------------------------------------------------------------------------- */
.sn-body {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #2b2b31;
}
.sn-body p {
    margin: 0 0 1.25rem;
}
.sn-body h2,
.sn-body h3 {
    font-weight: 800;
    color: var(--sn-ink);
    margin: 2rem 0 0.85rem;
    line-height: 1.3;
}
.sn-body h2 { font-size: 1.55rem; }
.sn-body h3 { font-size: 1.25rem; }
.sn-body a {
    color: var(--sn-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sn-body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--sn-accent);
    background: #faf6f5;
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    font-style: italic;
}
.sn-body ul,
.sn-body ol {
    padding-left: 1.4rem;
    margin-bottom: 1.25rem;
}
.sn-body .ql-align-center { text-align: center; }
.sn-body .ql-align-right { text-align: right; }


/* --------------------------------------------------------------------------
   9. SHARE BUTTONS + "stream keeps playing" note under an article
   -------------------------------------------------------------------------- */
.sn-share {
    display: flex;
    gap: 0.5rem;
}
.sn-share a,
.sn-share button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--sn-line);
    background: #fff;
    color: var(--sn-ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sn-share a:hover,
.sn-share button:hover {
    background: var(--sn-accent);
    border-color: var(--sn-accent);
    color: #fff;
}
.sn-listening-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--sn-accent-soft);
    color: var(--sn-accent);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}


/* theme.css colours every link with !important (Admin > Colors > Link Color);
   keep the share icons and back link readable on top of that. */
.sn-page a.sn-back,
.sn-page a.sn-back:hover {
    color: var(--sn-accent) !important;
}
.sn-page .sn-share a {
    color: var(--sn-ink) !important;
}
.sn-page .sn-share a:hover {
    color: #fff !important;
}


/* --------------------------------------------------------------------------
   10. MORE STORIES - three cards under an article
   -------------------------------------------------------------------------- */
.sn-more {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--sn-line);
}
.sn-more h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sn-accent);
    margin-bottom: 1.5rem;
}
.sn-draft-banner {
    background: #fff7e6;
    color: #8a5a00;
    border: 1px solid #ffe2a8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   11. RESPONSIVE - tablet and phone layouts
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sn-featured { grid-template-columns: 1fr; }
    .sn-featured-body { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .sn-page { padding-top: 1.5rem; }
    .sn-grid { grid-template-columns: 1fr; }
    .sn-cover { margin-left: 0; margin-right: 0; border-radius: var(--sn-card-radius); }
    .sn-body { font-size: 1.02rem; }
}
