/* ============================================================
   GameHub Dark Mode UI - Full CSS
   ============================================================ */

/* ---------- Color System (from GameHub logo) ---------- */
:root {
    /* Base */
    --gh-bg: #151c1a;          /* deep charcoal */
    --gh-bg-elevated: #1e2724; /* cards/nav background */
    --gh-bg-soft: #101614;
    --gh-border: #34403b;

    /* Text */
    --gh-text: #f9fafb;
    --gh-text-muted: #9ca3af;
    --gh-text-soft: #6b7280;

    /* Primary (logo greens) */
    --gh-primary: #69c441;      /* bright logo green */
    --gh-primary-soft: #4b8d32; /* softer mid tone */
    --gh-primary-dark: #114822; /* dark outline green */
    --gh-highlight: #a3ff6a;    /* accent highlight */

    /* Semantic accents */
    --gh-success: #22c55e;
    --gh-danger: #ef4444;
    --gh-warning: #eab308;
    --gh-info: #38bdf8;
}

/* ============================================================
   Base, Layout, Typography
   ============================================================ */

html,
body {
    height: 100%;
}

body {
    background: radial-gradient(circle at top,
        #1e2724 0,
        var(--gh-bg) 45%,
        #050808 100%);
    color: var(--gh-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gh-text);
    font-weight: 600;
}

p, span, li, small, label {
    color: var(--gh-text-muted);
}

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

/* Utility text helpers */
.text-gh-primary { color: var(--gh-primary) !important; }
.text-gh-muted   { color: var(--gh-text-muted) !important; }
.text-gh-soft    { color: var(--gh-text-soft) !important; }

/* Section titles */
.gh-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gh-text-soft);
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
    background: rgba(21, 28, 26, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gh-border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gh-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--gh-text-muted) !important;
    font-size: 0.9rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gh-primary) !important;
}

/* ============================================================
   Generic Cards
   ============================================================ */

.card {
    background: radial-gradient(circle at top left,
        #111716 0,
        var(--gh-bg-elevated) 50%);
    border: 1px solid var(--gh-border);
    border-radius: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: var(--gh-text); /* text readable by default */
}

.card-header {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--gh-border);
    font-weight: 600;
}

.card-title {
    color: var(--gh-text);
}

.card-subtitle,
.card-text,
.card p,
.card small,
.card span,
.card li {
    color: var(--gh-text-muted);
}

/* Highlight big numbers in cards */
.card .gh-number,
.card .highlight-number {
    color: var(--gh-primary);
    font-weight: 700;
}

/* ============================================================
   STORE CARDS - Neon outline like G-Portal/Nitrado
   ============================================================ */

/* Add class "gh-store-card" to store cards for neon effect */
.gh-store-card {
    position: relative;
    border-radius: 1rem;
    background: #0b0f0e;
    border: 1px solid rgba(105, 196, 65, 0.35);
    box-shadow:
        0 0 0 1px rgba(17, 72, 34, 0.8),
        0 12px 25px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

/* Faint radial glow at top of card */
.gh-store-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 0, rgba(163, 255, 106, 0.15) 0, transparent 55%),
        radial-gradient(circle at 90% 0, rgba(105, 196, 65, 0.18) 0, transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

/* Inner content overlay to keep text sharp */
.gh-store-card > * {
    position: relative;
    z-index: 1;
}

/* On hover: stronger neon border + lift */
.gh-store-card:hover {
    border-color: rgba(163, 255, 106, 0.9);
    box-shadow:
        0 0 12px rgba(163, 255, 106, 0.9),
        0 16px 35px rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    transition: all 0.16s ease-out;
}

/* Ensure text in store cards is clearly readable */
.gh-store-card h5,
.gh-store-card h3,
.gh-store-card h4,
.gh-store-card p,
.gh-store-card li,
.gh-store-card span,
.gh-store-card small {
    color: #ffffff !important;
}

/* Price styling inside store card */
.gh-store-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gh-primary);
}

/* ============================================================
   Buttons
   ============================================================ */

