/* ===================== MELHORIAS GERAIS DE DESIGN ===================== */

/* Biografia Section - Design Moderno */
.bio-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #f59e0b);
    border-radius: 24px 24px 0 0;
}

.bio-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.bio-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.bio-text h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bio-text h3 i {
    color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 8px;
    border-radius: 10px;
}

.bio-text p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Projetos Section - Cards Interativos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.projeto-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    border-radius: 20px 20px 0 0;
}

.projeto-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 30px rgba(16, 185, 129, 0.2);
}

.projeto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.projeto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.projeto-title {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.projeto-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.projeto-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-projeto {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.btn-projeto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    color: white;
}

.btn-projeto.secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 3px 12px rgba(107, 114, 128, 0.3);
}

.btn-projeto.secondary:hover {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Mandatos Section - Cards Elegantes */
.mandatos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mandato-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mandato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed, #6d28d9);
    border-radius: 24px 24px 0 0;
}

.mandato-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 12px 35px rgba(139, 92, 246, 0.2);
}

.mandato-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mandato-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-radius: 16px;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.mandato-title {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.mandato-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.mandato-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #8b5cf6;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Timeline Visual para Mandatos */
.mandatos-timeline {
    position: relative;
    padding-left: 2rem;
}

.mandatos-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #8b5cf6, #7c3aed, #6d28d9);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    background: #8b5cf6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .bio-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projeto-card {
        padding: 1.5rem;
    }
    
    .mandatos-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mandato-card {
        padding: 1.5rem;
    }
    
    .mandatos-timeline {
        padding-left: 1.5rem;
    }
    
    .mandatos-timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item::before {
        left: -1.25rem;
    }
}

@media (max-width: 480px) {
    .projeto-actions {
        flex-direction: column;
    }
    
    .btn-projeto {
        justify-content: center;
        width: 100%;
    }
    
    .mandato-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.6rem;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .mandato-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.projeto-card,
.mandato-card,
.bio-section {
    animation: slideInUp 0.6s ease-out;
}

.projeto-icon,
.mandato-icon {
    animation: fadeInScale 0.8s ease-out;
}

/* Estados de Loading Melhorados */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}