/* ===========================
   COURSE DETAIL — GEEK MODE
   Quirky, terminal-inspired, slightly absurd
   =========================== */

.geek-body {
    background: #0a0e1a;
    color: #c0c8d0;
    font-family: 'JetBrains Mono', monospace;
}

/* Scanline overlay */
.geek-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 255, 100, 0.025) 0px,
        rgba(0, 255, 100, 0.025) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Geek nav override */
.geek-nav {
    background: #0a0e1a !important;
    border-bottom: 1px solid #1a4d3a !important;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.15);
}
.geek-nav .logo { color: #00ff66 !important; font-family: 'JetBrains Mono', monospace !important; font-size: 1.1rem !important; }
.geek-nav .logo .anvil { color: #ffb703 !important; }
.geek-nav .logo .accent { color: #ffb703 !important; }
.geek-nav .main-nav > li > a { color: #c0c8d0 !important; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.geek-nav .main-nav > li > a:hover { color: #00ff66 !important; }
.geek-nav .btn-outline { color: #00ff66 !important; border-color: #00ff66 !important; }
.geek-nav .btn-primary { background: #00ff66 !important; color: #0a0e1a !important; }

/* ===========================
   Terminal Hero
   =========================== */
.terminal-hero {
    padding: 60px 0 100px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 100, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 119, 0, 0.12), transparent 50%),
        #0a0e1a;
    position: relative;
    overflow: hidden;
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    color: #00ff66;
    opacity: 0.3;
    font-size: 0.85rem;
    animation: drift 25s linear infinite;
}
@keyframes drift {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    to { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.terminal-window {
    max-width: 880px;
    margin: 0 auto;
    background: #0d1421;
    border: 1px solid #1a4d3a;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 255, 100, 0.1),
        0 20px 80px rgba(0, 255, 100, 0.25),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.terminal-bar {
    background: #131c2e;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1a4d3a;
}
.terminal-bar .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-bar .title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
    color: #6a7585;
}

.terminal-body {
    padding: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
}
.terminal-body .prompt { color: #00ff66; }
.terminal-body .comment { color: #6a7585; }
.terminal-body .out { color: #c0c8d0; }
.terminal-body .warn { color: #ffb703; }
.terminal-body .err { color: #ff5f56; }
.terminal-body .key { color: #ff66d4; }
.terminal-body .str { color: #ffb703; }

.cursor-blink::after {
    content: '▊';
    color: #00ff66;
    animation: blink 1s steps(2, end) infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.geek-hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: #00ff66;
    text-align: center;
    margin: 56px auto 16px;
    max-width: 900px;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 255, 100, 0.4);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.geek-hero-title .glitch {
    color: #ff66d4;
    display: inline-block;
    animation: glitch 4s infinite;
}
@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); text-shadow: 2px 0 #00ff66, -2px 0 #ffb703; }
    94% { transform: translate(2px, -1px); text-shadow: -2px 0 #00ff66, 2px 0 #ff66d4; }
    96% { transform: translate(-1px, -1px); }
}

.geek-hero-sub {
    text-align: center;
    color: #6a7585;
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 1rem;
}
.geek-hero-sub .pink { color: #ff66d4; }
.geek-hero-sub .yellow { color: #ffb703; }

.geek-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn-geek {
    background: transparent;
    border: 2px solid #00ff66;
    color: #00ff66;
    padding: 14px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
}
.btn-geek:hover {
    background: #00ff66;
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.6);
    transform: translateY(-2px);
}
.btn-geek-yellow {
    border-color: #ffb703;
    color: #ffb703;
}
.btn-geek-yellow:hover {
    background: #ffb703;
    color: #0a0e1a;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.5);
}
.btn-geek::before { content: '>'; }

/* ASCII Art block */
.ascii-art {
    text-align: center;
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1;
    white-space: pre;
    margin: 40px 0;
    opacity: 0.6;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
    overflow-x: auto;
}

/* ===========================
   Stat grid
   =========================== */
.geek-stats {
    padding: 80px 0;
    background: #0d1421;
    border-top: 1px solid #1a4d3a;
    border-bottom: 1px solid #1a4d3a;
}
.geek-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.geek-stat {
    text-align: center;
    padding: 28px;
    border: 1px dashed #1a4d3a;
    background: rgba(0, 255, 100, 0.02);
    transition: all .25s ease;
}
.geek-stat:hover {
    border-color: #00ff66;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.15);
    background: rgba(0, 255, 100, 0.05);
}
.geek-stat strong {
    display: block;
    font-size: 2.8rem;
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.4);
    line-height: 1;
    margin-bottom: 8px;
}
.geek-stat span {
    font-size: 0.85rem;
    color: #6a7585;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===========================
   Curriculum — "Levels" like a game
   =========================== */
.levels {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
}
.section-title::before { content: '## '; color: #ffb703; }
.section-sub {
    text-align: center;
    color: #6a7585;
    margin-bottom: 60px;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.level {
    background: #0d1421;
    border: 1px solid #1a4d3a;
    border-radius: 8px;
    padding: 28px;
    position: relative;
    transition: all .3s ease;
}
.level:hover {
    border-color: #ffb703;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 183, 3, 0.2);
}
.level-num {
    position: absolute;
    top: -14px; left: 24px;
    background: #0a0e1a;
    border: 1px solid #ffb703;
    color: #ffb703;
    padding: 4px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
.level h3 {
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin: 8px 0 14px;
    font-weight: 700;
}
.level h3 .boss {
    color: #ff66d4;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border: 1px solid #ff66d4;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
}
.level .skills {
    list-style: none;
    margin-top: 16px;
}
.level .skills li {
    color: #c0c8d0;
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
}
.level .skills li::before {
    content: '[✓]';
    position: absolute;
    left: 0;
    color: #00ff66;
    font-weight: 700;
}
.level .xp {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #1a4d3a;
    color: #ffb703;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
}

/* ===========================
   Instructor / Boss profile
   =========================== */
.instructor {
    padding: 80px 0;
    background: #0d1421;
    border-top: 1px solid #1a4d3a;
}
.instructor-card {
    max-width: 900px;
    margin: 0 auto;
    background: #0a0e1a;
    border: 1px solid #1a4d3a;
    border-radius: 8px;
    padding: 40px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
}
.instructor-card::before {
    content: 'CHARACTER_INFO.json';
    position: absolute;
    top: -10px; left: 24px;
    background: #0d1421;
    padding: 0 12px;
    font-size: 0.78rem;
    color: #ffb703;
    letter-spacing: 0.06em;
}
.instructor-avatar {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #00ff66;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.3);
    filter: contrast(1.05) saturate(1.1);
    position: relative;
}
.instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.instructor-avatar::after {
    content: 'LVL 99';
    position: absolute;
    bottom: 8px; right: 8px;
    background: #0a0e1a;
    color: #ffb703;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #ffb703;
    border-radius: 3px;
}
.instructor-info h3 {
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.instructor-info .role {
    color: #ff66d4;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.instructor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.instructor-stat {
    border: 1px dashed #1a4d3a;
    padding: 8px;
    text-align: center;
}
.instructor-stat strong {
    display: block;
    color: #ffb703;
    font-size: 1.2rem;
}
.instructor-stat span {
    font-size: 0.72rem;
    color: #6a7585;
    text-transform: uppercase;
}
.instructor-info p {
    color: #c0c8d0;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===========================
   Inventory / what you get
   =========================== */
.inventory {
    padding: 80px 0;
}
.inv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.inv-item {
    background: #0d1421;
    border: 1px solid #1a4d3a;
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    transition: all .25s ease;
    position: relative;
}
.inv-item:hover {
    border-color: #ff66d4;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 102, 212, 0.2);
}
.inv-item .rarity {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.rarity-legendary { background: #ffb703; color: #0a0e1a; }
.rarity-epic { background: #ff66d4; color: #0a0e1a; }
.rarity-rare { background: #00ff66; color: #0a0e1a; }
.rarity-common { background: #6a7585; color: #0a0e1a; }
.inv-item .item-icon {
    margin: 12px 0 8px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(0, 255, 100, 0.4));
}
.inv-item .item-icon .icon {
    font-size: 48px;
    color: #00ff66;
}
.inv-item h4 {
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.inv-item p {
    color: #6a7585;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ===========================
   Easter egg console
   =========================== */
.konami-tip {
    padding: 60px 0 40px;
    text-align: center;
}
.konami-tip code {
    background: #0d1421;
    border: 1px dashed #1a4d3a;
    padding: 16px 28px;
    border-radius: 4px;
    color: #ffb703;
    font-size: 0.88rem;
    display: inline-block;
}
.konami-tip p { color: #6a7585; margin-top: 12px; font-size: 0.85rem; }

/* ===========================
   Enrollment CTA
   =========================== */
.geek-enroll {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 183, 3, 0.12), transparent 70%),
        #0d1421;
    text-align: center;
    border-top: 1px solid #1a4d3a;
}
.enroll-box {
    max-width: 640px;
    margin: 0 auto;
    background: #0a0e1a;
    border: 2px solid #00ff66;
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: 0 0 60px rgba(0, 255, 100, 0.25);
    position: relative;
}
.enroll-box::before {
    content: '> READY_PLAYER_ONE.exe';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: #0d1421;
    padding: 0 16px;
    color: #ffb703;
    font-size: 0.82rem;
}
.enroll-box h2 {
    color: #00ff66;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.enroll-box .price-tag {
    margin: 24px 0;
    color: #ffb703;
    font-size: 2.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 30px rgba(255, 183, 3, 0.4);
}
.enroll-box .price-tag s {
    color: #6a7585;
    font-size: 1.4rem;
    font-weight: 400;
}
.enroll-box .price-tag small {
    display: block;
    font-size: 0.85rem;
    color: #c0c8d0;
    font-weight: 400;
    margin-top: 6px;
}
.enroll-box .perks {
    text-align: left;
    list-style: none;
    margin: 24px 0;
    padding: 0;
}
.enroll-box .perks li {
    color: #c0c8d0;
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.92rem;
}
.enroll-box .perks li::before {
    content: '++';
    position: absolute;
    left: 0;
    color: #00ff66;
    font-weight: 700;
}

/* Geek footer */
.geek-footer {
    background: #0a0e1a !important;
    border-top: 1px solid #1a4d3a;
    color: #6a7585 !important;
    padding: 40px 0 30px !important;
}
.geek-footer .container {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}
.geek-footer a { color: #00ff66; }
.geek-footer .copyright {
    margin-top: 20px;
    opacity: 0.5;
    font-size: 0.75rem;
}

@media (max-width: 900px) {
    .geek-stats-grid { grid-template-columns: 1fr 1fr; }
    .level-grid, .inv-grid { grid-template-columns: 1fr; }
    .instructor-card { grid-template-columns: 1fr; text-align: center; }
    .instructor-avatar { margin: 0 auto; }
    .instructor-stats { max-width: 320px; margin-left: auto; margin-right: auto; }
}
