/* ================================
   Base / Layout
=================================== */

:root {
    --gh-bg: #05060a;
    --gh-bg-deep: #070910;
    --gh-bg-elevated: #10121b;
    --gh-border-subtle: rgba(255, 255, 255, 0.04);
    --gh-accent: #05ff8e; /* EXACT green used in header.tpl */
    /* Main brand neon color — also used on ORDER NOW button */
    --gh-neon: #69c441;
    --gh-neon-soft: rgba(105, 196, 65, 0.35);

    --gh-text-main: #f5f7ff;
    --gh-text-soft: #a5adc5;
    --gh-text-muted: #7b8299;

    --gh-danger: #ff4d4d;
}

body.bg-gh-dark {
    background: radial-gradient(circle at top left, #121625 0, #05060a 50%);
    color: var(--gh-text-main);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

/* ================================
   Typography Helpers
=================================== */

.text-gh-primary {
    color: var(--gh-neon);
}

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

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

.text-gh-brand {
    color: var(--gh-neon) !important;
    font-weight: 700;
}

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

.bg-gh-deep {
    background: linear-gradient(90deg, #05060a, #0b0f1a);
    border-bottom: 1px solid var(--gh-border-subtle);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.navbar-brand img {
    filter: drop-shadow(0 0 6px rgba(105, 196, 65, 0.5));
    margin-right: 0.4rem;
}

.navbar-brand {
    color: var(--gh-neon) !important;
}

.navbar-nav .nav-link {
    color: var(--gh-text-soft);
    font-size: 0.95rem;
    padding-inline: 0.75rem;
}

.navbar-nav .nav-link:hover {
    color: #ffffff;
}

.navbar-nav .nav-link.active {
    color: var(--gh-neon);
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gh-neon), rgba(105, 196, 65, 0));
}

/* ================================
   Cards / Store UI
=================================== */

.gh-store-card {
    background: radial-gradient(circle at top left, #141827, #070910);
    border-radius: 0.9rem;
    border: 1px solid rgba(105, 196, 65, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.01),
        0 20px 45px rgba(0, 0, 0, 0.8);
    color: var(--gh-text-main);
}

.gh-store-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gh-neon); /* Neon like GameHub + Order Now */
}

.gh-store-card p {
    color: var(--gh-text-soft);
}

.gh-store-price {
    color: var(--gh-neon);
    font-weight: 700;
}

.gh-store-card:hover {
    border-color: rgba(105, 196, 65, 0.8);
    box-shadow:
        0 0 12px rgba(105, 196, 65, 0.7),
        0 22px 50px rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    transition: all 0.15s ease-out;
}

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

.btn-gh-store {
    background: var(--gh-neon);
    color: #05060a;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-gh-store:hover {
    background: #79da4f;
    color: #05060a;
    box-shadow: 0 0 10px rgba(121, 218, 79, 0.7);
}

/* ================================
   Loading Spinner
=================================== */

.gh-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--gh-neon);
    animation: gh-spin 0.8s linear infinite;
}

@keyframes gh-spin {
    to {
        transform: rotate(360deg);
    }
}

.gh-loading-text {
    color: var(--gh-text-soft);
}

/* ================================
   Search Input + Clear Button
=================================== */

.gh-search-wrapper {
    position: relative;
}

.gh-search-input {
    background: var(--gh-bg-elevated);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gh-text-main) !important;   /* force bright text */
    caret-color: var(--gh-neon);            /* green caret so it's obvious */
    font-size: 0.9rem;
    padding-inline: 1rem 2.3rem;
}


.gh-search-input::placeholder {
    color: var(--gh-text-muted);
}

.gh-search-input:focus {
    background: #141827;
    border-color: var(--gh-neon-soft);
    box-shadow: 0 0 0 1px rgba(105, 196, 65, 0.4);
    outline: none;
}

.gh-clear-btn {
    position: absolute;
    right: 10px;
    top: 52%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--gh-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: none;
}

.gh-clear-btn:hover {
    color: var(--gh-neon);
}

/* ================================
   Genre Index Pills
=================================== */

.gh-genre-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.gh-genre-pill {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gh-text-soft);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.gh-genre-pill:hover {
    color: #fff;
    border-color: rgba(105, 196, 65, 0.8);
    box-shadow: 0 0 10px rgba(105, 196, 65, 0.5);
    background: rgba(105, 196, 65, 0.18);
}

/* ================================
   Genre Sections
=================================== */

.gh-genre-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
}

.gh-genre-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gh-text-soft);
}

.gh-genre-toggle {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    padding-block: 0.1rem;
    padding-inline: 0.6rem;
}

.gh-genre-toggle:hover {
    border-color: var(--gh-neon);
    color: var(--gh-neon);
}

.gh-see-more {
    color: var(--gh-neon);
    text-decoration: none;
}

