/* Clash of Techs - Clean Design */

/* ========== FONTS ========== */
@font-face {
    font-family: 'Nova Square';
    src: url('assets/fonts/NovaSquare-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== HEADER ========== */
.header-inner {
    display: flex;
    align-items: center;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-family: 'Nova Square', sans-serif;
    font-weight: normal;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #F9FAFB 100%);
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: #9CA3AF;
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    opacity: 0.6;
}

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

.sections-container {
    background: #ffffff;
}

/* ========== NEW HERO GRID LAYOUT ========== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    min-height: calc(100vh - 73px);
    padding: 24px 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Large screens - hero spacing */
@media (min-width: 1400px) {
    .hero-grid {
        grid-template-columns: 1fr 340px;
        gap: 48px;
        padding: 32px 0;
    }

    .hero-left {
        gap: 28px;
    }
}

/* ========== FRAMEWORK CARDS 3+2 LAYOUT ========== */
.framework-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.framework-row-3 {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.framework-row-2 {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Large screens - more spacing */
@media (min-width: 1400px) {
    .framework-cards {
        gap: 18px;
    }

    .framework-row-3,
    .framework-row-2 {
        gap: 24px;
    }

    .framework-card {
        padding: 20px;
        gap: 12px;
        border-radius: 14px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
    }

    .card-name {
        font-size: 16px;
    }

    .card-desc {
        font-size: 12px;
    }

    .card-stats {
        min-height: 80px;
        gap: 8px;
    }

    .stat-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .card-insight {
        font-size: 11px;
    }
}

/* ========== FRAMEWORK CARDS (Expanded with Stats) ========== */
.framework-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1 1 0; /* Equal width within row, prevents width changes */
    min-width: 0; /* Allow flex items to shrink below content size */
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

/* Framework color gradients */
.framework-card[data-framework="React"]::before {
    background: linear-gradient(90deg, #61DAFB, #61DAFB);
}
.framework-card[data-framework="Angular"]::before {
    background: linear-gradient(90deg, #DD0031, #C3002F);
}
.framework-card[data-framework="Next.js"]::before {
    background: linear-gradient(90deg, #000000, #333333);
}
.framework-card[data-framework="Svelte"]::before {
    background: linear-gradient(90deg, #FF3E00, #FF6D00);
}
.framework-card[data-framework="Flutter"]::before {
    background: linear-gradient(90deg, #02569B, #0175C2);
}
.framework-card[data-framework="Spring Boot"]::before {
    background: linear-gradient(90deg, #6DB33F, #8BC34A);
}
.framework-card[data-framework="FastAPI"]::before {
    background: linear-gradient(90deg, #009688, #00BCD4);
}
.framework-card[data-framework="NestJS"]::before {
    background: linear-gradient(90deg, #E0234E, #ED4C67);
}
.framework-card[data-framework=".NET Core"]::before {
    background: linear-gradient(90deg, #512BD4, #6B3FA0);
}
.framework-card[data-framework="Gin"]::before {
    background: linear-gradient(90deg, #00ADD8, #00D4FF);
}

/* Card header */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.card-tags {
    display: flex;
    gap: 4px;
}

/* Card description */
.card-desc {
    font-size: 11px;
    color: #6B7280;
    line-height: 1.4;
    margin: 0;
}

/* Card stats */
.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 72px; /* Fixed height for 3 rows of pills */
    align-content: flex-start;
    transition: opacity 0.3s ease;
}

.card-stats:empty {
    /* Keep space even when empty to prevent layout shift */
    visibility: hidden;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    animation: fadeInPill 0.3s ease;
}

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

.stat-pill.highlight {
    background: #ECFDF5;
    color: #059669;
}

.stat-pill .stat-icon {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

/* Card insight */
.card-insight {
    font-size: 10px;
    color: #9CA3AF;
    font-style: italic;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #E5E7EB;
}

/* Responsive */
@media (max-width: 900px) {
    .framework-card {
        padding: 14px;
        gap: 8px;
    }

    .card-icon {
        width: 28px;
        height: 28px;
    }

    .card-name {
        font-size: 14px;
    }

    .card-desc {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .framework-card {
        padding: 12px;
        gap: 6px;
    }

    .card-icon {
        width: 24px;
        height: 24px;
    }

    .card-name {
        font-size: 13px;
    }

    .card-desc {
        font-size: 9px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-insight {
        font-size: 9px;
    }

    .stat-pill {
        font-size: 9px;
        padding: 3px 6px;
    }

    .card-stats {
        min-height: 60px; /* Smaller pills need less height */
    }
}

/* ========== COURSE CARD ========== */
.course-card {
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 90px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.course-card-frontend {
    background: linear-gradient(145deg, #1E40AF 0%, #3B82F6 100%);
}

.course-card-backend {
    background: linear-gradient(145deg, #059669 0%, #10B981 100%);
}

.course-img-wrap {
    position: relative;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* NEW Badge with Shine Animation */
.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    overflow: hidden;
    z-index: 10;
}

.new-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
}

.course-body {
    padding: 18px;
}

.course-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.course-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.course-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.course-features {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
}

.course-features li svg {
    flex-shrink: 0;
    color: #FCD34D;
}

/* White CTA Button with Udemy Logo Colors */
.course-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.udemy-logo-color {
    height: 22px;
    width: auto;
    /* Keep original Udemy colors - no filter */
}

/* ========== LANGUAGE TAGS ========== */
.lang-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Language-specific colors */
.lang-tag.js {
    background: #FEF3C7;
    color: #B45309;
}

.lang-tag.ts {
    background: #DBEAFE;
    color: #1D4ED8;
}

.lang-tag.dart {
    background: #E0F2FE;
    color: #0369A1;
}

.lang-tag.java {
    background: #FEE2E2;
    color: #B91C1C;
}

.lang-tag.python {
    background: #FEF9C3;
    color: #A16207;
}

.lang-tag.csharp {
    background: #EDE9FE;
    color: #6D28D9;
}

.lang-tag.go {
    background: #D1FAE5;
    color: #047857;
}

.framework-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.winner-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.chart-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ========== TAB SWITCHER ========== */
.tab-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #374151;
}

.tab-btn.active {
    background: white;
    color: #1B365D;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========== TAB CONTENT ========== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== CATEGORY HEADERS ========== */
.category-header {
    margin: 64px 0 32px 0;
    padding: 0;
    position: relative;
}

.category-header:first-of-type {
    margin-top: 48px;
}

.category-content {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.category-content::before {
    content: '';
    width: 5px;
    background: linear-gradient(180deg, #F47B20 0%, #FB923C 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

.category-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.category-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #F47B20;
    margin: 0;
}

.category-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

/* Category header responsive */
@media (max-width: 768px) {
    .category-header {
        margin: 48px 0 24px 0;
    }

    .category-content {
        gap: 12px;
    }

    .category-content::before {
        width: 4px;
    }

    .category-title {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .category-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-header {
        margin: 40px 0 20px 0;
    }

    .category-content {
        gap: 10px;
    }

    .category-content::before {
        width: 3px;
    }

    .category-title {
        font-size: 11px;
    }

    .category-desc {
        font-size: 11px;
    }
}

/* ========== SECTIONS ========== */
.section-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E5E7EB;
}

.section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-left {
    position: sticky;
    top: 80px;
    align-self: start;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B365D;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 12px;
}

.section-tool {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.section-tool code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 11px;
    color: #6B7280;
}

.key-factors {
    margin-top: 14px;
    padding: 0;
}

.key-factors-title {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-factors-title::before {
    content: '';
    width: 12px;
    height: 2px;
    background: #F47B20;
    border-radius: 1px;
}

.key-factors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.key-factors li {
    font-size: 11px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 4px;
    padding-left: 18px;
    position: relative;
}

.key-factors li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 50%;
}

.key-factors li:last-child {
    margin-bottom: 0;
}

.key-factors li strong {
    color: #374151;
    font-weight: 600;
}

.section-right {
    min-width: 0;
}

/* ========== TOGGLE GROUP ========== */
.toggle-group {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    border-radius: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: white;
    color: #1B365D;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ========== LEGEND ========== */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dot.blue {
    background: #4F46E5;
}

.dot.green {
    background: #10B981;
}

/* ========== CHART AREA ========== */
.chart-area {
    min-height: 280px; /* Prevent height changes on data switch */
}

/* ========== CHART ROWS ========== */
.chart-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    animation: fadeInRow 0.3s ease forwards;
}

@keyframes fadeInRow {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chart-row:last-child {
    border-bottom: none;
}

.chart-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-bar {
    height: 12px;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.usage {
    background: #F47B20;
}

.chart-bar.admired {
    background: #4F46E5;
}

.chart-bar.desired {
    background: #10B981;
}

.chart-bar.perf {
    background: #6366F1;
}

.chart-value {
    min-width: 45px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

/* ========== COMBINED LATENCY CHART ========== */
.latency-row {
    padding: 12px 0;
}

.latency-bars {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.latency-bar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.latency-bar {
    height: 6px;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.latency-bar.p50 {
    background: #10B981;
}

.latency-bar.p95 {
    background: #F59E0B;
}

.latency-bar.p99 {
    background: #EF4444;
}

.latency-values {
    display: flex;
    gap: 12px;
    min-width: auto;
    justify-content: flex-start;
    margin-top: 4px;
}

.latency-values .lv {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.latency-values .lv.p50 {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.latency-values .lv.p95 {
    color: #D97706;
    background: rgba(245, 158, 11, 0.1);
}

.latency-values .lv.p99 {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
}

.chart-na {
    color: #9CA3AF;
    font-style: italic;
    font-size: 13px;
}

/* ========== DUAL BAR ROWS ========== */
.dual-bar-row {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.dual-bar-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dual-bar-row .chart-row {
    border-bottom: none;
    padding: 4px 0;
}

/* ========== RESPONSIVE ========== */

/* Hero Grid Responsive */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .course-img {
        height: 140px;
    }

    .course-body {
        padding: 14px;
    }

    .course-title {
        font-size: 16px;
    }

    .course-desc {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 260px;
    }

    .framework-row-3,
    .framework-row-2 {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    /* Three-line header on mobile - large sizes */
    .header-inner {
        flex-direction: column;
        gap: 14px;
        padding: 16px 20px;
    }

    .header-logo {
        order: 1;
        height: 48px;
    }

    .header-title {
        order: 2;
        flex: none;
    }

    .header-title h1 {
        font-size: 28px;
    }

    .header-controls {
        order: 3;
    }

    .tab-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Hero grid adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 16px;
        padding: 16px 0;
        display: flex;
        flex-direction: column;
    }

    /* Course card appears first with natural height */
    .course-card {
        order: -1;
        position: static;
        max-width: 100%;
        margin: 0;
        border-radius: 14px;
    }

    .course-img-wrap {
        height: auto;
    }

    .course-img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        object-position: center;
    }

    .course-body {
        padding: 16px;
    }

    .course-title {
        font-size: 18px;
    }

    .course-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .course-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .course-features {
        margin-bottom: 14px;
        gap: 6px;
    }

    .course-features li {
        font-size: 11px;
    }

    .course-cta {
        padding: 14px 16px;
        font-size: 15px;
    }

    .hero-left {
        order: 1;
        gap: 16px;
    }

    .framework-cards {
        gap: 10px;
    }

    .framework-row-3 {
        flex-wrap: wrap;
        gap: 8px;
    }

    .winners-mixed {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .winner-card.span-5,
    .winner-card.span-4,
    .winner-card.span-3 { grid-column: span 3; }
    .winner-card.span-2 { grid-column: span 2; }

    .winner-card.winner-lg .winner-value {
        font-size: 18px;
    }

    .winner-card.winner-md .winner-value {
        font-size: 16px;
    }

    .scroll-indicator {
        margin-top: 16px;
    }

    .section-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-left {
        position: static;
    }

    .section-desc {
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 12px;
        padding: 14px 16px;
    }

    .header-logo {
        height: 44px;
    }

    .header-title h1 {
        font-size: 26px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .course-img {
        height: 360px;
        object-position: center;
    }

    .course-body {
        padding: 14px;
    }

    .course-title {
        font-size: 16px;
    }

    .course-subtitle {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .course-desc {
        font-size: 11px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .course-features {
        margin-bottom: 12px;
        gap: 5px;
    }

    .course-features li {
        font-size: 10px;
    }

    .course-cta {
        font-size: 14px;
        padding: 12px 14px;
    }

    .framework-badge {
        padding: 8px 10px;
        gap: 3px;
    }

    .badge-name {
        font-size: 11px;
    }

    .badge-desc {
        font-size: 7px;
        gap: 3px;
    }

    .desc-dot {
        width: 2px;
        height: 2px;
    }

    .lang-tag {
        font-size: 8px;
        padding: 1px 4px;
    }

    .framework-icon {
        width: 16px;
        height: 16px;
    }

    .winners-mixed {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .winner-card.span-5,
    .winner-card.span-4,
    .winner-card.span-3 { grid-column: span 3; }

    .winner-card {
        padding: 10px 6px;
    }

    .winner-badge {
        font-size: 7px;
        padding: 2px 5px;
    }

    .winner-value {
        font-size: 14px;
    }

    .winner-name {
        font-size: 9px;
    }

    .winner-icon {
        width: 10px;
        height: 10px;
    }

    .chart-label {
        width: 85px;
        font-size: 12px;
    }

    .chart-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .chart-value {
        min-width: 40px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        gap: 10px;
        padding: 12px 14px;
    }

    .header-logo {
        height: 40px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .header-controls {
        padding: 2px;
        gap: 2px;
    }

    .tab-btn {
        padding: 9px 18px;
        font-size: 14px;
    }

    .hero-grid {
        padding: 12px 0;
    }

    .course-card {
        border-radius: 12px;
    }

    .course-img {
        height: 320px;
        object-position: center;
    }

    .course-body {
        padding: 12px;
    }

    .course-title {
        font-size: 15px;
    }

    .course-subtitle {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .course-desc {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .course-features {
        margin-bottom: 10px;
        gap: 4px;
    }

    .course-features li {
        font-size: 9px;
        gap: 5px;
    }

    .course-features li svg {
        width: 13px;
        height: 13px;
    }

    .course-cta {
        font-size: 13px;
        padding: 11px 14px;
    }

    .udemy-logo-color {
        height: 18px;
    }

    .new-badge {
        font-size: 8px;
        padding: 3px 7px;
    }

    .framework-cards {
        gap: 8px;
    }

    .framework-row-3,
    .framework-row-2 {
        flex-wrap: wrap;
        gap: 6px;
    }

    .framework-badge {
        padding: 6px 8px;
        border-radius: 8px;
    }

    .badge-name {
        font-size: 10px;
    }

    .badge-desc {
        font-size: 6px;
        gap: 2px;
    }

    .lang-tag {
        font-size: 7px;
        padding: 1px 3px;
    }

    .framework-icon {
        width: 14px;
        height: 14px;
    }

    .winners-mixed {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }

    .winner-card.span-5,
    .winner-card.span-4,
    .winner-card.span-3 { grid-column: span 3; }

    .winner-card.winner-lg,
    .winner-card.winner-md,
    .winner-card.winner-sm,
    .winner-card.winner-xs {
        padding: 8px 5px;
    }

    .winner-card.winner-lg .winner-value,
    .winner-card.winner-md .winner-value {
        font-size: 14px;
    }

    .winner-card.winner-sm .winner-value,
    .winner-card.winner-xs .winner-value {
        font-size: 12px;
    }

    .chart-label {
        width: 75px;
        font-size: 11px;
    }

    .chart-icon {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
}

/* ========== DATA SOURCE TOGGLE ========== */
.data-source-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.data-source-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.data-source-icon-btn.active {
    background: white;
    color: #4F46E5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-source-icon-btn .toggle-icon {
    transition: all 0.2s ease;
}

.data-source-icon-btn .local-icon {
    display: none;
}

.data-source-icon-btn .industry-icon {
    display: block;
}

.data-source-icon-btn.active .local-icon {
    display: block;
}

.data-source-icon-btn.active .industry-icon {
    display: none;
}

/* ========== NO DATA PLACEHOLDER ========== */
.no-data-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: #FAFAFA;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    text-align: center;
}

.no-data-placeholder svg {
    color: #D1D5DB;
    margin-bottom: 16px;
}

.no-data-placeholder p {
    font-size: 15px;
    font-weight: 600;
    color: #6B7280;
    margin: 0 0 6px 0;
}

.no-data-placeholder span {
    font-size: 12px;
    color: #9CA3AF;
}

/* ========== RESPONSIVE - DATA SOURCE TOGGLE ========== */
@media (max-width: 768px) {
    .data-source-icon-btn {
        padding: 6px;
    }

    .data-source-icon-btn .toggle-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .data-source-icon-btn {
        padding: 5px;
    }

    .data-source-icon-btn .toggle-icon {
        width: 14px;
        height: 14px;
    }

    .no-data-placeholder {
        padding: 32px 16px;
    }

    .no-data-placeholder svg {
        width: 36px;
        height: 36px;
    }

    .no-data-placeholder p {
        font-size: 13px;
    }

    .no-data-placeholder span {
        font-size: 11px;
    }
}

/* ========== FUN HERO LAYOUT ========== */
.hero-fun {
    min-height: calc(100vh - 73px);
    padding: 20px 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
    height: calc(100vh - 73px - 40px);
}

.hero-content-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========== FRAMEWORK CARDS ========== */
.frameworks-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fw-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.fw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.fw-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.fw-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fw-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fw-name {
    font-size: 14px;
    font-weight: 700;
    color: #1B365D;
}

.lang-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.lang-pill.js { background: #FEF3C7; color: #B45309; }
.lang-pill.ts { background: #DBEAFE; color: #1D4ED8; }
.lang-pill.dart { background: #E0F2FE; color: #0369A1; }
.lang-pill.java { background: #FEE2E2; color: #B91C1C; }
.lang-pill.python { background: #FEF9C3; color: #A16207; }
.lang-pill.csharp { background: #EDE9FE; color: #6D28D9; }
.lang-pill.go { background: #D1FAE5; color: #047857; }

.fw-desc {
    font-size: 11px;
    color: #6B7280;
}

/* ========== FUN WINNERS GRID ========== */
.winners-fun-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
    align-content: center;
}

.winner-fun {
    background: white;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.winner-fun::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.winner-fun:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Vibrant glow colors */
.winner-fun.orange-glow { border-color: #FED7AA; }
.winner-fun.orange-glow::before { background: linear-gradient(90deg, #F97316, #FB923C); }
.winner-fun.orange-glow:hover { box-shadow: 0 8px 30px rgba(249, 115, 22, 0.25); }

.winner-fun.blue-glow { border-color: #BFDBFE; }
.winner-fun.blue-glow::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.winner-fun.blue-glow:hover { box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25); }

.winner-fun.green-glow { border-color: #A7F3D0; }
.winner-fun.green-glow::before { background: linear-gradient(90deg, #10B981, #34D399); }
.winner-fun.green-glow:hover { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25); }

.winner-fun.purple-glow { border-color: #DDD6FE; }
.winner-fun.purple-glow::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.winner-fun.purple-glow:hover { box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25); }

.winner-fun.cyan-glow { border-color: #A5F3FC; }
.winner-fun.cyan-glow::before { background: linear-gradient(90deg, #06B6D4, #22D3EE); }
.winner-fun.cyan-glow:hover { box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25); }

.winner-fun.pink-glow { border-color: #FBCFE8; }
.winner-fun.pink-glow::before { background: linear-gradient(90deg, #EC4899, #F472B6); }
.winner-fun.pink-glow:hover { box-shadow: 0 8px 30px rgba(236, 72, 153, 0.25); }

.winner-fun.teal-glow { border-color: #99F6E4; }
.winner-fun.teal-glow::before { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }
.winner-fun.teal-glow:hover { box-shadow: 0 8px 30px rgba(20, 184, 166, 0.25); }

.winner-fun.slate-glow { border-color: #CBD5E1; }
.winner-fun.slate-glow::before { background: linear-gradient(90deg, #64748B, #94A3B8); }
.winner-fun.slate-glow:hover { box-shadow: 0 8px 30px rgba(100, 116, 139, 0.25); }

.winner-fun.indigo-glow { border-color: #C7D2FE; }
.winner-fun.indigo-glow::before { background: linear-gradient(90deg, #6366F1, #818CF8); }
.winner-fun.indigo-glow:hover { box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25); }

.wf-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    margin-bottom: 4px;
}

.wf-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1B365D;
    line-height: 1.1;
}

.wf-tech {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
}

.wf-tech img {
    width: 14px;
    height: 14px;
}

/* ========== SCROLL HINT ========== */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    color: #9CA3AF;
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

/* ========== COMPACT UDEMY PROMO ========== */
.udemy-promo {
    background: linear-gradient(145deg, #1B365D 0%, #2D4A7C 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(27, 54, 93, 0.3);
    position: sticky;
    top: 90px;
}

.udemy-promo-backend {
    background: linear-gradient(145deg, #7C3AED 0%, #9333EA 100%);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.3);
}

.promo-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.promo-body {
    padding: 16px;
}

.promo-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.promo-hook {
    color: #F47B20;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
}

.promo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #A435F0;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.promo-cta:hover {
    background: #8710D8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 53, 240, 0.4);
}

.udemy-brand {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ========== FUN HERO RESPONSIVE ========== */
@media (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 1fr 240px;
        gap: 20px;
    }

    .fw-card {
        padding: 8px 12px;
    }

    .fw-icon {
        width: 24px;
        height: 24px;
    }

    .fw-name {
        font-size: 13px;
    }

    .winners-fun-grid {
        gap: 10px;
    }

    .winner-fun {
        padding: 12px 8px;
    }

    .wf-value {
        font-size: 20px;
    }

    .promo-thumb {
        height: 110px;
    }
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr 220px;
    }

    .frameworks-row {
        gap: 8px;
    }

    .fw-desc {
        display: none;
    }

    .winners-fun-grid {
        gap: 8px;
    }

    .wf-value {
        font-size: 18px;
    }

    .wf-label {
        font-size: 8px;
    }
}

@media (max-width: 768px) {
    .hero-fun {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 24px;
    }

    .hero-content-area {
        height: auto;
    }

    .fw-desc {
        display: block;
    }

    .winners-fun-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 12px;
    }

    .udemy-promo {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }

    .promo-thumb {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .frameworks-row {
        gap: 6px;
    }

    .fw-card {
        padding: 6px 10px;
        gap: 8px;
    }

    .fw-icon {
        width: 20px;
        height: 20px;
    }

    .fw-name {
        font-size: 12px;
    }

    .fw-desc {
        font-size: 10px;
    }

    .lang-pill {
        font-size: 8px;
        padding: 1px 4px;
    }

    .winners-fun-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .winner-fun {
        padding: 10px 6px;
    }

    .wf-label {
        font-size: 7px;
    }

    .wf-value {
        font-size: 16px;
    }

    .wf-tech {
        font-size: 10px;
    }

    .wf-tech img {
        width: 12px;
        height: 12px;
    }

    .promo-body {
        padding: 14px;
    }

    .promo-title {
        font-size: 15px;
    }

    .promo-cta {
        font-size: 13px;
        padding: 10px 14px;
    }

    .udemy-brand {
        height: 20px;
    }
}
