/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Color Palette - Academia Cassiense de Letras */
    --primary-color: #432e18; /* Marrom escuro da coruja e texto */
    --secondary-color: #a37a43; /* Dourado escuro dos olhos da coruja e borda */
    --bg-color: #dfd4b7; /* Fundo bege do logo */
    --card-bg: #fdfaf5; /* Branco quebrado (off-white) para os cards destacarem */
    --text-main: #332720; /* Texto quase preto, puxando para marrom */
    --text-muted: #5e4c3d;
    --border-color: #cbbba1;
    --footer-bg: #432e18;
    --footer-text: #dfd4b7;
    
    /* Spring Theme Accents */
    --spring-accent: #6b8a61; /* Verde folha/sálvia suave */
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(77, 51, 31, 0.06);
    --shadow-md: 0 4px 12px rgba(77, 51, 31, 0.1);
    --shadow-lg: 0 10px 25px rgba(77, 51, 31, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #dfd4b7; /* Títulos ficam bege/dourado */
    --secondary-color: #cbbba1;
    --bg-color: #1a1614;
    --card-bg: #26211e;
    --text-main: #fdfaf5; /* Corpo do texto fica branco */
    --text-muted: #a89f8c;
    --border-color: #38302c;
    --footer-bg: #110e0c;
    --footer-text: #a89f8c;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(17, 14, 12, 0.95);
}

[data-theme="dark"] .btn-primary {
    color: #1a1614;
    font-weight: 600;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ==========================================================================
   Top Banner
   ========================================================================== */
.top-banner {
    width: 100%;
    background-color: var(--bg-color);
    text-align: center;
}

.top-banner img {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    display: block;
    margin: 0;
}

@media (max-width: 768px) {
    .top-banner img {
        padding: 0;
    }
}

.container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: var(--header-bg, rgba(223, 212, 183, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    text-align: left;
}

.main-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(67, 46, 24, 0.2));
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-size: 2.2rem;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
}

.location {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 4px;
}

/* ==========================================================================
   Navigation (Tabs)
   ========================================================================== */
.navigation {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.tab-btn {
    padding: 20px 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    padding: 50px 0;
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.card p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: justify;
    line-height: 1.7;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }
    .filters .filter-group:nth-child(1) { order: 3; } /* Buscar fica por último */
    .filters .filter-group:nth-child(2) { order: 1; } /* Autor primeiro */
    .filters .filter-group:nth-child(3) { order: 2; } /* Narrador em segundo */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* ==========================================================================
   Poems Grid & Card
   ========================================================================== */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.poem-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.poem-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(67, 46, 24, 0.2);
}

.poem-header {
    display: flex;
    flex-direction: column;
}