.gh-see-more:hover {
    text-decoration: underline;
}

.gh-game-col {
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.gh-game-col[style*="display: none"] {
    opacity: 0;
    transform: scale(0.97);
}

/* ================================
   Game Detail Page Media
=================================== */

#game-screenshots img {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    width: 100%;
    max-height: 170px;
    object-fit: cover;
}

#game-screenshots img:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: 0.15s ease-in-out;
    box-shadow: 0 0 10px rgba(105, 196, 65, 0.5);
}

#game-videos video {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 260px;
    background: #000;
}

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

footer {
    color: var(--gh-text-soft);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.25rem;
    margin-top: 3rem;
}

/* ================================
   Smooth scrolling
=================================== */

html {
    scroll-behavior: smooth;
}

/* ================================
   Responsive tweaks
=================================== */

@media (max-width: 767.98px) {
    .gh-genre-index {
        justify-content: flex-start;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }
}

/* ================================
   About Page
=================================== */

.store-root.about-root {
    max-width: 960px;
    margin: 0 auto 3rem;
}

.hero {
    background: radial-gradient(circle at top left, var(--gh-neon-soft), rgba(5, 6, 10, 0.98));
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gh-border-subtle);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
    margin-bottom: 2.5rem;
}

.hero-content {
    max-width: 720px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gh-text-soft);
    line-height: 1.7;
    margin-bottom: 0;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
   /* color: var(--gh-see-more); */
   color: #2e963e;
}

.about-text {
    color: var(--gh-text-soft);
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-list {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
    color: var(--gh-text-soft);
    font-size: 0.95rem;
}

.about-list li + li {
    margin-top: 0.25rem;
}

.about-two-column {
    display: grid;
    gap: 1.5rem;
}

.about-column {
    min-width: 0;
}

.about-pillars {
    margin-top: 2rem;
}

.about-pillars-grid {
    display: grid;
    gap: 1.4rem;
}

@media (min-width: 768px) {
    .about-two-column {
        grid-template-columns: 1.4fr 1fr;
    }

    .about-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.about-pillar {
    background: rgba(16, 18, 27, 0.95);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--gh-border-subtle);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75);
}

.about-pillar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--gh-text-main);
}

.about-cta {
    border-radius: 1.2rem;
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid var(--gh-border-subtle);
    background: radial-gradient(circle at top left, rgba(105, 196, 65, 0.25), #070910);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.about-link-muted {
    font-size: 0.9rem;
    color: var(--gh-text-muted);
    text-decoration: none;
}

.about-link-muted:hover {
    color: var(--gh-text-main);
    text-decoration: underline;
}

.btn-large {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    border-radius: 999px;
}

/* Ensure hero buttons have perfectly centered text */
.btn-gh-store,
.btn-gh-store.btn-lg,
.btn-outline-light.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}


/* Default state — no underline */
.navbar .nav-link.gh-see-more {
    color: #00ff9c;
    border-bottom: 0 !important;
    padding-bottom: 2px;
}

/* Active state — neon underline */
.navbar .nav-link.gh-see-more.active {
    color: #00ff9c !important;
    border-bottom: 2px solid #00ff9c !important;
}

/* Hover state — ONLY change color, no underline */
.navbar .nav-link.gh-see-more:hover {
    color: #00ff9c !important;
    border-bottom: 0 !important;
}


/* ============================================================
   STANDARDIZED VIDEO THUMBNAILS
   Makes every Steam trailer thumbnail uniform in size
   ============================================================ */

.gh-video-thumb-wrapper {
    width: 100%;
/*    height: 180px;            /* Adjust this value to taste (140–200px works well) */
    aspect-ratio: 16 / 9;
    max-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gh-video-thumb-wrapper img.gh-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Crops different aspect sizes cleanly */
    object-position: center;
}

/* Overlay play button consistency */
.gh-video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
}

.gh-video-thumb-wrapper:hover .gh-video-play-overlay {
    opacity: 1;
}

.gh-video-play-icon {
    font-size: 2.3rem;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Make modal close button visible on dark cards */
.modal .btn-close {
    filter: invert(1);      /* Turns the default black X to white */
    opacity: 0.9;
}

.modal .btn-close:hover {
    opacity: 1;
}
.btn-gh-store:hover {
    box-shadow: 0 0 12px #39ff14;
}


/* ================================
   Admin Nav Tabs Styling
   ================================ */

.gh-admin-nav .nav-link {
    color: var(--gh-accent, #00ff99) !important; /* Same green as GAMEHUB */
    font-weight: 600;
}

.gh-admin-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--gh-accent, #00ff99) !important;
    border-color: var(--gh-accent, #00ff99) !important;
}

.gh-admin-nav .nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--gh-accent, #00ff99) !important;
}

.btn-admin-xs {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

