@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Geist:wght@300;400;500;600;700&display=swap');

:root {
    --background: #0d0a07;
    --surface-0: #120d08;
    --surface-1: #18120b;
    --surface-2: #221a10;
    --surface-3: #2d2216;
    --line: rgba(201, 169, 106, 0.20);
    --line-strong: rgba(201, 169, 106, 0.45);
    --gold: #c9a96a;
    --gold-bright: #f3d790;
    --gold-glow: rgba(201, 169, 106, 0.25);
    --gold-dark: #8f7236;
    --cyan: #d4af37;
    --cyan-glow: rgba(212, 175, 55, 0.2);
    --violet: #a855f7;
    --red: #ef4444;
    --green: #10b981;
    --text: #f3ede2;
    --text-muted: #a69885;
    --text-dim: #736859;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-palette="ice"] {
    --background: #071017;
    --surface-0: #09141d;
    --surface-1: #0f1f2d;
    --surface-2: #162b3e;
    --line: rgba(56, 189, 248, 0.2);
    --line-strong: rgba(56, 189, 248, 0.45);
    --gold: #38bdf8;
    --gold-bright: #7dd3fc;
    --gold-glow: rgba(56, 189, 248, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background animated glow & Greek Online Official Artwork */
.alive-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;
    background: 
        linear-gradient(to bottom, rgba(13, 10, 7, 0.85) 0%, rgba(13, 10, 7, 0.92) 40%, rgba(13, 10, 7, 0.98) 100%),
        radial-gradient(circle at 50% 0%, rgba(201, 169, 106, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 15% 40%, rgba(180, 130, 60, 0.08) 0%, transparent 50%),
        url('../images/Web-Image/maybe_bg.webp') center top / cover no-repeat fixed,
        #0d0a07;
}

/* Hero Banner Artwork - Covers full hero viewport below navbar */
.hero-banner-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 72px);
}

.hero-header-art {
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
}

/* Typography */
h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.grad-gold {
    background: linear-gradient(135deg, #fff3d0 0%, #f3d790 30%, #c9a96a 70%, #997838 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grad-cyan {
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass cards */
.glass {
    background: color-mix(in srgb, var(--surface-1) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
}

.neon-card {
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px -3px var(--gold-glow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.neon-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(201, 169, 106, 0.2);
    transform: translateY(-2px);
}

/* Buttons */
.btn-energy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5df9b 0%, #c9a96a 50%, #9e7a33 100%);
    color: #120d06 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(201, 169, 106, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.btn-energy:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(201, 169, 106, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    filter: brightness(1.1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--surface-2) 60%, transparent);
    color: var(--text);
    font-weight: 600;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    background: color-mix(in srgb, var(--surface-2) 90%, transparent);
    box-shadow: 0 0 15px rgba(201, 169, 106, 0.2);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

/* Nav Item */
.nav-item {
    position: relative;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-item:hover, .nav-item[data-active="true"] {
    color: var(--text);
}

.nav-item[data-active="true"]::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 8px var(--gold);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: rgba(201, 169, 106, 0.15);
    color: var(--gold-bright);
    border: 1px solid rgba(201, 169, 106, 0.35);
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: color-mix(in srgb, var(--surface-0) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(201, 169, 106, 0.25);
    background: var(--surface-0);
}

.form-checkbox {
    accent-color: var(--gold);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.form-error {
    color: #f87171;
    font-size: 0.825rem;
    margin-top: 0.35rem;
}

/* Tables */
.theme-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.theme-table th {
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.theme-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.9rem;
}

.theme-table tbody tr {
    transition: background-color 0.15s ease;
}

.theme-table tbody tr:hover {
    background: color-mix(in srgb, var(--surface-2) 40%, transparent);
}

/* Utility Helpers */
.container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

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

.text-right {
    text-align: right;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a07;
}
::-webkit-scrollbar-thumb {
    background: #261c12;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 106, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
