/* ─────────────────────────────────────────────
   Homepage (logged-out landing) — see Pages/Index.cshtml
───────────────────────────────────────────── */
.gg-home-header {
    background-color: #1B1B1E;
    border-bottom: 2px solid #333;
    padding: 8px 0;
    position: relative;
    z-index: 5;
}

.gg-home-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.gg-home-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.gg-home-brand:hover { text-decoration: none; }

.gg-home-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.gg-home-search #searchInput {
    flex: 1 1 auto;
    min-width: 0;
}

.gg-home-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.gg-home-header-link {
    color: #88bbee;
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
}

.gg-home-header-link:hover { color: #def; }

.gg-home-steam-link {
    color: #ddd;
    font-weight: 600;
}

.gg-home-steam-link:hover { color: #fff; }

.gg-home-signin {
    font-size: 14px;
    color: #888;
}

.gg-home-signin:hover { color: #def; }

.gg-home-header-sep {
    width: 1px;
    height: 18px;
    background: #444;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .gg-home-header-row {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .gg-home-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }
    .gg-home-header-actions {
        margin-left: auto;
        gap: 12px;
    }
}

.gg-home {
    --gg-bg: #1B1B1E;
    --gg-bg-card: #222226;
    --gg-text: #ddd;
    --gg-text-muted: #888;
    --gg-text-dim: #666;
    --gg-link: #88bbee;
    --gg-cyan: #22ddff;
    --gg-border: #2a2a2e;
    font-family: 'Mulish', sans-serif;
    color: var(--gg-text);
    width: 100%;
}

.gg-home a { color: var(--gg-link); text-decoration: none; }
.gg-home a:hover { color: #def; }

.gg-home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 12px 0;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.gg-home-hero-copy {
    width: 100%;
    max-width: 540px;
    position: relative;
    isolation: isolate;
}

.gg-home-hero-copy::before {
    content: "";
    position: absolute;
    inset: -20px -10px;
    background: url('/web-app-manifest-512x512.png') center / contain no-repeat;
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
}

.gg-home-headline {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
}

.gg-home-accent { color: var(--gg-cyan); }

.gg-home-subcopy {
    font-size: 16px;
    color: var(--gg-text-muted);
    line-height: 1.55;
    margin: 14px 0 0;
}

.gg-home-cta-wrap {
    margin-top: 24px;
}

.gg-home-cta.btn,
.gg-home-cta.btn:focus,
.gg-home-cta.btn:active,
.gg-home-cta.btn:hover {
    font-weight: 800;
    letter-spacing: -0.01em;
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(43, 140, 255, 0.35);
    text-shadow: none;
    padding: 0.55rem 1.4rem;
    color: #fff;
    background: #2b8cff;
    border-color: #2b8cff;
}

.gg-home-cta.btn:hover {
    background: #449cff;
    border-color: #449cff;
}

.gg-home-cta-sub {
    margin-top: 12px;
    font-size: 16px;
}

.gg-home-polarizing {
    order: 2;
    align-self: stretch;
    margin: 24px 0 0;
    background: var(--gg-bg-card);
    border: 1px solid #2e2e33;
    border-radius: 10px;
    padding: 16px 14px 12px;
    min-width: 0;
}

.gg-home-polarizing-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gg-text-dim);
    font-weight: 700;
    margin-bottom: 4px;
}

.gg-home-polarizing-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.gg-home-polarizing-empty {
    font-size: 14px;
    color: var(--gg-text-muted);
    padding: 8px 0;
}

.gg-home-polarizing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    border-bottom: 1px solid var(--gg-border);
    color: inherit !important;
    cursor: pointer;
    transition: background-color 100ms ease;
}

.gg-home-polarizing-row:hover {
    background-color: rgba(136, 187, 238, 0.08);
}

.gg-home-polarizing-row:hover .gg-home-polarizing-name {
    color: #fff;
}

.gg-home-polarizing-rank {
    display: none;
    font-size: 18px;
    font-weight: 800;
    color: #555;
    min-width: 10px;
    text-align: center;
}

.gg-home-polarizing-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.95;
}

.gg-home-polarizing-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gg-home-polarizing-meta {
    min-width: 0;
    text-align: right;
}

