/* 
   SoundTrack OST v3 - Premium Entertainment Magazine Layout
   Pure CSS - Light Cinema Aesthetic
*/

:root {
    --bg-deep: #ffffff;
    /* Pure White */
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-main: #000000;
    /* Pure Black */
    --text-muted: #4b5563;
    /* Dark Slate Gray */
    --accent: #2563eb;
    /* Blue 600 */
    --accent-warm: #c2410c;
    /* Orange 700 */
    --border: #e2e8f0;
    /* Slate 200 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Inter', sans-serif;
    --container-width: 740px;
    /* Slightly narrower for better line length */
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    /* Editorial standard */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =====================
   HEADER
   ===================== */
.site-header {
    background: #ffffff;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-width: 220px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text-main);
}

/* =====================
   HERO SECTION 
   Optimized for Portrait Posters - Compact Cinema
   ===================== */
/* =====================
   EDITORIAL HEADER (Title above Image)
   ===================== */
.editorial-header {
    max-width: 1200px;
    margin: 3rem auto 2.5rem;
    padding: 0 2rem;
    text-align: left;
}

.editorial-header .breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editorial-header .breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.editorial-header .post-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    letter-spacing: -1.5px;
    text-shadow: none;
    text-align: left;
}

.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.author-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.author-name strong {
    color: var(--text-main);
    font-weight: 700;
}

.social-share {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    transition: transform 0.2s, background 0.2s;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.twitter {
    background: #000000;
    /* Modern X look */
}

.share-btn.facebook {
    background: #1877F2;
}

.reddit {
    background: #FF4500;
}

.copy-link {
    background: #4b5563;
    border: none;
    cursor: pointer;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* =====================
   FEATURED HERO IMAGE
   ===================== */
.featured-hero-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    /* Reduced for better flow */
    padding: 0 2rem;
}

.featured-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.ad-block {
    margin-bottom: 2.5rem;
    clear: both;
    text-align: center;
    min-height: 280px;
    /* Standard ad height + padding */
    background: #f8fafc;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsbygoogle {
    min-width: 250px;
    min-height: 250px;
}

/* =====================
   MAIN GRID LAYOUT (Editorial Grid)
   ===================== */
.main-layout {
    max-width: 1210px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    /* Reduced from 8rem to close the giant gap */
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4.5rem;
    align-items: start;
}

.content-column {
    min-width: 0;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.sidebar-widget {
    padding-bottom: 2rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.widget-nav ul {
    list-style: none;
}

.widget-nav li {
    margin-bottom: 0.8rem;
}

.widget-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.widget-nav a:hover {
    color: var(--accent);
}

.widget-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* Compact & Professional TOC */
.penci-toc {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.penci-toc .toc-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}

.penci-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.penci-toc li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0.8rem 0 !important;
    /* Spacing between links */
    display: block !important;
}

.penci-toc li:last-child {
    margin-bottom: 0 !important;
}

.penci-toc li::before {
    display: none !important;
    /* Remove music note */
}

.penci-toc a {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.penci-toc a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.entry-content {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 2rem;
}

.entry-content h2 {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.entry-content strong,
.entry-content b {
    color: var(--text-main);
    font-weight: 700;
}

/* Adjusted Post List Items */
.entry-content li {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    position: relative;
}

.song-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.song-links {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.entry-content li::before {
    content: "♪";
    color: var(--accent);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Author Box - Minimalist Refined Style */
.penci-author-box {
    background: #fdfdfd;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    /* Small gap since ad is gone */
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #f1f5f9;
}

.author-img {
    width: 55px;
    height: 55px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 5px 0 !important;
    color: var(--text-main);
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 !important;
}

@media (max-width: 600px) {
    .penci-author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-img {
        margin: 0 auto 10px;
    }
}

/* FOOTER */
.site-footer {
    padding: 6rem 0 4rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* MOBILE RESPONSIVE */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    /* Increase touch target */
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav-toggle-label {
        display: block;
        width: 44px;
        height: 44px;
        position: relative;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-main);
        height: 2px;
        width: 24px;
        position: absolute;
        left: 10px;
        transition: all .2s ease-out;
    }

    .nav-toggle-label span {
        top: 21px;
    }

    .nav-toggle-label span::before {
        content: "";
        top: -8px;
        left: 0;
    }

    .nav-toggle-label span::after {
        content: "";
        top: 8px;
        left: 0;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        height: 0;
        overflow: hidden;
        transition: height .3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-toggle:checked~.main-nav {
        height: auto;
        padding-bottom: 2rem;
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        transform: rotate(-45deg);
        top: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        transform: rotate(45deg);
        top: 0;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .sidebar {
        border-top: 1px solid var(--border);
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    .editorial-header {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }

    .editorial-header .post-title {
        font-size: 2.2rem;
    }

    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .featured-hero-container {
        padding: 0 1.5rem;
    }
}

/* Category Listing Styles */
.category-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.category-post-card {
    display: flex;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    transition: opacity 0.2s;
}

.category-post-card:hover {
    opacity: 0.8;
}

.category-post-card:last-child {
    border-bottom: none;
}

.card-img-container {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-content {
    flex: 1;
}

.card-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .category-post-card {
        flex-direction: column;
        gap: 1rem;
    }

    .card-img-container {
        width: 100%;
        height: 200px;
    }
}

/* Internal Linking - Related Posts Widget */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-posts-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.related-post-card h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Prev/Next Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    text-decoration: none;
    color: inherit;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.nav-link:hover .nav-title {
    color: var(--accent);
}

.nav-next {
    text-align: right;
}

/* Sidebar & Footer Widgets */
.sidebar-popular-list,
.footer-popular-list {
    list-style: none;
    padding: 0;
}

.sidebar-popular-list li,
.footer-popular-list li {
    margin-bottom: 0.8rem;
}

.sidebar-popular-list a,
.footer-popular-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-popular-list a:hover,
.footer-popular-list a:hover {
    color: var(--accent);
}

.footer-popular-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}