/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header principal */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Grid de TDEs */
.tde-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tde-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tde-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #2ecc71, #e74c3c);
}

.tde-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-content {
    text-align: center;
}

.tde-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tde-card p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

/* Cores específicas para cada TDE */
.tde-1::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.tde-2::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.tde-3::before { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.tde-4::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }

/* Header das páginas TDE */
.tde-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #2980b9;
    transform: translateY(-50%) scale(1.05);
}

.tde-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tde-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Infográfico */
.infographic {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-card p {
    color: #555;
    line-height: 1.6;
}

/* Cores dos cards por categoria */
.principle-card { border-left-color: #3498db; background: linear-gradient(135deg, #ebf3fd 0%, #f8f9fa 100%); }
.right-card { border-left-color: #2ecc71; background: linear-gradient(135deg, #eafaf1 0%, #f8f9fa 100%); }
.responsibility-card { border-left-color: #e74c3c; background: linear-gradient(135deg, #fdf2f2 0%, #f8f9fa 100%); }
.power-card { border-left-color: #9b59b6; background: linear-gradient(135deg, #f4f1f8 0%, #f8f9fa 100%); }
.impact-card { border-left-color: #f39c12; background: linear-gradient(135deg, #fef9e7 0%, #f8f9fa 100%); }
.conclusion-card { 
    border-left-color: #34495e; 
    background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Páginas em desenvolvimento */
.development-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.development-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}

.development-card h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.development-card p {
    font-size: 1.1rem;
    color: #95a5a6;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .tde-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tde-card {
        padding: 30px 20px;
    }
    
    .tde-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .back-button {
        position: relative;
        margin-bottom: 20px;
        transform: none;
        display: inline-block;
    }
    
    .tde-header {
        text-align: center;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .tde-title {
        font-size: 1.8rem;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
}

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

.info-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .info-card,
    .tde-card {
        animation: none;
        transition: none;
    }
}

/* Foco para navegação por teclado */
.tde-card:focus,
.back-button:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}
