:root {
    /* Gemini Dark Theme (Default) */
    --bg: #000000;
    --card-bg: rgba(24, 24, 27, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --accent-blue: #4285f4;
    --accent-purple: #9b72cb;
    --accent-cyan: #00d1ff;
    --success: #10b981;
    --surface-hover: rgba(255, 255, 255, 0.05);
    --gemini-gradient: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] {
    --bg: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.08);
    --text: #1f1f1f;
    --text-muted: #5f6368;
    --accent-blue: #1a73e8;
    --accent-purple: #7627bb;
    --accent-cyan: #007b83;
    --surface-hover: rgba(0, 0, 0, 0.02);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#graph-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.theme-toggle-container {
    position: absolute;
    top: 0;
    right: 0;
}

#theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--surface-hover);
}

.header-content {
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}

.accent-text {
    background: var(--gemini-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.stat-item {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.text-success { color: var(--success); }
.text-accent { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }

.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    background: var(--surface-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.badges {
    display: flex;
    gap: 0.75rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-status {
    background: var(--surface-hover);
    color: var(--text-muted);
}

.status-available .badge-status {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-sale {
    background: var(--gemini-gradient);
    color: white;
}

.price-grid {
    margin-bottom: 2rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.inventory-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 1rem 0;
    border-top: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid var(--card-border);
}

.status-available .btn-primary {
    background: var(--text);
    color: var(--bg);
}

.status-available .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.3);
}

.status-oos .btn-primary {
    background: transparent;
    color: var(--text-muted);
}

.status-oos .btn-primary:hover {
    border-color: var(--text-muted);
}

.timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer {
    margin-top: 8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

#linus-img {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 140px;
    border-radius: 2rem;
    border: 1px solid var(--card-border);
    animation: float 4s infinite ease-in-out;
    pointer-events: none;
    box-shadow: var(--shadow);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container { grid-template-columns: 1fr; }
    .theme-toggle-container { top: -4rem; right: 0; }
}

