/* ===================================
   MUSICA.COM.PT - MODERN EDITORIAL THEME 2026
   Created with love for music journalism
   =================================== */

/* ===================================
   CSS CUSTOM PROPERTIES (THEMES)
   =================================== */

:root {
    /* Colors */
    --color-accent: #ff141a;
    --color-accent-hover: #e01119;

    /* Day Theme */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f8f8;
    --color-bg-tertiary: #f0f0f0;
    --color-bg-reverse: #000000;
    --color-text: #0a0a0a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #8a8a8a;
    --color-text-reverse: #FFFFFF;
    --color-border: #e0e0e0;
    --color-overlay: rgba(0, 0, 0, 0.7);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max: 1440px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Night Theme */
[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #151515;
    --color-bg-tertiary: #1f1f1f;
    --color-bg-reverse: #FFFFFF;   
    --color-text: #ffffff;
    --color-text-secondary: #b8b8b8;
    --color-text-muted: #6a6a6a;
    --color-text-reverse: #000000;
    --color-border: #2a2a2a;
    --color-overlay: rgba(0, 0, 0, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ===================================
   DARK CONTEXT UTILITY
   For sections with dark backgrounds in light theme
   =================================== */

.on-dark {
    /* Force light text on dark backgrounds */
    color: #ffffff;

    /* All text elements inherit white/light colors */
    p, span, li, td, th, div, label {
        color: rgba(255, 255, 255, 0.85);
    }

    h1, h2, h3, h4, h5, h6 {
        color: #ffffff !important;
    }

    /* Links get accent color */
    a:not(.button):not(.btn) {
        color: #ffffff;
    }

    a:not(.button):not(.btn):hover {
        color: var(--color-accent);
    }

    /* Muted text */
    .muted,
    small {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Borders */
    hr,
    .border {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(13px, 2vw, 14px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
}

input, textarea, select {
    font-size: clamp(13px, 2vw, 14px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.category, .tag {
    display: block!important;
}

button {
    font-family: var(--font-primary);
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

ul, ol {
    list-style: none;
}

p {
    font-size: clamp(13px, 2vw, 14px);
    margin-top:16px;
    margin-bottom:16px;
}

/* Unified heading sizes - One rule to rule them all */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.4;
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.4;
}

h5 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.5;
}

h6 {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5;
}

/* ===================================
   CONTAINER
   =================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===================================
   HEADER
   =================================== */

.main-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Header Scrolled State - Mobile */
.main-header.scrolled .header-content {
    gap: 0.85rem;
}

.main-header.scrolled .logo .custom-logo {
    max-height: 44px !important;
}

/* Header Top */
.header-top {
    background-color: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-xs) 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-date {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
}

.header-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.social-link svg {
    flex-shrink: 0;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent);
}

.social-link:hover::after {
    width: 100%;
}

/* Header Main - MOBILE FIRST */
.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    transition: gap 0.3s ease;
}

/* Logo - Mobile (smaller, centered) */
.logo {
    width: 100%;
    max-width: 280px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.logo .accent {
    color: var(--color-accent);
}

.logo .custom-logo {
    max-height: 50px !important;
    width: auto;
    margin: 0 auto;
    display: block;
    transition: max-height 0.3s ease, transform 0.3s ease;
}

.tagline {
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* Navigation - Mobile */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.main-nav li {
    list-style: none;
    display:inline-block;
}

/* Navigation Links - Mobile */
.main-nav li a,
.nav-link {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.35rem 0.5rem;
    display: inline-block;
}

.main-nav li a::before,
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.main-nav li a:hover::before,
.nav-link:hover::before {
    width: 100%;
}

/* Header Actions - Mobile */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.search-btn,
.contact-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-fast);
    background-color: var(--color-bg-secondary);
}

.search-btn:hover,
.contact-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: scale(1.05);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.theme-icon {
    font-size: 1.25rem;
    transition: all var(--transition-base);
    position: absolute;
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle:hover {
    background-color: var(--color-bg-tertiary);
    opacity: 0.9;
}

/* Header Bottom - Breaking News */
.header-bottom {
    background-color: var(--color-accent);
    color: white;
    padding: var(--spacing-sm) 0;
    overflow: hidden;
}

.breaking-news {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.breaking-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.breaking-content {
    overflow: hidden;
}

.breaking-content p {
    font-weight: 600;
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    padding: var(--spacing-2xl) 0;
}

.margin-bottom-32 {
   margin-bottom:32px;
}

/* Section Styles */
section {
    margin-bottom: var(--spacing-2xl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.section-title::before {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url(https://musica.com.pt/wp-content/uploads/2023/06/m-logo.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.section-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.section-more {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.section-more:hover {
    color: var(--color-accent);
}

/* ===================================
   CARD HOVER EFFECT (2D ONLY)
   =================================== */

.card-3d {
    transition: all var(--transition-base);
}

.card-3d:hover {
    box-shadow: var(--shadow-xl);
    opacity: 0.95;
}

/* ===================================
   DESTAQUE (FEATURED SECTION)
   =================================== */

.destaque-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.featured-main {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.featured-main .article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-main .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
}

.featured-main:hover .article-image img {
    opacity: 0.9;
}

.article-date {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, var(--color-overlay) 100%);
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

.featured-main .article-content {
    padding: var(--spacing-md);
}

.article-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.tag:hover {
    background-color: var(--color-accent);
    color: white;
}

.wp-block-tag-cloud a {
    margin: 0.3846em 0.3846em 0.3846em 0;
    padding: 0.5rem 0.75rem;
    line-height: 1;
    display: inline-block;
    font-size: 10px !important;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 10px;
    background: var(--color-bg-reverse)!important;
    color: var(--color-text-reverse)!important;
}


.article-title {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.article-footer {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Featured Sidebar - Ad Space */
.featured-sidebar {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-space {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    border: 2px dashed var(--color-border);
}

.ad-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.ad-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* ===================================
   ARTICLE GRIDS
   =================================== */

/* 4 Column Grid */
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

/* 3 Column Grid */
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

/* 2 Column Grid */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* 1 Column Grid */
.grid-1col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* List View (vertical list layout) */
.articles-grid.list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.articles-grid.list .article-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
}

.articles-grid.list .article-card .article-image {
    height: 200px;
}

.articles-grid.list .article-card .article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Article Card */
.article-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    contain: paint;
    will-change: auto;
}

.article-card .article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
}

.article-card:hover .article-image img {
    opacity: 0.9;
}

.article-card .article-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-title {
    margin-bottom: var(--spacing-sm);
}

.article-card .article-excerpt {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.article-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.interview-card,
.event-card,
.production-card {
    contain: paint;
    will-change: auto;
}

/* ===================================
   INTERVIEWS SECTION
   =================================== */

.interview-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.interview-card .article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.interview-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
}

.interview-card:hover .article-image img {
    opacity: 0.9;
}

.interview-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background-color: var(--color-accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

.interview-card .article-content {
    padding: var(--spacing-md);
}

.interview-card .article-title {
    font-size: 1.5rem;
}

/* ===================================
   EVENTS SECTION
   =================================== */

.event-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background-color: var(--color-accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

/* ===================================
   PRODUCTION SECTION
   =================================== */

.production-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.production-card .article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.production-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
}

.production-card:hover .article-image img {
    opacity: 0.9;
}

/* ===================================
   THEATER SECTION
   =================================== */

.theater-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===================================
   PRE-FOOTER
   =================================== */

.pre-footer {
    background-color: var(--color-bg-secondary);
    border-top: 3px solid var(--color-accent);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.pre-footer-column {
    padding: var(--spacing-md);
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
}

.column-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-accent);
}

/* Event List */
.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.event-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.event-item:hover {
    border-left-color: var(--color-accent);
    background-color: var(--color-bg-secondary);
    padding-left: var(--spacing-md);
}

.event-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    flex-shrink: 0;
    width: 50px;
}

.event-link {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.event-link:hover {
    color: var(--color-accent);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-item {
    padding: var(--spacing-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.news-item:hover {
    border-left-color: var(--color-accent);
    background-color: var(--color-bg-secondary);
    padding-left: var(--spacing-md);
}

.news-item a {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    transition: color var(--transition-fast);
}

.news-item a:hover {
    color: var(--color-accent);
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding-top: var(--spacing-2xl);
}

[data-theme="dark"] .main-footer {
    background-color: #000000;
}

.footer-top {
    padding-bottom: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-bg);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-accent);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--color-accent);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.newsletter-input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-bg);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(255, 20, 26, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    font-style: italic;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Desktop - Larger sizes but same vertical structure */
@media (min-width: 769px) {
    .header-main {
        padding: 1.5rem 0;
    }

    .header-content {
        gap: 1.05rem;
    }

    /* Logo - Desktop (slightly larger) */
    .logo {
        max-width: 400px;
    }

    .logo h1 {
        font-size: 2rem;
        margin-bottom: 0.35rem;
    }

    .logo .custom-logo {
        max-height: 64px !important;
    }

    /* Header Scrolled State - Desktop */
    .main-header.scrolled .header-content {
        gap: 0.9rem;
    }

    .main-header.scrolled .logo .custom-logo {
        max-height: 54px !important;
    }

    .tagline {
        font-size: 0.8rem;
    }

    /* Navigation - Desktop */
    .main-nav {
        gap: 1.25rem;
    }

    .main-nav li a,
    .nav-link {
        font-size: 13px;
        padding: 0.5rem 0.75rem;
    }

    .main-nav li a::before,
    .nav-link::before {
        height: 3px;
    }

    /* Header Actions - Desktop */
    .header-actions {
        gap: 1rem;
    }

    .search-btn,
    .contact-btn {
        width: 42px;
        height: 42px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }
}

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .destaque-grid {
        grid-template-columns: 1fr;
    }

    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .pre-footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Extra small adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    /* Compact mobile header top bar */
    .header-top {
        padding: 0.25rem 0;
    }

    .header-date,
    .header-social {
        font-size: 0.65rem;
    }

    /* Hide social link text labels on mobile - show icons only */
    .social-link .social-label {
        display: none;
    }

    .social-link {
        gap: 0;
    }

    .header-social {
        gap: var(--spacing-sm);
    }

    /* Breaking news */
    .header-bottom {
        padding: 0.5rem 0;
    }

    .breaking-label {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }

    /* Content grids */
    .grid-4col,
    .grid-3col,
    .grid-2col,
    .grid-1col {
        grid-template-columns: 1fr;
    }

    /* List view on mobile stacks vertically */
    .articles-grid.list .article-card {
        grid-template-columns: 1fr;
    }

    .articles-grid.list .article-card .article-image {
        height: 250px;
    }

    .featured-main .article-image {
        aspect-ratio: 16 / 9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .breaking-content p {
        animation: scroll-text 30s linear infinite;
    }
}

/* ===================================
   ANIMATIONS & MICRO-INTERACTIONS
   =================================== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
    section {
        animation: fadeIn 0.05s ease-out;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Breaking News - No animation */
.breaking-label {
    /* Removed pulse animation - keeping it clean and professional */
}

/* Hover Glow Effect */
.article-card:hover,
.interview-card:hover,
.event-card:hover,
.production-card:hover,
.theater-card:hover {
    box-shadow: 0 0 30px rgba(255, 20, 26, 0.15);
}

[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .interview-card:hover,
[data-theme="dark"] .event-card:hover,
[data-theme="dark"] .production-card:hover,
[data-theme="dark"] .theater-card:hover {
    box-shadow: 0 0 30px rgba(255, 20, 26, 0.3);
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus Styles */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .main-header,
    .breaking-news,
    .pre-footer,
    .main-footer,
    .theme-toggle,
    .search-btn,
    .contact-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .article-card,
    .interview-card {
        break-inside: avoid;
    }
}
/* ===================================
   SIDEBAR LAYOUT
   =================================== */

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
    align-items: start;
}

.main-content-area {
    min-width: 0; /* Prevents grid blowout */
}

.sidebar {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.sidebar .widget {
}

.sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: var(--spacing-xs) 0;
}

.sidebar ul li a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    font-size: 0.875rem;
}

.sidebar ul li a:hover {
    color: var(--color-accent);
}

/* Full width content layout (no sidebar) */
.full-width-content {
    display: block;
    width: 100%;
}

.full-width-content .main-content-area {
    margin: 0 auto;
}

/* Full width for pages that need it */
.full-width-content .entry-content {
    max-width: 100%;
}

/* Preserve readable width for text-heavy content */
.full-width-content .entry-content > p,
.full-width-content .entry-content > h1,
.full-width-content .entry-content > h2,
.full-width-content .entry-content > h3,
.full-width-content .entry-content > h4,
.full-width-content .entry-content > h5,
.full-width-content .entry-content > h6,
.full-width-content .entry-content > ul,
.full-width-content .entry-content > ol {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* But allow full width for images, videos, galleries, Gutenberg blocks */
.full-width-content .entry-content > .wp-block-image,
.full-width-content .entry-content > .wp-block-gallery,
.full-width-content .entry-content > .wp-block-video,
.full-width-content .entry-content > .wp-block-embed,
.full-width-content .entry-content > figure,
.full-width-content .entry-content > .alignwide,
.full-width-content .entry-content > .alignfull,
.full-width-content .entry-content > [class*="wp-block-musica-"],
.full-width-content .entry-content > .articles-grid,
.full-width-content .entry-content > .featured-main {
    max-width: 100%;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* Custom logo spacing */
.custom-logo {
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   FIX: Antialiasing no scroll
   =================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth rendering for 2D animations */
.card-3d,
.article-card,
.interview-card,
.event-card,
.production-card,
.theater-card {
    will-change: opacity, box-shadow;
}

/* Links devem manter antialiasing */
a {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

/* Remover espaço extra em links de tags e categorias */
/* .category,
.tag {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
} */

/* Removed transform effects - flat design only */

/* ===================================
   ARCHIVE PAGES & PAGINATION
   =================================== */

.page-header {
    margin-bottom: var(--spacing-xl);
}

.archive-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-md);
    line-height: 1.7;
}

.no-posts-found {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.no-posts-found h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.no-posts-found p {
    color: var(--color-text-secondary);
}

.pagination {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}

.pagination .page-numbers:hover {
    background: var(--color-accent);
    color: #fff;
}

.pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* ===================================
   CONCERTS BLOCK - COMPACT DESIGN
   =================================== */

.concerts-block-compact {
    margin: var(--spacing-lg) 0;
}

.concerts-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual event item */
.event-item-compact {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.event-item-compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-item-compact:hover {
    border-color: var(--color-accent);
    background: rgba(255, 20, 26, 0.02);
}

/* Link wrapper */
.event-link-compact {
    display: flex;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

/* Thumbnail */
.event-thumb {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.event-item-compact:hover .event-thumb img {
    opacity: 0.85;
}

/* Type badge - single letter */
.tipo-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    background: var(--color-accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

.tipo-badge.badge-festival {
    background: #667eea;
}

.tipo-badge.badge-concerto {
    background: #ff141a;
}

.tipo-badge.badge-teatro {
    background: #f5576c;
}

.tipo-badge.badge-workshop {
    background: #00f2fe;
}

.tipo-badge.badge-exposição,
.tipo-badge.badge-exposicao {
    background: #38f9d7;
}

/* Event info */
.event-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text);
    transition: color var(--transition-fast);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-item-compact:hover .event-name {
    color: var(--color-accent);
}

/* Meta information */
.event-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.90rem;
    line-height: 1.4;
}

.meta-date,
.meta-venue,
.meta-artists {
    color: var(--color-text-secondary);
}

.meta-date {
    font-weight: 600;
    color: var(--color-accent);
}

.meta-venue {
    font-weight: 500;
}

.meta-artists {
    color: var(--color-text-muted);
    font-style: italic;
}

.meta-venue::before,
.meta-artists::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--color-border);
}

/* Responsive: very small screens */
@media (max-width: 400px) {
    .event-thumb {
        width: 70px;
        height: 50px;
    }

    .event-link-compact {
        gap: 0.625rem;
    }

    .event-name {
        font-size: 0.875rem;
    }

    .event-meta-compact {
        font-size: 0.6875rem;
    }
}

/* Dark theme */
[data-theme="dark"] .event-item-compact {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .event-item-compact:hover {
    border-color: var(--color-accent);
}

[data-theme="dark"] .event-thumb {
    background: rgba(255, 255, 255, 0.05);
}

/* Eventos passados (opacidade reduzida) */
.eventos-passados .event-item-compact {
    opacity: 0.6;
}

.eventos-passados .event-item-compact:hover {
    opacity: 0.85;
}

/* =============================================================================
   Featured Article Carousel - SEO Friendly
   ============================================================================= */

.featured-carousel-wrapper {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
}

.featured-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: var(--color-bg-secondary, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Hide radio buttons but keep them accessible */
.carousel-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Slides container */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual slide */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

/* Show active slide based on checked radio button */
.carousel-radio:nth-child(1):checked ~ .carousel-slides .carousel-slide:nth-child(1),
.carousel-radio:nth-child(2):checked ~ .carousel-slides .carousel-slide:nth-child(2),
.carousel-radio:nth-child(3):checked ~ .carousel-slides .carousel-slide:nth-child(3),
.carousel-radio:nth-child(4):checked ~ .carousel-slides .carousel-slide:nth-child(4),
.carousel-radio:nth-child(5):checked ~ .carousel-slides .carousel-slide:nth-child(5),
.carousel-radio:nth-child(6):checked ~ .carousel-slides .carousel-slide:nth-child(6),
.carousel-radio:nth-child(7):checked ~ .carousel-slides .carousel-slide:nth-child(7),
.carousel-radio:nth-child(8):checked ~ .carousel-slides .carousel-slide:nth-child(8),
.carousel-radio:nth-child(9):checked ~ .carousel-slides .carousel-slide:nth-child(9),
.carousel-radio:nth-child(10):checked ~ .carousel-slides .carousel-slide:nth-child(10) {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide link */
.slide-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.slide-link:hover .slide-overlay {
    opacity: 0.5;
}

.slide-link:hover .slide-title {
    color: var(--color-accent, #e91e63);
}

/* Slide image */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to image link below */
}

/* Slide content - white text for readability */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 3;
    color: #fff;
}

.slide-content * {
    color: #fff !important;
}

.slide-content .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.slide-content .category {
    background: var(--color-accent, #e91e63);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-content .article-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #fff;
    transition: color 0.3s ease;
}

.slide-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    max-width: 800px;
}

.slide-content .article-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.slide-content .author,
.slide-content .reading-time {
    display: flex;
    align-items: center;
}

/* Navigation Arrows */
.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-arrow {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
}

.carousel-arrow svg {
    color: #fff;
}

.carousel-arrow:hover {
    background: var(--color-accent, #e91e63);
    transform: scale(1.1);
}

.carousel-arrow-prev {
    left: 2rem;
}

.carousel-arrow-next {
    right: 2rem;
}

/* Show/hide arrows based on active slide */
/* Previous arrow visibility */
.carousel-radio:nth-child(1):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="0"],
.carousel-radio:nth-child(2):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="1"],
.carousel-radio:nth-child(3):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="2"],
.carousel-radio:nth-child(4):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="3"],
.carousel-radio:nth-child(5):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="4"],
.carousel-radio:nth-child(6):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="5"],
.carousel-radio:nth-child(7):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="6"],
.carousel-radio:nth-child(8):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="7"],
.carousel-radio:nth-child(9):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="8"],
.carousel-radio:nth-child(10):checked ~ .carousel-arrows .carousel-arrow-prev[data-slide="9"] {
    opacity: 1;
    visibility: visible;
}

/* Next arrow visibility */
.carousel-radio:nth-child(1):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="1"],
.carousel-radio:nth-child(2):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="2"],
.carousel-radio:nth-child(3):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="3"],
.carousel-radio:nth-child(4):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="4"],
.carousel-radio:nth-child(5):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="5"],
.carousel-radio:nth-child(6):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="6"],
.carousel-radio:nth-child(7):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="7"],
.carousel-radio:nth-child(8):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="8"],
.carousel-radio:nth-child(9):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="9"],
.carousel-radio:nth-child(10):checked ~ .carousel-arrows .carousel-arrow-next[data-slide="9"] {
    opacity: 1;
    visibility: visible;
}

