/* KABOOM! UI — Dark Mode Adaptations for Sol AI */
/* Extends comic-ui.css with dark theme compatibility */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&display=swap');

/* ── Override KABOOM! UI Variables for Dark Theme ── */
:root {
    --k-paper: transparent;
    --k-ink: #f1f1f5;
    --k-red: #E63946;
    --k-yellow: #FFD166;
    --k-blue: #457B9D;
    --k-green: #06D6A0;
    --k-white: rgba(255, 255, 255, 0.04);
    --k-stroke: 3px solid rgba(241, 241, 245, 0.7);
    --k-shadow: 5px 5px 0px rgba(0, 0, 0, 0.6);
    --k-shadow-hover: 2px 2px 0px rgba(0, 0, 0, 0.6);
}

/* ── Global Dark Theme Body ── */
body {
    background-color: #08080c !important;
    color: #f1f1f5 !important;
    font-family: 'Comic Neue', cursive !important;
}

/* ── Comic Font Headings ── */
h1, h2, h3, h4 {
    font-family: 'Bangers', cursive !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Halftone — light dots on dark ── */
.k-halftone {
    background-image: radial-gradient(rgba(241, 241, 245, 0.15) 15%, transparent 16%),
                      radial-gradient(rgba(241, 241, 245, 0.15) 15%, transparent 16%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
}

/* Comic card — thick border + offset shadow on dark */
.k-card {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 3px solid rgba(241, 241, 245, 0.5) !important;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.6) !important;
    border-radius: 2px;
}

.k-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.6) !important;
    border-color: var(--k-yellow) !important;
}

/* Comic button */
.k-btn {
    display: inline-block;
    background-color: var(--k-yellow) !important;
    color: #111111 !important;
    border: 3px solid rgba(241, 241, 245, 0.8) !important;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.6) !important;
    padding: 10px 28px;
    font-family: 'Bangers', cursive !important;
    font-size: 22px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
}
.k-btn:hover {
    background-color: var(--k-red) !important;
    color: #ffffff !important;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.6) !important;
}
.k-btn:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.6) !important;
}
.k-btn.blue { background-color: var(--k-blue) !important; color: #ffffff !important; }
.k-btn.blue:hover { background-color: #111111 !important; }
.k-btn.outline {
    background-color: transparent !important;
    color: var(--k-yellow) !important;
    border-color: var(--k-yellow) !important;
}
.k-btn.outline:hover { background-color: var(--k-yellow) !important; color: #111111 !important; }

/* Badge */
.k-badge {
    background: var(--k-red) !important;
    color: #ffffff !important;
    font-family: 'Bangers', cursive !important;
    padding: 4px 12px;
    font-size: 18px;
    border: 2px solid rgba(241, 241, 245, 0.8) !important;
    transform: rotate(-5deg);
    display: inline-block;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.6);
}

/* Speech bubble */
.k-speech-bubble {
    position: relative;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 3px solid rgba(241, 241, 245, 0.6) !important;
    padding: 24px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Bangers', cursive !important;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 24px;
    color: var(--k-yellow) !important;
}

/* Comic input */
.k-input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 3px solid rgba(241, 241, 245, 0.5) !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Comic Neue', cursive !important;
    font-size: 18px !important;
    font-weight: 700;
    outline: none;
    transition: box-shadow 0.2s, background-color 0.2s;
    margin-bottom: 16px;
    color: #f1f1f5 !important;
}
.k-input:focus {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6) !important;
    background-color: rgba(255, 209, 102, 0.08) !important;
    border-color: var(--k-yellow) !important;
}
.k-input::placeholder { color: rgba(241, 241, 245, 0.3) !important; }

/* Comic title splash */
.k-splash-title {
    font-family: 'Bangers', cursive !important;
    font-size: clamp(3rem, 10vw, 7rem) !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--k-yellow) !important;
    text-shadow: 4px 4px 0px #111111, 8px 8px 0px rgba(0,0,0,0.4) !important;
}

/* Hero section — comic style */
.k-hero {
    background: var(--k-yellow) !important;
    border-bottom: 5px solid #111111 !important;
    padding: 80px 20px 100px !important;
    text-align: center;
    position: relative;
}
.k-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#111111 15%, transparent 16%),
                      radial-gradient(#111111 15%, transparent 16%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    opacity: 0.08;
    pointer-events: none;
}
.k-hero .k-splash-title { color: #111111 !important; text-shadow: 4px 4px 0px rgba(255,255,255,0.3), 8px 8px 0px rgba(0,0,0,0.2) !important; }
.k-hero p { font-size: 24px; max-width: 600px; margin: 20px auto 40px; color: #111111; }

/* Dark hero variant */
.k-hero-dark {
    background: #111111 !important;
    border-bottom: 5px solid var(--k-yellow) !important;
    color: #f1f1f5 !important;
}
.k-hero-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,209,102,0.15) 15%, transparent 16%),
                      radial-gradient(rgba(255,209,102,0.15) 15%, transparent 16%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    opacity: 0.12;
    pointer-events: none;
}

/* Comic grid */
.k-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.k-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Feature list */
.k-feature-list { list-style: none; padding: 0; margin: 0; font-size: 18px; font-family: 'Comic Neue', cursive; }
.k-feature-list li { margin-bottom: 10px; border-bottom: 2px dashed rgba(241, 241, 245, 0.4); padding-bottom: 5px; }

/* Pricing card */
.k-pricing-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 3px solid rgba(241, 241, 245, 0.5) !important;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.6) !important;
}
.k-pricing-card h2 { font-size: 40px; color: var(--k-blue) !important; }
.k-pricing-card .price {
    font-family: 'Bangers', cursive;
    font-size: 60px;
    margin: 20px 0;
    color: var(--k-red) !important;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 800px) {
    .k-grid-2, .k-grid-3 { grid-template-columns: 1fr; }
    .k-splash-title { font-size: clamp(2.5rem, 12vw, 4rem) !important; }
}
