/**
 * KuroStream Base Application Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* Dynamic CSS Variable helpers for Tailwind integration */
.bg-base { background-color: var(--bg-base); }
.bg-surface { background-color: var(--bg-surface); }
.bg-surface-elevated { background-color: var(--bg-surface-elevated); }
.bg-card { background-color: var(--bg-card); }
.bg-card-hover:hover { background-color: var(--bg-card-hover); }

.text-primary-var { color: var(--text-primary); }
.text-secondary-var { color: var(--text-secondary); }
.text-muted-var { color: var(--text-muted); }
.text-accent-var { color: var(--accent-primary); }

.border-subtle { border-color: var(--border-subtle); }
.border-glow { border-color: var(--border-glow); }

.accent-glow { box-shadow: var(--accent-glow); }
.accent-glow-subtle { box-shadow: var(--accent-glow-subtle); }

.bg-accent-primary { background-color: var(--accent-primary); }
.bg-accent-primary-hover:hover { background-color: var(--accent-primary-hover); }
.bg-accent-gradient { background: var(--accent-gradient); }

/* Range input styling for video player and volume */
input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    height: 4px;
    outline: none;
    cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type='range']::-webkit-slider-thumb:hover {
    transform: scale(1.4);
}

/* Line clamp helpers */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge variants */
.badge-sub {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-dub {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-quality {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-score {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Theater Mode active on body */
body.theater-mode-active {
    overflow: hidden;
}

/* Focus Mode: dim surroundings */
body.focus-mode-active .site-header,
body.focus-mode-active .site-footer,
body.focus-mode-active .site-sidebar,
body.focus-mode-active .comments-section {
    opacity: 0.12;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
}