.gg-home-polarizing-name {
    font-size: 16px;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gg-home-polarizing-dev {
    display: none;
    font-size: 14px;
    color: var(--gg-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gg-home-polarizing-footer {
    text-align: center;
    margin-top: 12px;
}

.gg-home-polarizing-footer a {
    font-size: 18px;
}

.gg-home-split {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
}

.gg-home-split-love {
    font-size: 13px;
    color: #7be87b;
    min-width: 30px;
    text-align: right;
    font-weight: 600;
}

.gg-home-split-hate {
    font-size: 13px;
    color: #e88;
    min-width: 30px;
    font-weight: 600;
}

.gg-home-split-bar {
    display: block;
    flex: 0 0 80px;
    height: 4px;
    border-radius: 2px;
    background: #c55;
    overflow: hidden;
    position: relative;
}

.gg-home-split-bar-love {
    display: block;
    height: 100%;
    background: #5a8;
}

.gg-home-polarizing-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gg-home-polarizing-reviews {
    font-size: 12px;
    color: var(--gg-text-dim);
    text-align: right;
    line-height: 1.2;
}

.gg-home-features {
    order: 1;
    align-self: stretch;
    margin: 24px auto 0;
    border-top: 1px solid var(--gg-border);
    padding: 20px 4px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 16px;
}

@media (min-width: 576px) {
    .gg-home-features {
        grid-template-columns: 1fr 1fr;
    }
}

.gg-home-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #bbb;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .gg-home-feature:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

.gg-home-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.gg-home-footer {
    text-align: center;
    padding: 16px 20px 24px;
    margin-top: 16px;
    font-size: 16px;
    color: var(--gg-text-dim);
    border-top: 1px solid var(--gg-border);
}

/* Desktop layout: two-column hero + horizontal feature strip */
@media (min-width: 900px) {
    .gg-home-hero {
        display: grid;
        grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
        grid-template-areas:
            "copy polarizing"
            "features features";
        align-items: center;
        text-align: left;
        column-gap: 40px;
        row-gap: 36px;
        padding: 52px 12px 0;
        max-width: 1100px;
    }
    .gg-home-hero-copy {
        grid-area: copy;
        min-width: 0;
        max-width: 500px;
    }
    .gg-home-headline {
        font-size: 36px;
    }
    .gg-home-subcopy {
        font-size: 18px;
        line-height: 1.55;
        margin-top: 14px;
        max-width: 420px;
    }
    .gg-home-cta-wrap { margin-top: 26px; }

    .gg-home-polarizing {
        grid-area: polarizing;
        align-self: center;
        min-width: 0;
        margin: 0;
        border-radius: 12px;
        padding: 20px 20px 16px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    }
    .gg-home-polarizing-row { padding: 9px 6px; }
    .gg-home-polarizing-rank { display: inline-block; }
    .gg-home-polarizing-cover { width: 36px; height: 36px; }
    .gg-home-polarizing-dev { display: block; }
    .gg-home-polarizing-body {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .gg-home-polarizing-meta {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    .gg-home-split { flex: 0 0 auto; align-self: center; }
    .gg-home-split-bar {
        flex: 0 0 90px;
        min-width: 0;
    }

    .gg-home-features {
        grid-area: features;
        margin: 0 auto;
        padding: 22px 32px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 28px;
    }
    .gg-home-feature {
        white-space: nowrap;
        font-size: 18px;
    }

    .gg-home-footer {
        padding: 20px 40px 28px;
        margin-top: 36px;
    }
}

/* ─────────────────────────────────────────────
   Homepage: minimal site navbar — only logo + name
   + search + Sign In. Hides About/Settings/Feed/
   Reviews/Playlist/Discovery on this page only.
───────────────────────────────────────────── */
body:has(.gg-home) .custom-navbar-toggler,
body:has(.gg-home) .navbar-toggler {
    display: none !important;
}

body:has(.gg-home) #navbar {
    display: flex !important;
    visibility: visible !important;
}

body:has(.gg-home) #navbar > .full-width-hr {
    display: none !important;
}

body:has(.gg-home) #navbar .navbar-nav:first-child > li {
    display: none !important;
}

body:has(.gg-home) #navbar .navbar-nav:first-child > li:has(.fa-sign-in-alt) {
    display: list-item !important;
}

/* Sign In is normally hidden below the xxl breakpoint; on the homepage we want
   it visible at every size so it stays on the navbar even on small screens. */
body:has(.gg-home) #loginButton {
    display: flex !important;
}

/* Below the lg breakpoint, the shared collapsed-navbar layout wraps the
   navbar-collapse onto a new line and rearranges items into a grid. On the
   homepage we want a plain single-row layout: brand on the left, search and
   Sign In on the right. */
@media (max-width: 991.98px) {
    body:has(.gg-home) .navbar {
        flex-wrap: nowrap !important;
    }
    body:has(.gg-home) #navbar.navbar-collapse {
        flex: 1 1 auto !important;
        flex-basis: auto !important;
    }
    body:has(.gg-home) #navbar .d-flex.flex-column {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
    }
    body:has(.gg-home) #navbar .d-flex.flex-column > .navbar-nav.order-2 {
        display: flex !important;
        margin-left: auto !important;
    }
    body:has(.gg-home) #navbar .navbar-nav.order-2 #searchForm {
        max-width: none;
    }
    body:has(.gg-home) #navbar .navbar-nav.order-2 #searchInput {
        width: 200px !important;
        max-width: 200px !important;
    }
}

/* Below the sm breakpoint, drop the search input but keep the Sign In button. */
@media (max-width: 575.98px) {
    body:has(.gg-home) #searchInput {
        display: none !important;
    }
}
