223 lines
6.2 KiB
CSS
223 lines
6.2 KiB
CSS
/* ─── CSS Custom Properties ───────────────────────────────────────────────── */
|
|
:root {
|
|
/* Dark Mode Colors */
|
|
--bg: #07111f;
|
|
--surface: #0a1928;
|
|
--surface2: #0d2035;
|
|
--border: #1e2a3a;
|
|
--text: #e2eaf2;
|
|
--muted: #4a6080;
|
|
|
|
/* Brand Colors */
|
|
--accent: #0ea5e9;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--danger: #ef4444;
|
|
--spotify: #1DB954;
|
|
--airplay: #60a5fa;
|
|
|
|
--font-ui: 'DM Sans', system-ui, sans-serif;
|
|
--font-mono: 'DM Mono', 'Courier New', monospace;
|
|
|
|
--radius: 8px;
|
|
--radius-lg: 16px;
|
|
|
|
/* Glassmorphism */
|
|
--glass-bg: rgba(10, 25, 40, 0.7);
|
|
--glass-blur: 12px;
|
|
}
|
|
|
|
/* Light Mode */
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--bg: #f8fafc;
|
|
--surface: #f1f5f9;
|
|
--surface2: #e2e8f0;
|
|
--border: #cbd5e1;
|
|
--text: #0f172a;
|
|
--muted: #64748b;
|
|
--glass-bg: rgba(241, 245, 249, 0.8);
|
|
}
|
|
}
|
|
|
|
/* Custom Light Mode Toggle */
|
|
html.light-mode {
|
|
--bg: #f8fafc;
|
|
--surface: #f1f5f9;
|
|
--surface2: #e2e8f0;
|
|
--border: #cbd5e1;
|
|
--text: #0f172a;
|
|
--muted: #64748b;
|
|
--glass-bg: rgba(241, 245, 249, 0.8);
|
|
}
|
|
|
|
/* ─── Reset ───────────────────────────────────────────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html, body, #root {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font-ui);
|
|
font-size: 16px;
|
|
-webkit-tap-highlight-color: transparent;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
|
|
::-webkit-scrollbar { width: 4px; }
|
|
::-webkit-scrollbar-track { background: var(--surface); }
|
|
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
|
|
|
/* ─── Animations ───────────────────────────────────────────────────────────── */
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes slideInUp {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes slideInDown {
|
|
from { opacity: 0; transform: translateY(-10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { background-position: -1000px 0; }
|
|
100% { background-position: 1000px 0; }
|
|
}
|
|
|
|
/* ─── Glassmorphic Components ───────────────────────────────────────────────── */
|
|
.glass-panel {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--glass-blur));
|
|
-webkit-backdrop-filter: blur(var(--glass-blur));
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.glass-card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--glass-blur));
|
|
-webkit-backdrop-filter: blur(var(--glass-blur));
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: var(--radius);
|
|
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
|
|
}
|
|
|
|
.glass-card:hover {
|
|
background: rgba(10, 25, 40, 0.85);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
|
|
}
|
|
|
|
/* Light mode card hover */
|
|
html.light-mode .glass-card:hover {
|
|
background: rgba(241, 245, 249, 0.95);
|
|
box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
|
|
}
|
|
|
|
/* ─── Utilities ───────────────────────────────────────────────────────────── */
|
|
.mono { font-family: var(--font-mono); }
|
|
.muted { color: var(--muted); }
|
|
.accent { color: var(--accent); }
|
|
|
|
.fade-in { animation: fadeIn 0.3s ease-out; }
|
|
.slide-in-up { animation: slideInUp 0.3s cubic-bezier(0.23, 1, 0.320, 1); }
|
|
.slide-in-down { animation: slideInDown 0.3s cubic-bezier(0.23, 1, 0.320, 1); }
|
|
.pulse { animation: pulse 2s ease-in-out infinite; }
|
|
|
|
/* ─── Button Variants ───────────────────────────────────────────────────────── */
|
|
|
|
/* ─── Button Variants ───────────────────────────────────────────────────────── */
|
|
button {
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
font-family: inherit;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius);
|
|
transition: all 0.2s cubic-bezier(0.23, 1, 0.320, 1);
|
|
font-weight: 500;
|
|
}
|
|
|
|
button:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
button:active {
|
|
opacity: 0.8;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Primary Button */
|
|
button.primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
|
|
}
|
|
|
|
button.primary:hover {
|
|
background: #06b6d4;
|
|
box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
/* Ghost Button */
|
|
button.ghost {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
button.ghost:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-color: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
/* Icon Button */
|
|
button.icon {
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
button.icon:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
input[type=range] {
|
|
-webkit-appearance: none;
|
|
width: 100%;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--border);
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
input[type=range]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
cursor: pointer;
|
|
}
|