/* ==========================================================================
   Hub de Transparência Premium - Estilos Base
   ========================================================================== */

:root {
    --gov-primary: #1351B4;
    --gov-primary-light: #2563eb;
    --gov-primary-dark: #0c326f;
    --gov-success: #16a34a;
    --gov-warning: #ea580c;
    --gov-bg: #f8fafc;
    --gov-text-main: #1e293b;
    --gov-text-muted: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-premium: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
}

.transparencia-hub {
    background-color: var(--gov-bg);
    min-height: 100vh;
    padding-bottom: 5rem;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* ==========================================================================
   Header & Search Bar
   ========================================================================== */
.transparencia-header {
    background: linear-gradient(135deg, var(--gov-primary-dark) 0%, var(--gov-primary) 100%);
    padding: 5rem 1rem 6rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.transparencia-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.transparencia-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white !important;
}

.transparencia-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    color: white !important;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-container form {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-container form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: var(--gov-text-main);
    outline: none;
}

.search-container input::placeholder {
    color: #94a3b8;
}

.search-container button {
    background: var(--gov-primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: var(--gov-primary-light);
}

/* ==========================================================================
   Eixos Temáticos (Grid)
   ========================================================================== */
.transparencia-content {
    max-width: 1280px;
    margin: -3rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 20;
}

.eixo-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-premium);
}

.eixo-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.eixo-header h2 {
    font-size: 1.5rem;
    color: var(--gov-primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eixo-header h2 i {
    color: var(--gov-primary);
    font-size: 1.25rem;
}

.eixo-header p {
    color: var(--gov-text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.eixo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.eixo-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--gov-text-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eixo-card:hover {
    background: white;
    border-color: var(--gov-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--gov-primary-dark);
}

.eixo-card i {
    font-size: 1.5rem;
    color: var(--gov-primary);
    background: #e0e7ff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.eixo-card:hover i {
    background: var(--gov-primary);
    color: white;
}

.eixo-card span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .transparencia-header {
        padding: 3rem 1rem 4rem;
    }
    
    .transparencia-header h1 {
        font-size: 2rem;
    }
    
    .search-container form {
        flex-direction: column;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .search-container input {
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 1rem;
    }
    
    .search-container button {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .transparencia-content {
        margin-top: -1.5rem;
    }
    
    .eixo-section {
        padding: 1.5rem;
    }
    
    .eixo-grid {
        grid-template-columns: 1fr;
    }
}
