/* ========================================
   SUMÁRIO.CSS - Página de Sumário Refatorada
   Design moderno light theme com cards coloridos
   Efeitos visuais suaves e profissional
   ======================================== */

/* ========================================
   LIGHT MODE BASE
   ======================================== */

body {
    background: #ffffff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION - Light Theme
   ======================================== */

.hero-section {
    background: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
    border-bottom: 1px solid #e2e8f0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   MODULES SECTION
   ======================================== */

.modules-section {
    margin-bottom: 4rem;
}

.modules-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modules-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.modules-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========================================
   MODULE CARD COMPONENT - Clean Light Design
   ======================================== */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.module-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   MODULE CARD ICON
   ======================================== */

.module-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.module-card__icon-emoji {
    font-size: 3rem;
    transition: all 0.3s ease;
}

.module-card:hover .module-card__icon-emoji {
    transform: scale(1.1);
}

/* ========================================
   MODULE CARD CONTENT
   ======================================== */

.module-card__content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.module-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.module-card__description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.module-card__topics {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.module-card__topics li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.module-card__topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.module-card__cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.module-card__cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========================================
   MODULE VARIATIONS - Light Theme Colors
   ======================================== */

/* Teoria - Azul profissional */
.module-card--teoria {
    border-left: 4px solid #3b82f6;
}

.module-card--teoria .module-card__icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Lógica - Verde */
.module-card--logica {
    border-left: 4px solid #10b981;
}

.module-card--logica .module-card__icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Arte - Rosa */
.module-card--arte {
    border-left: 4px solid #ec4899;
}

.module-card--arte .module-card__icon {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

/* Música - Roxo */
.module-card--musica {
    border-left: 4px solid #8b5cf6;
}

.module-card--musica .module-card__icon {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

/* Engine - Laranja */
.module-card--engine {
    border-left: 4px solid #f59e0b;
}

.module-card--engine .module-card__icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Construct - Ciano */
.module-card--construct {
    border-left: 4px solid #06b6d4;
}

.module-card--construct .module-card__icon {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .modules-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .modules-title {
        font-size: 1.8rem;
    }

    .modules-subtitle {
        font-size: 1rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .module-card {
        min-height: 300px;
    }

    .module-card__icon {
        padding: 1.5rem;
    }

    .module-card__icon-emoji {
        font-size: 3rem;
    }

    .module-card__content {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .module-card__title {
        font-size: 1.3rem;
    }

    .module-card__description {
        font-size: 0.9rem;
    }

    .module-card__topics li {
        font-size: 0.8rem;
    }

    .module-card__cta {
        width: 100%;
        align-self: stretch;
        text-align: center;
    }

    .module-card:hover {
        transform: translateY(-8px) scale(1.01) rotateX(2deg);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .modules-title {
        font-size: 1.5rem;
    }

    .module-card__icon-emoji {
        font-size: 2.5rem;
    }

    .module-card__title {
        font-size: 1.2rem;
    }
}

/* ========================================
   MODULE STATUS BADGES
   ======================================== */

.module-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

.module-status-badge--development {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 2px solid #fbbf24;
}

.module-status-badge--new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 2px solid #34d399;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .modules-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .modules-title {
        font-size: 1.8rem;
    }

    .modules-subtitle {
        font-size: 1rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .module-card {
        min-height: 300px;
    }

    .module-card__icon {
        padding: 1.5rem;
    }

    .module-card__icon-emoji {
        font-size: 3rem;
    }

    .module-card__content {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .module-card__title {
        font-size: 1.3rem;
    }

    .module-card__description {
        font-size: 0.9rem;
    }

    .module-card__topics li {
        font-size: 0.8rem;
    }

    .module-card__cta {
        width: 100%;
        align-self: stretch;
        text-align: center;
    }

    .module-card:hover {
        transform: translateY(-8px) scale(1.01) rotateX(2deg);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .modules-title {
        font-size: 1.5rem;
    }

    .module-card__icon-emoji {
        font-size: 2.5rem;
    }

    .module-card__title {
        font-size: 1.2rem;
    }
}
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    will-change: transform, box-shadow;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.module-banner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(102, 126, 234, 0.3);
}

/* Visual/Icon Area */
.banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.module-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Content Area */
.banner-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    color: white;
}

.banner-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
}

.banner-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.banner-topics {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
    flex: 1;
}

.banner-topics li {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    padding-left: var(--space-md);
    position: relative;
    opacity: 0.9;
}

.banner-topics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.banner-button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.banner-button:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Módulos com Cores Distintas */
.module-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.module-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.module-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.module-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.module-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.module-6 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Responsividade para Módulos */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--space-xl);
    }

    .module-banner {
        min-height: 280px;
    }

    .banner-title {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 768px) {
    .modules-title {
        font-size: var(--font-size-3xl);
    }

    .modules-subtitle {
        font-size: var(--font-size-base);
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .module-banner {
        min-height: 260px;
    }

    .banner-visual {
        padding: var(--space-xl);
    }

    .module-icon {
        font-size: 3rem;
    }

    .banner-content {
        padding: var(--space-lg);
    }

    .banner-title {
        font-size: var(--font-size-lg);
    }

    .banner-description {
        font-size: var(--font-size-sm);
    }

    .banner-topics li {
        font-size: var(--font-size-xs);
    }

    .banner-button {
        width: 100%;
        align-self: stretch;
        text-align: center;
    }
}