/* Note: Prev/next arrows support wrap-around navigation (first ↔ last slide) */

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Active dot styling */
.carousel-radio:nth-child(1):checked ~ .carousel-dots .carousel-dot:nth-child(1),
.carousel-radio:nth-child(2):checked ~ .carousel-dots .carousel-dot:nth-child(2),
.carousel-radio:nth-child(3):checked ~ .carousel-dots .carousel-dot:nth-child(3),
.carousel-radio:nth-child(4):checked ~ .carousel-dots .carousel-dot:nth-child(4),
.carousel-radio:nth-child(5):checked ~ .carousel-dots .carousel-dot:nth-child(5),
.carousel-radio:nth-child(6):checked ~ .carousel-dots .carousel-dot:nth-child(6),
.carousel-radio:nth-child(7):checked ~ .carousel-dots .carousel-dot:nth-child(7),
.carousel-radio:nth-child(8):checked ~ .carousel-dots .carousel-dot:nth-child(8),
.carousel-radio:nth-child(9):checked ~ .carousel-dots .carousel-dot:nth-child(9),
.carousel-radio:nth-child(10):checked ~ .carousel-dots .carousel-dot:nth-child(10) {
    background: var(--color-accent, #e91e63);
    border-color: #fff;
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carousel-slides {
        height: 500px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-excerpt {
        font-size: 1rem;
    }

    .slide-content {
        padding: 2rem;
    }

    .carousel-arrow-prev {
        left: 1rem;
    }

    .carousel-arrow-next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-slides {
        height: 450px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-excerpt {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-arrow-prev {
        left: 0.5rem;
    }

    .carousel-arrow-next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slides {
        height: 400px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-excerpt {
        display: none;
    }

    .slide-content .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dark theme support */
[data-theme="dark"] .featured-carousel {
    background: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .carousel-arrow {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .carousel-arrow:hover {
    background: var(--color-accent, #e91e63);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .carousel-slides,
    .carousel-slide,
    .carousel-arrow,
    .carousel-dot,
    .slide-overlay {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .carousel-arrows,
    .carousel-dots {
        display: none;
    }

    .carousel-slide {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-inside: avoid;
    }
}

/* =============================================================================
   Category Chips - Subtle and Elegant
   ============================================================================= */

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background-color: rgba(var(--cat-color-rgb, 233, 30, 99), 0.12);
    border: 1px solid rgba(var(--cat-color-rgb, 233, 30, 99), 0.25);
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.article-meta a {
	color: var(--cat-color, #e91e63)!important;	
}
.category-chip:hover {
    transform: translateY(-1px);
    background-color: var(--cat-color, #e91e63);
    border-color: var(--cat-color, #e91e63);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.article-meta a:hover {
    color: #fff!important;
	font-weight:500!important;
}

/* Ensure proper spacing in article-meta */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1rem;
}

/* Tags style - subtle and readable in both light/dark themes */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.article-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.article-tags .tag:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Dark theme adjustments */
[data-theme="dark"] .article-tags .tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .article-tags .tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .article-tags .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Category chips inherit the subtle style defined above */

/* No posts message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}

/* =============================================================================
   Ad Zone - Flexible Advertising Container
   ============================================================================= */

.musica-ad-zone-wrapper {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure ad content stretches to fill container */
.musica-ad-zone-wrapper > * {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Landscape orientation (row) */
.musica-ad-zone-row {
    justify-content: center;
    align-items: center;
}

/* Portrait orientation (column) */
.musica-ad-zone-column {
    justify-content: flex-start;
    align-items: stretch;
}

/* Ad placeholder styling */
.musica-ad-placeholder {
    box-sizing: border-box;
}

.musica-ad-placeholder p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Force max-height on mobile if not explicitly set */
    .musica-ad-zone-wrapper:not([style*="max-height"]) {
        max-height: 550px;
    }

    .musica-ad-placeholder:not([style*="max-height"]) {
        max-height: 550px;
    }

    /* Reduce padding on mobile */
    .musica-ad-placeholder {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* Even more restrictive on very small screens */
    .musica-ad-zone-wrapper:not([style*="max-height"]) {
        max-height: 450px;
    }

    .musica-ad-placeholder:not([style*="max-height"]) {
        max-height: 450px;
    }

    .musica-ad-placeholder {
        padding: 1rem !important;
        font-size: 0.875rem;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .musica-ad-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Ensure images/iframes inside ad zones are responsive */
.musica-ad-zone-wrapper img,
.musica-ad-zone-wrapper iframe {
    max-width: 100%;
    height: auto;
}

/* For fixed aspect ratio ads */
.musica-ad-zone-wrapper[style*="aspect-ratio"] {
    overflow: hidden;
}

.musica-ad-zone-wrapper[style*="aspect-ratio"] > * {
    object-fit: cover;
}
