/**
 * UEF Faction Theme
 * United Earth Force - Military/Command aesthetic
 * Sky Blue text, Metallic Grey background, Gold accents/borders
 * Inspired by C&C GDI/Allies - bureaucratic military feel
 */

:root {
    /* Primary: Gold - UEF Command accents, borders, highlights */
    --primary: #EAB308;
    --primary-dark: #CA8A04;
    --primary-glow: rgba(234, 179, 8, 0.3);

    /* Secondary: Sky Blue - Main text and interface color */
    --accent-cyan: #7DD3FC;
    --accent-green: #10B981;
    --accent-pink: #EF4444;
    /* Red - alert/bureaucratic red tape */

    /* Backgrounds - Metallic Grey/Titanium */
    --bg-dark: #475569;
    --bg-card: rgba(71, 85, 105, 0.6);

    /* Text - Sky Blue as primary text! */
    --text-primary: #7DD3FC;
    --text-secondary: #CBD5E1;

    /* Glass - Gold borders */
    --glass-border: rgba(234, 179, 8, 0.4);
}

body {
    background: linear-gradient(135deg, #334155 0%, #475569 50%, #334155 100%);
    color: var(--text-primary);
    font-family: 'Rajdhani', 'Outfit', sans-serif;
}

/* Nav with military styling - gold border on grey */
.nav {
    background: rgba(51, 65, 85, 0.95);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    /* Gold-primary (GDI feel) */
    background: linear-gradient(135deg, #EAB308 0%, #7DD3FC 100%);
    /* vs current Blue-primary (Allies feel)
    background: linear-gradient(135deg, #7DD3FC 0%, #EAB308 100%);
    */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Scrollbar */
::-webkit-scrollbar-track {
    background: #334155;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Page title - Gold gradient */
.page-title {
    background: linear-gradient(to bottom, #EAB308, #FDE047);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, transparent, rgba(234, 179, 8, 0.08));
    border-top: 1px solid var(--glass-border);
}

/* Cards - Gold borders, grey background */
.card,
.character-card,
.faction-card,
.result-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.character-card:hover,
.faction-card:hover,
.result-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.25);
}

/* Text Colors */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
}

/* Gradient headings for major sections (excludes branding page) */
h1:not(.faction-title),
h2:not(.faction-title) {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Body text inherits from body color, specific classes can override */

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent-cyan);
}

/* Section titles */
.section-title,
.explore-section h2,
.homepage-section h2 {
    color: var(--text-primary);
}

/* Card text */
.card .file-id,
.file-entry .file-id {
    color: var(--primary);
}

.card .file-meta,
.file-entry .file-meta {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    color: var(--text-secondary);
}

.footer a {
    color: var(--text-secondary);
}

.footer a:hover {
    color: var(--primary);
}

.copyright {
    color: #94a3b8;
}

/* Menu drawer styling */
.menu-drawer {
    background: #334155;
    border-left: 2px solid var(--primary);
}

.menu-title {
    color: var(--primary);
}

.menu-section-header {
    color: var(--text-primary);
}

.menu-submenu a {
    color: var(--text-secondary);
}

.menu-submenu a:hover,
.menu-submenu a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

.menu-link {
    color: var(--text-primary);
}

.menu-link:hover {
    color: var(--primary);
}

.theme-option {
    border-color: var(--glass-border);
}

.theme-option.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}