/* AQTV shared color palette & typography */

/* ===== DEFAULT: მუქი ლურჯი თემა ===== */
:root {
    --color-bg: #0f172a;
    --color-surface: #0a0f1a;
    --color-border: rgba(55, 65, 81, 0.5);
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-secondary: #3b82f6;
    --color-accent: #6ee7b7;
    --color-danger: #f87171;
    --color-danger-dark: #7f1d1d;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;
    --color-nav-bg: rgba(15, 23, 42, 0.75);
    --color-card-shadow: rgba(37, 99, 235, 0.25);
    --font-body: "BPG Glaho Arial", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-caps: "BPG Arial Caps", "Inter", system-ui, sans-serif;
}

/* ===== წითელი + თეთრი თემა ===== */
body.theme-red {
    --color-bg: #f5f5f5;
    --color-surface: #ffffff;
    --color-border: rgba(220, 220, 220, 0.8);
    --color-primary: #e53535;
    --color-primary-hover: #c62828;
    --color-secondary: #ef5350;
    --color-accent: #e53535;
    --color-danger: #b71c1c;
    --color-danger-dark: #7f0000;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-nav-bg: rgba(255, 255, 255, 0.95);
    --color-card-shadow: rgba(229, 53, 53, 0.2);
}

/* თემის გადამრთველი */
body { transition: background-color 0.3s ease, color 0.3s ease; }

/* ===== წითელი თემის overrides ===== */
body.theme-red {
    background-color: var(--color-bg);
    color: var(--color-text);
}

body.theme-red .nav-glass {
    background: var(--color-nav-bg) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 53, 53, 0.15) !important;
    box-shadow: 0 1px 20px rgba(229, 53, 53, 0.08);
}

body.theme-red .nav-link {
    color: #555 !important;
}

body.theme-red .nav-link:hover,
body.theme-red .nav-link.active {
    color: #e53535 !important;
}

body.theme-red .nav-link:hover {
    background: rgba(229, 53, 53, 0.06) !important;
}

body.theme-red a[href="/register"] {
    background: #e53535 !important;
    background-image: none !important;
    box-shadow: 0 4px 15px rgba(229, 53, 53, 0.3) !important;
}

body.theme-red a[href="/register"]:hover {
    background: #c62828 !important;
}

body.theme-red .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-red footer {
    background: #fff !important;
    border-top: 1px solid rgba(229, 53, 53, 0.15) !important;
}

body.theme-red footer h4 {
    color: #111 !important;
}

body.theme-red footer p,
body.theme-red footer span,
body.theme-red footer li {
    color: #666 !important;
}

body.theme-red footer a {
    color: #888 !important;
}

body.theme-red footer a:hover {
    color: #e53535 !important;
}

body.theme-red footer .text-slate-400 { color: #777 !important; }
body.theme-red footer .text-slate-500 { color: #888 !important; }
body.theme-red footer .border-slate-800\/50 { border-color: rgba(229, 53, 53, 0.12) !important; }

body.theme-red footer .w-11 {
    background: #e53535 !important;
    background-image: none !important;
    box-shadow: 0 4px 12px rgba(229, 53, 53, 0.3) !important;
}

body.theme-red footer .text-white.font-bold { color: #111 !important; }

body.theme-red footer .bg-slate-800\/50 {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
}

body.theme-red footer .text-blue-400,
body.theme-red footer .text-green-400,
body.theme-red footer .text-purple-400 {
    color: #e53535 !important;
}

body.theme-red footer .group-hover\:bg-blue-400,
body.theme-red footer .group-hover\:bg-green-400 {
    background: #e53535 !important;
}

body.theme-red #bg-wrap { opacity: 0.03; }

/* ===== საერთო სტილები (ორივე თემაში) ===== */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

a { color: var(--color-secondary); }
a:hover { color: var(--color-primary); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text);
    border-radius: 0.75rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 30px var(--color-card-shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-secondary));
    color: var(--color-text);
}

.card-dark {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.45);
}

.text-muted { color: var(--color-text-muted); }

.badge-pill {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-secondary);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.border-gradient { position: relative; }
.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-primary), rgba(15, 23, 42, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.nav-glass {
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.table-dark thead { background: rgba(59, 130, 246, 0.08); }
.table-dark tbody tr { border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.table-dark tbody tr:hover { background: rgba(37, 99, 235, 0.08); }

input, textarea, select {
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--color-text);
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

body.theme-red input,
body.theme-red textarea,
body.theme-red select {
    background-color: #fff;
    border-color: rgba(229, 53, 53, 0.25);
    color: #111;
}

body.theme-red input:focus,
body.theme-red textarea:focus,
body.theme-red select:focus {
    border-color: #e53535;
    box-shadow: 0 0 0 3px rgba(229, 53, 53, 0.2);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-secondary);
}

.status-chip.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-chip.error { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); }
.status-chip.warning { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.card-glow {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    border-radius: 1.25rem;
}

.shadow-primary { box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.55); }
.shadow-soft { box-shadow: 0 20px 45px -16px rgba(15, 23, 42, 0.6); }

.logo-input-card {
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
}

.logo-dropzone {
    border-radius: 1rem;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--color-text-muted);
}

.logo-dropzone:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
}

.logo-dropzone p { margin: 0; }

/* ===== თემის გადამრთველი ღილაკი ===== */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    user-select: none;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
}

body.theme-red .theme-toggle-btn {
    border-color: rgba(229, 53, 53, 0.25);
    background: rgba(229, 53, 53, 0.06);
}

body.theme-red .theme-toggle-btn:hover {
    background: rgba(229, 53, 53, 0.1);
}

.theme-toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #334155;
    position: relative;
    transition: background 0.3s ease;
}

body.theme-red .theme-toggle-track {
    background: #e53535;
}

.theme-toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.25s ease;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-red .theme-toggle-thumb {
    transform: translateX(18px);
}

.theme-toggle-label {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

body.theme-red .theme-toggle-label {
    color: #666;
}