/* ============================================================
   FILMISCOPE - THEME SYSTEM
   Based on FilmiScope prototype design.
   Provides dark and light mode via CSS variables.
   ============================================================ */

/* Import Barlow font */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ============================================================
   DARK MODE (DEFAULT)
   ============================================================ */
:root,
[data-theme="dark"] {
    --bg:               #071318;
    --bg-darker:        #040e14;
    --bg-card:          #0d1e28;
    --bg-card-alt:      #0f2535;
    --bg-overlay:       rgba(4, 14, 20, 0.95);
    --bg-overlay-soft:  rgba(255, 255, 255, 0.05);

    --text:             #e0edf5;
    --text-soft:        #c4d4e0;
    --text-muted:       #7a95a8;
    --text-strong:      #ffffff;

    --border:           #1a3040;
    --border-strong:    #2a4555;

    --accent:           #00c9b1;
    --accent-dark:      #00a896;
    --accent-faint:     rgba(0, 201, 177, 0.10);
    --accent-border:    rgba(0, 201, 177, 0.28);
    --accent-glow:      rgba(0, 201, 177, 0.35);

    --gold:             #f5b53f;
    --orange:           #e6792a;
    --danger:           #e74c3c;

    --logo-on-accent:   #071318;

    --shadow-sm:        0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg:        0 10px 40px rgba(0, 0, 0, 0.5);

    --gradient-primary: linear-gradient(135deg, #00c9b1 0%, #00a896 50%, #00c9b1 100%);
    --input-bg:         #0a1820;
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
    --bg:               #f8fafc;
    --bg-darker:        #ffffff;
    --bg-card:          #ffffff;
    --bg-card-alt:      #f1f5f9;
    --bg-overlay:       rgba(255, 255, 255, 0.95);
    --bg-overlay-soft:  rgba(15, 23, 42, 0.04);

    --text:             #0f172a;
    --text-soft:        #1e293b;
    --text-muted:       #64748b;
    --text-strong:      #020617;

    --border:           #e2e8f0;
    --border-strong:    #cbd5e1;

    --accent:           #00a896;
    --accent-dark:      #008674;
    --accent-faint:     rgba(0, 168, 150, 0.10);
    --accent-border:    rgba(0, 168, 150, 0.32);
    --accent-glow:      rgba(0, 168, 150, 0.25);

    --gold:             #d4941f;
    --orange:           #c45e1a;
    --danger:           #dc2626;

    --logo-on-accent:   #ffffff;

    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg:        0 10px 40px rgba(0, 0, 0, 0.15);

    --gradient-primary: linear-gradient(135deg, #00a896 0%, #008674 50%, #00a896 100%);
    --input-bg:         #f1f5f9;
}

/* ============================================================
   GLOBAL RESET AND BASE STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

input,
button,
select,
textarea {
    font-family: 'Barlow', sans-serif;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

table {
    border-collapse: collapse;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   CONTAINER AND LAYOUT
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

/* ============================================================
   COMMON UTILITY CLASSES
   ============================================================ */
.hov-accent:hover {
    color: var(--accent) !important;
}

.card-hover {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    border-color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.badge-accent {
    display: inline-block;
    background: var(--accent-faint);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   BRAND LOGO
   ============================================================ */
.logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--accent);
}

.logo-text-alt {
    color: var(--text-strong);
}

.logo-tagline {
    color: var(--text-muted);
    font-size: 8px;
    letter-spacing: 3px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-tagline {
        display: none;
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--logo-on-accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-ghost {
    background: var(--accent-faint);
    color: var(--accent);
    border-color: var(--accent-border);
}

.btn-ghost:hover {
    background: var(--accent);
    color: var(--logo-on-accent);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 11px;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 14px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--input-bg, var(--bg));
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}

label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-overlay-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent-border);
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: inline;
}
/* ============================================================
   LOGO IMAGE STYLES
   White SVG logo - works in both dark and light modes
   ============================================================ */

.logo {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: filter 0.2s ease;
}

.logo-img-footer {
    height: 42px;
    margin-bottom: 14px;
}

/* Light mode: invert white logo to dark for visibility */
[data-theme="light"] .logo-img {
    filter: invert(1) brightness(0.15);
}

/* Mobile sizing */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .logo-img-footer {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }
}

/* Hover effect for logo */
.logo:hover .logo-img {
    opacity: 0.85;
}