:root {
    --primary-color: #005dac;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b35;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

/* Header da Folha - Estilo específico */
.folha-header {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.folha-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.folha-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.folha-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 1px;
}

.folha-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.folha-logo {
    height: 180px;
    max-width: 600px;
    object-fit: contain;
}

.header-divider {
    width: 150px;
    height: 3px;
    background: #a82721;
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Container Principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Seção Últimas Edições */
.edicoes-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #a82721;
    border-radius: 2px;
}

/* Grid de Edições */
.edicoes-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* Alterado para wrap para melhor responsividade */
    padding: 1rem 0;
}

/* Cards de Edição */
.edicao-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 280px; /* Largura fixa para melhor alinhamento */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.edicao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.edicao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    background: #ffffff;
}

.edicao-capa {
    width: 100%;
    height: 350px; /* Altura fixa para capas */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.edicao-meta {
    margin-top: auto;
}

.edicao-numero {
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.edicao-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edicao-data {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Botão Outras Edições */
.outras-edicoes-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-outras-edicoes {
    background: #a82721;
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outras-edicoes:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,93,172,0.3);
    color: var(--white);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-outras-edicoes.active .btn-icon {
    transform: rotate(180deg);
}

/* Dropdown de Outras Edições */
.outras-edicoes-dropdown {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    opacity: 0;
}

.outras-edicoes-dropdown.active {
    max-height: 800px; /* Aumentado para caber mais itens */
    opacity: 1;
    overflow-y: auto;
}

.edicao-item {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edicao-item:last-child {
    border-bottom: none;
}

.edicao-item:hover {
    background-color: #f8f9fa;
    padding-left: 2.5rem; /* Efeito de slide */
}

.edicao-item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.edicao-item-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsividade */
@media (max-width: 768px) {
    .folha-title {
        font-size: 2.5rem;
    }
    
    .folha-subtitle {
        font-size: 1.1rem;
    }
    
    .edicoes-section {
        padding: 2rem 1rem;
    }
    
    .edicoes-grid {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .edicao-card {
        width: 100%;
        max-width: 320px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .folha-logo {
        height: 120px;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .folha-header {
        padding: 1.5rem 0;
    }
    
    .folha-title {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 0 0.5rem 2rem;
    }

    .edicoes-grid {
        gap: 1rem;
    }
    
    .edicao-card {
        padding: 1rem;
    }

    .edicao-capa {
        height: 250px;
    }

    .folha-logo {
        height: 80px;
        max-width: 300px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edicao-card {
    animation: fadeInUp 0.6s ease forwards;
}

.edicao-card:nth-child(1) { animation-delay: 0.1s; }
.edicao-card:nth-child(2) { animation-delay: 0.2s; }
.edicao-card:nth-child(3) { animation-delay: 0.3s; }
.edicao-card:nth-child(4) { animation-delay: 0.4s; }
