/* ============================================================
   J.A.R.V.I.S. — Unified Portfolio Stylesheet
   Dark Default Theme + Hybrid Glow + Modern Card System
   Includes: Portfolio, League Lookup, Contact Form, Classifier UI
   ============================================================ */

/* ------------------------------------------------------------
   1. ROOT THEME (Dark Default)
------------------------------------------------------------ */
:root {
    --bg: #0b0d10;
    --panel: #11151a;
    --text: #e9edf1;
    --muted: #a7b0ba;
    --brand: #a855f7;
    --accent: #9bffd1;
    --ring: rgba(150,80,255,.35);

    /* Motion */
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

    /* Glow */
    --glow-strong: 0 0 25px rgba(168, 85, 247, 0.45);
    --glow-soft: 0 0 12px rgba(168, 85, 247, 0.25);

    /* Radius */
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

/* ------------------------------------------------------------
   2. GLOBAL ELEMENTS
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

header, main, footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* ------------------------------------------------------------
   3. HEADER / NAV
------------------------------------------------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}

nav a {
    margin: 0 10px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   4. BUTTONS
------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in oklab, var(--text) 16%, transparent);
    background: linear-gradient(180deg,
        color-mix(in oklab, var(--panel) 96%, transparent),
        color-mix(in oklab, var(--panel) 90%, transparent)
    );
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: 0.25s var(--ease-smooth);
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 0 3px var(--ring);
}

/* Outline Variant for secondary actions */
.btn-outline {
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--text) 20%, transparent);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: var(--glow-soft);
}

/* ------------------------------------------------------------
   5. HERO
------------------------------------------------------------ */
.hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    padding: 36px 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    object-fit: cover;
    background: var(--panel);
}

h1 {
    font-size: 40px;
}

.tagline {
    color: var(--muted);
}

/* ------------------------------------------------------------
   6. SECTIONS & GRID SYSTEM
------------------------------------------------------------ */
.section {
    padding: 32px 0;
}

.grid {
    display: grid;
    gap: 20px;
}

/* ------------------------------------------------------------
   7. FACT CARDS
------------------------------------------------------------ */
.facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fact-card {
    background: var(--panel);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: 0.25s var(--ease-smooth);
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-soft);
}

.fact-icon {
    width: 32px;
    height: 32px;
    color: var(--brand);
    margin-bottom: 14px;
}

/* ------------------------------------------------------------
   8. PROJECT CARDS (Standard)
------------------------------------------------------------ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.project-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.25s var(--ease-smooth);
    display: block;
}

/* Subtle idle glow */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(168,85,247,.12), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

/* Flashy hover glow */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-strong);
}

/* Icon halo */
.project-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #7877c6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(168,85,247,.35);
}

.project-icon-wrap img {
    width: 32px;
    height: 32px;
    filter: brightness(1.15);
}

.project-tagline {
    font-size: 14px;
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------
   8b. FEATURED PROJECT (JARVIS) - New Addition
------------------------------------------------------------ */
.featured-card {
    background: var(--panel);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

/* Reuse the subtle glow from project cards */
.featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(168,85,247,.08), transparent 50%);
    pointer-events: none;
}

.featured-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.featured-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
}

.featured-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 850px) {
    .featured-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .featured-content {
        flex: 1.2;
    }
    .featured-media {
        flex: 1;
        position: sticky;
        top: 20px;
    }
}

.featured-content p {
    margin-bottom: 16px;
    color: color-mix(in oklab, var(--text) 90%, transparent);
}

.featured-content h5 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--brand);
}

.featured-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.featured-list li {
    margin-bottom: 8px;
    padding-left: 16px;
    border-left: 2px solid color-mix(in oklab, var(--brand) 40%, transparent);
    color: var(--muted);
}

.featured-list strong {
    color: var(--text);
}

.featured-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.featured-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-media figure {
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    transition: border-color 0.3s ease;
}

.featured-media figure:hover {
    border-color: color-mix(in oklab, var(--brand) 50%, transparent);
}

.featured-media img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.featured-media img:hover {
    opacity: 1;
}

.featured-media figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 8px;
    text-align: center;
    background: color-mix(in oklab, var(--bg) 50%, transparent);
    border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

/* ------------------------------------------------------------
   9. LEAGUE LOOKUP — Dark Mode Overhaul
------------------------------------------------------------ */
.league-lookup {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    box-shadow: var(--glow-soft);
}

.league-lookup h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.league-lookup > p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
}

.lookup-form-container {
    max-width: 500px;
    margin: 0 auto 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #0f1317;
    border: 1px solid color-mix(in oklab, var(--text) 18%, transparent);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.lookup-submit-btn {
    background: var(--brand);
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s var(--ease-smooth);
    display: block;
    margin: 0 auto;
}

.lookup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.summoner-results {
    background: var(--panel);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
}

.summoner-card {
    background: #0f1317;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--glow-soft);
}

/* ------------------------------------------------------------
   10. CONTACT FORM (Dark Theme)
------------------------------------------------------------ */
.contact-form {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 16px;
}

.contact-form > p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
}

.contact-submit-btn {
    background: var(--brand);
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s var(--ease-smooth);
    display: block;
    margin: 0 auto;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

/* ------------------------------------------------------------
   11. CLASSIFIER UI (Placeholder)
------------------------------------------------------------ */
.classifier-ui {
    background: var(--panel);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    margin-top: 40px;
}

/* ------------------------------------------------------------
   12. FOOTER
------------------------------------------------------------ */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
}

/* ------------------------------------------------------------
   13. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 540px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-photo {
        margin: 0 auto;
    }
}