/* 🏜️ SOMA137 SCHOOL - Estilo Netflix + Duna Desert Futuristic */

:root {
    /* Paleta Duna - Deserto Futurista */
    --dune-gold: #F2E52E;
    --dune-sand-light: #F2EB8D;
    --dune-orange: #F28907;
    --dune-orange-deep: #D96704;
    --dune-night: #0D0D0D;
    --dune-sand-dark: #1A1A0A;

    /* Backgrounds */
    --school-bg: #0D0D0D;
    --school-card-bg: #1A1A0A;
    --school-card-hover: #252510;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1400px;

    /* Font */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body.school-page {
    background-color: var(--school-bg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    margin: 0;
}

/* Nav Active State */
.nav-active {
    color: var(--dune-orange) !important;
    font-weight: 600 !important;
}

.nav-active::after {
    border-top-color: var(--dune-orange) !important;
}

/* === HERO SECTION === */
.school-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(217, 103, 4, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(242, 137, 7, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #0D0D0D 0%, #1A1000 50%, #0D0D0D 100%);
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(242, 137, 7, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, rgba(217, 103, 4, 0.03) 100%);
    pointer-events: none;
}

.hero-sand-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(242, 229, 46, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(242, 229, 46, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(242, 137, 7, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 80%, rgba(217, 103, 4, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 90%, rgba(242, 229, 46, 0.2) 0%, transparent 100%);
    pointer-events: none;
    animation: floatParticles 20s ease-in-out infinite;
}

@keyframes floatParticles {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge-dune {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 103, 4, 0.15);
    border: 1px solid var(--dune-orange-deep);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dune-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.hero-title-epic {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.text-dune-gradient {
    background: linear-gradient(135deg, var(--dune-gold) 0%, var(--dune-orange) 50%, var(--dune-orange-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-dune-primary {
    background: linear-gradient(135deg, var(--dune-orange) 0%, var(--dune-orange-deep) 100%);
    color: #000;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 103, 4, 0.3);
}

.btn-dune-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(217, 103, 4, 0.5);
}

.btn-dune-primary.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-dune-secondary {
    background: rgba(217, 103, 4, 0.1);
    border: 1px solid var(--dune-orange-deep);
    color: var(--dune-orange);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-dune-secondary:hover {
    background: rgba(217, 103, 4, 0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--dune-gold);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(217, 103, 4, 0.3);
}

/* === FILTER BAR === */
.school-filter-bar {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 40px;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid rgba(217, 103, 4, 0.15);
}

.filter-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
}

.filter-chip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--dune-orange);
    color: var(--dune-orange);
}

.filter-chip.active {
    background: var(--dune-orange-deep);
    border-color: var(--dune-orange-deep);
    color: #000;
    font-weight: 600;
}

.filter-premium {
    background: linear-gradient(135deg, rgba(242, 229, 46, 0.1) 0%, rgba(217, 103, 4, 0.1) 100%);
    border-color: var(--dune-gold) !important;
    color: var(--dune-gold) !important;
}

.filter-premium:hover {
    background: linear-gradient(135deg, rgba(242, 229, 46, 0.2) 0%, rgba(217, 103, 4, 0.2) 100%);
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 40px 0;
    width: 100%;
}

.section-container {
    width: 100%;
    padding: 0 4%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-icon {
    font-size: 24px;
    color: var(--dune-orange);
}

.section-icon-premium {
    font-size: 24px;
    color: var(--dune-gold);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.badge-free {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-premium {
    background: linear-gradient(135deg, var(--dune-gold) 0%, var(--dune-orange) 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link {
    font-size: 14px;
    color: var(--dune-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--dune-gold);
    gap: 10px;
}

.section-premium {
    background: linear-gradient(180deg, rgba(217, 103, 4, 0.05) 0%, transparent 100%);
    border-radius: 0;
    margin: 0;
    padding: 20px 0;
}

/* === CAROUSEL === */
.carousel-wrapper {
    position: relative;
    margin: 0 -4%;
    padding: 0 4%;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 40px 20px 60px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(217, 103, 4, 0.4);
    border-radius: 50%;
    color: var(--dune-orange);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

/* === FORM SELECT FIX === */
select {
    background-color: rgba(20, 20, 20, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

.carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: var(--dune-orange-deep);
    color: #000;
    border-color: var(--dune-orange);
}

.carousel-nav-btn.prev {
    left: 20px;
}

.carousel-nav-btn.next {
    right: 20px;
}

/* === CARDS === */
/* Video Card */
.video-card {
    min-width: 300px;
    width: 300px;
    flex-shrink: 0;
    background: var(--school-card-bg);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: scale(1.03) translateY(-8px);
    border-color: var(--dune-orange);
    box-shadow: 0 20px 40px rgba(217, 103, 4, 0.2);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-icon {
    width: 64px;
    height: 64px;
    background: var(--dune-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
}

.video-body {
    padding: 20px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Content Card (Articles, Materials) */
.content-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    background: rgba(26, 26, 10, 0.6);
    /* Glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.content-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--dune-orange);
    box-shadow: 0 20px 40px rgba(217, 103, 4, 0.15), 0 0 0 1px rgba(217, 103, 4, 0.1);
    background: rgba(26, 26, 10, 0.8);
}

.content-card.premium-card {
    border-color: rgba(242, 229, 46, 0.15);
    background: linear-gradient(145deg, rgba(26, 26, 10, 0.7) 0%, rgba(20, 20, 5, 0.9) 100%);
}

.content-card.premium-card:hover {
    border-color: var(--dune-gold);
    box-shadow: 0 20px 40px rgba(242, 229, 46, 0.15), 0 0 15px rgba(242, 229, 46, 0.1);
}

.card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.content-card:hover .card-thumb img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-badge.badge-article {
    background: rgba(217, 103, 4, 0.9);
    color: #000;
}

.card-badge.badge-n8n {
    background: rgba(234, 88, 12, 0.9);
    color: #fff;
}

.card-badge.badge-material {
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

.card-badge.badge-pro {
    background: linear-gradient(135deg, var(--dune-gold) 0%, var(--dune-orange) 100%);
    color: #000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge.badge-views {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    right: 12px;
    left: auto;
    font-size: 10px;
    padding: 4px 8px;
}

.card-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dune-gold);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 12px;
    color: var(--dune-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-action {
    color: var(--dune-orange);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    background: rgba(217, 103, 4, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.content-card:hover .card-action {
    gap: 8px;
    background: rgba(217, 103, 4, 0.2);
}

/* === CTA SECTION === */
.school-cta {
    padding: 100px 40px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(217, 103, 4, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(26, 16, 0, 0.5) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .school-hero {
        padding: 100px 24px 60px;
        min-height: 80vh;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .content-section {
        padding: 40px 24px;
    }

    .carousel-nav-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .school-filter-bar {
        padding: 12px 16px;
        top: 70px;
    }

    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }

    .filter-chip {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-dune-primary,
    .btn-dune-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .video-card,
    .content-card {
        min-width: 280px;
        width: 280px;
    }
}

/* === LOADING STATE === */
.loading-skeleton {
    background: linear-gradient(90deg, var(--school-card-bg) 25%, rgba(217, 103, 4, 0.1) 50%, var(--school-card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

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

    100% {
        background-position: -200% 0;
    }
}