/* ========== PÁGINA DE TRANSPARÊNCIA ========== */

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== SEÇÃO DE LINKS ========== */
#transparencia-links > span{
    display: none;
    margin-bottom: 2rem;
}

#transparencia-links {
    padding: 4rem 1rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de transparência */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Cards de transparência */
.transparency-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transparency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.transparency-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card grande para processos legislativos */
.large-card {
    grid-column: span 2;
}

/* Header do card */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Descrição do card */
.card-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Links do card */
.card-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-item:hover {
    background: #e74c3c;
    color: white;
    transform: translateX(5px);
    border-color: #c0392b;
}

.link-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    width: 24px;
    text-align: center;
}

.link-arrow {
    margin-left: auto;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    #transparencia-intro {
        padding: 2rem 0;
    }
    
    .intro-content h1 {
        font-size: 2.2rem;
    }
    
    .intro-content h2 {
        font-size: 1.1rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .large-card {
        grid-column: span 1;
    }
    
    .transparency-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .grid-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    #descricaoPag{
        margin-bottom: 2rem;
    }

    #transparencia-links {
        padding-top: 2rem;
    }

    #transparencia-links > span{
        display: block;
    }

    .intro-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .transparency-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
}

/* ========== ANIMAÇÕES ========== */
.transparency-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para as animações */
.transparency-card:nth-child(1) { animation-delay: 0.1s; }
.transparency-card:nth-child(2) { animation-delay: 0.2s; }
.transparency-card:nth-child(3) { animation-delay: 0.3s; }
.transparency-card:nth-child(4) { animation-delay: 0.4s; }
.transparency-card:nth-child(5) { animation-delay: 0.5s; }

/* ========== ESTADOS ESPECIAIS ========== */
.link-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Loading state */
.loading .transparency-card {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover effects para acessibilidade */
@media (hover: hover) {
    .transparency-card:hover .card-icon {
        transform: scale(1.1) rotate(5deg);
        transition: transform 0.3s ease;
    }
}

/* Print styles */
@media print {
    #transparencia-intro {
        background: none !important;
        color: black !important;
    }
    
    .transparency-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .link-item:hover {
        background: #f8f9fa !important;
        color: #2c3e50 !important;
    }
}