/* Generic GameHub primary button (for non-store pages) */
.btn-gh-primary {
    background: linear-gradient(135deg, var(--gh-primary-soft), var(--gh-primary));
    border: none;
    color: #050807;
    font-weight: 600;
}
.btn-gh-primary:hover,
.btn-gh-primary:focus {
    filter: brightness(1.08);
    color: #050807;
}

/* STORE: neon-green "Order Now" button */
.btn-gh-store {
    background-color: var(--gh-primary);
    border: none;
    color: #ffffff;           /* <<< makes "Order Now" clearly visible */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    display: inline-block;
}

.btn-gh-store:hover,
.btn-gh-store:focus {
    background-color: var(--gh-primary);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(105, 196, 65, 0.85);
    transform: translateY(-1px);
}

/* Ghost/outline button */
.btn-gh-outline {
    border: 1px solid var(--gh-primary);
    color: var(--gh-primary);
    background: transparent;
}
.btn-gh-outline:hover,
.btn-gh-outline:focus {
    background: rgba(105, 196, 65, 0.1);
    color: var(--gh-primary);
}

/* Map semantics to GameHub palette */
.btn-success {
    background-color: var(--gh-success);
    border-color: var(--gh-success);
}
.btn-danger {
    background-color: var(--gh-danger);
    border-color: var(--gh-danger);
}
.btn-warning {
    background-color: var(--gh-warning);
    border-color: var(--gh-warning);
    color: #111827;
}
.btn-outline-light {
    border-color: var(--gh-border);
    color: var(--gh-text);
}
.btn-outline-light:hover {
    background-color: var(--gh-bg-soft);
    color: var(--gh-text);
}

/* Small button tweak */
.btn-sm {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
}

/* ============================================================
   Forms
   ============================================================ */

.form-control,
.form-select {
    background-color: var(--gh-bg-soft);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 0.15rem rgba(105, 196, 65, 0.3);
    background-color: var(--gh-bg-soft);
    color: var(--gh-text);
}

.form-label {
    color: var(--gh-text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   Tables
   ============================================================ */

.table-dark {
    --bs-table-bg: rgba(21, 28, 26, 0.98);
    --bs-table-striped-bg: rgba(30, 39, 36, 0.95);
    --bs-table-hover-bg: rgba(40, 53, 49, 0.95);
    color: var(--gh-text-muted);
}

.table-dark tr th {
    color: var(--gh-text-soft);
    border-color: var(--gh-border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-dark tr td {
    border-color: var(--gh-border);
    color: var(--gh-text);
}

.table-hover tbody tr:hover {
    background-color: rgba(40, 53, 49, 0.95);
}

/* ============================================================
   Badges, Status Chips
   ============================================================ */

.badge-paid {
    background: rgba(105, 196, 65, 0.18);
    color: #c5ff9a;
}

.badge-upcoming {
    background: rgba(148, 163, 184, 0.18);
    color: var(--gh-text);
}

.badge-open {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.badge-answered {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

/* Server status pill */
.gh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.gh-status-pill .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
}

/* Running */
.gh-status-running {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}
.gh-status-running .dot {
    background: #22c55e;
}

/* Stopped */
.gh-status-stopped {
    background: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
}
.gh-status-stopped .dot {
    background: #6b7280;
}

/* Error */
.gh-status-error {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}
.gh-status-error .dot {
    background: #ef4444;
}

/* ============================================================
   Alerts
   ============================================================ */

.alert {
    border-radius: 0.9rem;
    border-width: 1px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(22, 163, 74, 0.7);
    color: #bbf7d0;
}

.alert-danger {
    background: rgba(185, 28, 28, 0.16);
    border-color: rgba(185, 28, 28, 0.7);
    color: #fecaca;
}

.alert-warning {
    background: rgba(202, 138, 4, 0.18);
    border-color: rgba(202, 138, 4, 0.7);
    color: #fef3c7;
}

.alert-info {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.7);
    color: #dbeafe;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
    background: transparent;
    border-top: 1px solid var(--gh-border);
    color: var(--gh-text-muted);
}

/* ============================================================
   Misc Utilities
   ============================================================ */

.gh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gh-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.gh-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--gh-border);
    font-size: 0.75rem;
    color: var(--gh-text-soft);
}

