/* ============================================
   DARKFALL LEGACY — MMORPG THEME
   ============================================ */

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

:root {
    --gold: #d4a855;
    --gold-light: #e8c674;
    --gold-dark: #a07830;
    --bg-dark: #121a14;
    --bg-body: #1a2420;
    --bg-card: #151d18;
    --bg-nav: #0e1610;
    --border: #2a3a2e;
    --border-gold: rgba(212, 168, 85, 0.25);
    --text: #d0ccc4;
    --text-muted: #7a8a7e;
    --glow-gold: rgba(212, 168, 85, 0.4);
}

/* ---------- Base ---------- */
body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 85, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(42, 58, 46, 0.3) 0%, transparent 50%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar .nav-link,
.btn {
    font-family: 'Cinzel', serif;
}

/* ---------- Ornamental Divider ---------- */
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--gold-dark);
    font-size: 0.8rem;
}
.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* ---------- Landing page ---------- */
.landing-body {
    background:
        radial-gradient(ellipse at center top, rgba(212, 168, 85, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at center, #1e2e22 0%, var(--bg-dark) 70%);
}

.landing-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212, 168, 85, 0.2));
}

/* ---------- Gold Buttons ---------- */
.btn-gold {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1a1a;
    border: 1px solid var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #111;
    box-shadow: 0 0 20px var(--glow-gold), 0 0 40px rgba(212, 168, 85, 0.15);
    transform: translateY(-1px);
}

.btn-outline-gold {
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    background: transparent;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    color: #111;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Override default outline-light to be more thematic */
.btn-outline-light {
    color: var(--gold);
    border-color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    color: #111;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--glow-gold);
}

.btn-outline-secondary {
    border-color: var(--border);
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    border-color: var(--gold-dark);
    color: var(--gold);
    background: rgba(212, 168, 85, 0.08);
}

/* ---------- Cards ---------- */
.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-bottom-color: var(--border) !important;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--gold) !important;
}

.card:hover {
    border-color: var(--border-gold) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 168, 85, 0.05);
    transition: all 0.3s ease;
}

/* ---------- Form controls ---------- */
.form-control {
    background-color: var(--bg-dark) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--gold-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 168, 85, 0.1);
    background-color: #111a13 !important;
    color: var(--text) !important;
}

.form-check-input:checked {
    background-color: var(--gold-dark);
    border-color: var(--gold);
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--bg-nav) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.navbar-brand img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 168, 85, 0.15));
    transition: filter 0.3s ease;
}
.navbar-brand img:hover {
    filter: drop-shadow(0 0 15px rgba(212, 168, 85, 0.3));
}

.navbar .nav-link {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.1rem;
    font-weight: 700;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold) !important;
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--glow-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar .nav-link:hover::before {
    width: 60%;
    left: 20%;
}

.navbar .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.4em;
}

.navbar .text-warning {
    color: var(--gold) !important;
}

.dropdown-menu-dark {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item:hover {
    background-color: rgba(212, 168, 85, 0.1) !important;
    color: var(--gold) !important;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--bg-nav) !important;
    border-top: 1px solid var(--border) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

footer a {
    transition: all 0.3s ease !important;
}
footer a:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 10px var(--glow-gold);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* ---------- Page headings ---------- */
h2.fw-bold {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Tracking for 2FA input ---------- */
.tracking-wide {
    letter-spacing: 0.5em;
}

/* ---------- Invite code table ---------- */
.code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    user-select: all;
    color: var(--gold-light);
}

/* ---------- QR code ---------- */
.qr-code img {
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.5rem;
}

/* ---------- Tables ---------- */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(212, 168, 85, 0.05);
}

/* ---------- News article ---------- */
.news-article {
    border-left: 2px solid var(--gold-dark);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    transition: border-color 0.3s ease;
}
.news-article:hover {
    border-left-color: var(--gold);
}

.news-article h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #e8e0d4;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-content p {
    margin-bottom: 0.8em;
}
.news-content ul,
.news-content ol {
    margin-bottom: 0.8em;
    padding-left: 1.5rem;
}
.news-content blockquote {
    border-left: 2px solid var(--gold-dark);
    padding-left: 1rem;
    margin: 1em 0;
    color: var(--text-muted);
}
.news-content pre {
    background: var(--bg-dark);
    padding: 0.8rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}
.news-content br {
    display: block;
    content: "";
    margin-bottom: 0.4em;
}

/* ---------- Stat cards ---------- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.08);
}

.stat-card .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-card .stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Badge ---------- */
.badge {
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ---------- NDA ---------- */
.nda-text {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.nda-text h5,
.nda-text h6 {
    color: var(--gold) !important;
    font-family: 'Cinzel', serif;
}

/* ---------- Download page ---------- */
.download-hero {
    text-align: center;
    padding: 3rem 0;
}

.download-hero h2 {
    text-shadow: 0 0 30px rgba(212, 168, 85, 0.2);
}

.download-hero .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ---------- Features cards ---------- */
.card .card-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.05rem;
}

/* ---------- Roadmap badges ---------- */
.badge.bg-success {
    background-color: #2a6e3f !important;
}
.badge.bg-warning {
    background-color: var(--gold-dark) !important;
    color: #111 !important;
}

/* ---------- Pagination ---------- */
.page-link {
    background-color: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
.page-link:hover {
    background-color: rgba(212, 168, 85, 0.15);
    border-color: var(--gold-dark);
    color: var(--gold);
}
.page-item.active .page-link {
    background-color: var(--gold-dark);
    border-color: var(--gold);
    color: #111;
}
.page-item.disabled .page-link {
    background-color: var(--bg-dark);
    border-color: var(--border);
    color: var(--text-muted);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--gold-dark);
    color: #111;
}

/* ---------- Links ---------- */
a {
    color: var(--gold);
}
a:hover {
    color: var(--gold-light);
}

/* ---------- Text helpers ---------- */
.text-gold {
    color: var(--gold) !important;
}
