/**
 * KINETIC // Trivia Intellect Terminal Core Stylesheet
 * Luxury Aesthetics: Deep Onyx Surfaces & Brightened Large-Scale Typography
 */

:root {
    --bg-primary: #06080c;
    --bg-surface: #0c111c;
    --bg-card: #131a2b;
    --bg-option: #192239;
    --bg-option-hover: #222d4a;
    --bg-option-correct: #0b2f20;
    
    --border-subtle: #1f2a42;
    --border-gold: #dfb76c;
    --accent-gold: #dfb76c;
    --accent-emerald: #10b981;
    
    --text-high-contrast: #ffffff;
    --text-normal: #f1f5f9;
    --text-muted: #94a3b8;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-normal);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}

.app-header h1 {
    color: var(--text-high-contrast);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.app-header h1 span { color: var(--accent-gold); }
.app-header p { color: var(--text-muted); font-size: 0.95rem; margin: 0; letter-spacing: 0.03em; }

.app-like-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2px 10px;
    font-family: var(--font-stack);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 12px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.app-like-trigger:hover:not(:disabled) {
    color: #c9604c;
    border-color: #c9604c;
    background: var(--bg-surface);
    transform: scale(1.05);
}

.app-like-trigger.liked {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: var(--bg-surface);
    cursor: not-allowed;
}

.app-like-trigger:disabled:not(.liked) {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Control Parameters Workspace Matrix */
.control-dashboard {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.control-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.selector-node {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.selector-node label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.dropdown-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-high-contrast);
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dropdown-control:focus {
    border-color: var(--border-gold);
}

.control-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary { background-color: var(--accent-gold); color: #000000; }
.btn-primary:hover:not(:disabled) { background-color: #f1ca7d; transform: translateY(-1px); }
.btn-secondary { background-color: var(--bg-card); color: var(--accent-gold); border-color: var(--border-subtle); }
.btn-secondary:hover:not(:disabled) { background-color: var(--bg-option); border-color: var(--accent-gold); }

.action-btn:disabled { opacity: 0.25; cursor: not-allowed; transform: none !important; }

/* Main Question Viewport Card Styling */
#triviaWorkspaceCanvas {
    display: none;
}

.workspace-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.metadata-badge-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-badge {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.accent-gold-badge {
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

/* Brightened and Enlarged Text Layout Block Rules */
.question-viewport {
    margin-bottom: 35px;
}

#questionTextDisplay {
    color: var(--text-high-contrast);
    /* Large-scale bright typography optimized specifically for legibility on absolute dark scales */
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Options Interaction Matrix Grid */
.options-response-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.option-node {
    background-color: var(--bg-option);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 18px 24px;
    font-size: 1.2rem; /* Enhanced text response sizing */
    font-weight: 600;
    color: var(--text-normal);
    text-align: left;
    cursor: default;
    transition: all 0.2s ease;
}

.option-node.revealed-correct-row {
    background-color: var(--bg-option-correct);
    border-color: var(--accent-emerald);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Solution Box Disclosure Card Reveal Layout */
.disclosure-card-panel {
    display: none;
    background-color: rgba(223, 183, 108, 0.03);
    border: 1px dashed rgba(223, 183, 108, 0.3);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-top: 30px;
    animation: slideUpFade 0.35s ease;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.disclosure-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.disclosure-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-high-contrast);
}

/* Interface Core Status Tracking Indicators */
#statusLoggingOverlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

#loaderSpinnerRing {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(223, 183, 108, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spinTrack 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spinTrack { to { transform: rotate(360deg); } }
#statusHeadingTitle { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px 0; }
#statusDescriptionMsg { color: var(--text-muted); font-size: 0.95rem; margin: 0; max-width: 480px; }

/* Responsive Media Controls Hook */
@media (max-width: 768px) {
    .control-grid-layout { grid-template-columns: 1fr; gap: 16px; }
    #questionTextDisplay { font-size: 1.45rem; }
    .option-node { font-size: 1.05rem; padding: 14px 20px; }
    .workspace-card { padding: 24px; }
}