/* ============================================
   SPARK CURRICULUM - TRILHA VISUAL
   Página do currículo acadêmico com 28 blocos
   ============================================ */

/* Curriculum Header */
.curriculum-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fff 50%, #fef3f2 100%);
    text-align: center;
}

.curriculum-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.curriculum-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: #7c3aed;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.curriculum-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Trail Container */
.curriculum-trail {
    padding: 4rem 0;
    background: #fff;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Trail Section */
.trail-section {
    margin-bottom: 4rem;
    position: relative;
}

.trail-header {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: white;
}

.trail-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.trail-header p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    color: white;
}

/* Trail Colors */
.trail-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.trail-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.trail-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.trail-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.trail-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Trail Path */
.trail-path {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Trail Card */
.trail-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    overflow: hidden;
}

.trail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.trail-card.trail-green::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.trail-card.trail-teal::before {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.trail-card.trail-blue::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.trail-card.trail-purple::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.trail-card.trail-orange::before {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.trail-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.trail-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

/* Card Elements */
.card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #9ca3af;
}

.card-acronym {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    display: block;
}

.trail-card.trail-green .card-acronym {
    color: #059669;
}

.trail-card.trail-teal .card-acronym {
    color: #0d9488;
}

.trail-card.trail-blue .card-acronym {
    color: #2563eb;
}

.trail-card.trail-purple .card-acronym {
    color: #7c3aed;
}

.trail-card.trail-orange .card-acronym {
    color: #ea580c;
}

.card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
}

/* Trail Finish */
.trail-finish {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #f59e0b;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .trail-path {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trail-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    .card-acronym {
        font-size: 2rem;
    }

    .card-name {
        font-size: 0.875rem;
    }

    .curriculum-header {
        padding: 100px 1rem 40px;
    }
}

@media (max-width: 480px) {
    .trail-path {
        grid-template-columns: 1fr;
    }
}