.expand-icon {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.poem-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.poem-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.poem-card.expanded .poem-body {
    max-height: 2000px;
    opacity: 1;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.poem-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.poem-people {
    display: flex;
    justify-content: space-between;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.person-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.person-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.voice-modulation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-bottom: 20px;
}

.voice-modulation span {
    display: block;
    width: 6px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 3px;
    animation: equalize 1s infinite alternate ease-in-out;
}

.voice-modulation span:nth-child(1) { animation-delay: 0.1s; }
.voice-modulation span:nth-child(2) { animation-delay: 0.3s; }
.voice-modulation span:nth-child(3) { animation-delay: 0.5s; }
.voice-modulation span:nth-child(4) { animation-delay: 0.2s; }
.voice-modulation span:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalize {
    0% { height: 10px; }
    100% { height: 40px; }
}

.poem-audio {
    width: 100%;
    margin-bottom: 20px;
}

.poem-audio audio {
    width: 100%;
    height: 40px;
    outline: none;
}

.poem-text {
    font-style: italic;
    color: var(--text-main);
    text-align: left;
    max-width: fit-content;
    margin: 0 auto 20px auto;
    line-height: 1.8;
}

.interaction-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.interaction-btn:hover, .interaction-btn.active {
    color: var(--primary-color);
}

.interaction-btn.liked i {
    color: #e74c3c;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.comments-section {
    margin-top: 20px;
    font-size: 0.95rem;
}

.comments-section.hidden {
    display: none;
}


.no-results {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results.hidden {
    display: none;
}

.btn-clear {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-clear:hover {
    background-color: var(--secondary-color);
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(67, 46, 24, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 8px 20px rgba(67, 46, 24, 0.3); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(67, 46, 24, 0.2); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition-normal);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(67, 46, 24, 0.3);
    animation-play-state: paused;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.apoio-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.apoio-logos img {
    height: 50px;
    width: auto;
    background-color: white;
    padding: 6px;
    border-radius: 6px;
}

.apoio-logos a:hover {
    transform: scale(1.05);
}

.colab-list {
    list-style: none;
    color: #adb5bd;
}

.colab-list li {
    margin-bottom: 10px;
}

.colab-list strong {
    color: white;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ==========================================================================
   Theme Toggle
   ========================================================================== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    z-index: 999;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Custom Audio Player
   ========================================================================== */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduzido de 15px para acomodar os novos botões */
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 15px;
    border-radius: 30px;
    margin: 15px 0;
}

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

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.audio-control-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.audio-control-btn:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .audio-control-btn:hover {
    background: rgba(255,255,255,0.1);
}

.audio-control-btn.active {
    color: var(--primary-color);
}

.play-pause-btn:hover {
    transform: scale(1.05);
}

.progress-container {
    flex-grow: 1;
    height: 24px; /* Aumenta a área de clique para facilitar no celular */
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 75px;
    text-align: right;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

/* ==========================================================================
   Responsive (Mobile First Optimization)
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-container {
        gap: 15px;
    }
    
    .main-logo {
        height: 75px;
    }
    
    .logo {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }
    
    .subtitle {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .location {
        font-size: 0.85rem;
        margin-top: 2px;
    }

    .tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 15px 5px;
        font-size: 1rem;
        flex: 1;
        text-align: center;
    }
    
    .main-content {
        padding: 30px 0;
    }

    .card {
        padding: 25px 20px;
    }

    .poem-card {
        padding: 20px;
    }

    .poem-people {
        flex-direction: row;
        gap: 15px;
    }
    
    .person-avatar {
        width: 50px;
        height: 50px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group select {
        padding: 15px;
        font-size: 1.05rem; /* Area de toque maior para mobile */
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .apoio-logos {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   Sidebar & Layout Grid
   ========================================================================== */
.layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header h3 {
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.mobile-only {
    display: none;
}

.mobile-break {
    display: none;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sidebar-link i {
    margin-right: 10px;
    color: var(--spring-accent);
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    background-color: rgba(107, 138, 97, 0.1);
    color: var(--primary-color);
}

.sidebar-sublist {
    list-style: none;
    margin-top: 5px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    margin-left: 25px;
}

.sidebar-sublist li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.sidebar-sublist li a:hover, .sidebar-sublist li a.active {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.03);
}

[data-theme="dark"] .sidebar-sublist li a:hover, 
[data-theme="dark"] .sidebar-sublist li a.active {
    background-color: rgba(255,255,255,0.05);
}

.close-sidebar-btn {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Search input */
.filter-search input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}

.filter-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Sidebar Media Queries */
@media (max-width: 900px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .mobile-break {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 300px;
        max-height: 100vh;
        z-index: 1001;
        border-radius: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        margin-top: 0;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .header-container {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .header-text {
        text-align: left;
    }
}

/* ==========================================================================
   Utility Classes (Replacing Inline Styles)
   ========================================================================== */
.logo-link { display: flex; align-items: center; cursor: pointer; }
.tab-btn i, .btn-primary i { margin-right: 8px; }
.icon-spring { color: var(--spring-accent); margin-right: 10px; }
.highlight-text { text-align: center; font-weight: bold; margin-top: 20px; font-size: 1.1em; }
.italic-text { text-align: center; font-style: italic; }
.center-button { text-align: center; margin-top: 30px; }
.footer-title { margin-bottom: 10px; }
.realization-logo { margin-bottom: 30px; }
.logo-link-hover { transition: transform 0.2s; display: inline-block; }
.logo-transparent { height: 80px; background: transparent; padding: 0; }
.mt-20 { margin-top: 20px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.poem-card { scroll-margin-top: 30px; }



/* Estilo para poemas incompletos */
.poem-incomplete {
    opacity: 0.65;
    filter: grayscale(80%);
}
.poem-incomplete .poem-header .poem-title::after {
    content: ' (Em breve)';
    font-size: 0.7rem;
    color: #888;
    font-weight: normal;
    margin-left: 10px;
}

/* ==========================================================================
   Desktop Poem Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    color: var(--text-color);
}

.modal-nav:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-50%) scale(1.05);
}

.modal-nav.prev-poem { left: 20px; }
.modal-nav.next-poem { right: 20px; }

.modal-nav .nav-title {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: bold;
}

.modal-nav.hidden-nav {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-close-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.modal-col-left {
    width: 40%;
    padding: 40px;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.modal-col-right {
    width: 60%;
    padding: 40px;
    overflow-y: auto;
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
}

.modal-col-right .poem-text {
    margin: auto 0; /* Centraliza verticalmente se houver espaço */
    text-align: justify;
}

/* Modal specific tweaks */
.modal-col-left .poem-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-col-left .poem-people {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-col-left .person {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.modal-col-left .person-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.modal-col-left .person-role {
    font-size: 0.85rem;
    text-align: left;
}

.modal-col-left .person-name {
    font-size: 1.1rem;
    text-align: left;
}

.modal-col-left .poem-audio {
    margin-top: auto;
    margin-bottom: 20px;
}

.modal-col-left .interaction-bar {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Mobile hiding - Modal is Desktop Only */
@media (max-width: 900px) {
    .modal-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Modal Navigation Arrows
   ========================================================================== */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal-nav:hover {
    opacity: 1;
    color: var(--spring-accent);
    transform: translateY(-50%) scale(1.15);
}

.modal-nav i {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
    margin: 0;
}

.modal-nav.prev-poem {
    left: 2%;
}

.modal-nav.next-poem {
    right: 2%;
}

.modal-nav .nav-title {
    font-size: 1.1rem;
    margin-top: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
}

.hidden-nav {
    display: none !important;
}
