/*!
 * melbat.homes - theme stylesheet (mobile-first, bn-BD)
 * All custom classes and CSS variables use the `gb8a-` prefix.
 * Palette: #D4AF37 gold | #3A3A3A dark | #FAFAFA light.
 * Canvas: 320-430px phone, kept centered on wider viewports.
 */

:root {
    --gb8a-gold: #D4AF37;
    --gb8a-gold-soft: #E6C75A;
    --gb8a-gold-deep: #B8901F;
    --gb8a-dark: #3A3A3A;
    --gb8a-dark-2: #2A2A2A;
    --gb8a-dark-3: #1E1E1E;
    --gb8a-light: #FAFAFA;
    --gb8a-muted: #BFBFBF;
    --gb8a-line: rgba(212, 175, 55, 0.28);
    --gb8a-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    --gb8a-radius: 14px;
    --gb8a-radius-sm: 10px;
    --gb8a-maxw: 460px;
    --gb8a-header-h: 60px;
    --gb8a-bar-h: 62px;
    --gb8a-font: "Hind Siliguri", "Noto Sans Bengali", "Shonar Bangla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--gb8a-dark-3);
    color: var(--gb8a-light);
    font-family: var(--gb8a-font);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--gb8a-gold-soft); text-decoration: none; }
a:hover, a:focus { color: var(--gb8a-gold); text-decoration: underline; }

/* Phone canvas: keep the mobile frame centered on wider screens. */
.gb8a-shell {
    max-width: var(--gb8a-maxw);
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(212, 175, 55, 0.14), transparent 60%),
        linear-gradient(180deg, #202020 0%, #161616 40%, #0f0f0f 100%);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* ============ Header / Top identity bar ============ */
.gb8a-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--gb8a-header-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(58,58,58,0.96), rgba(30,30,30,0.96));
    border-bottom: 1px solid var(--gb8a-line);
    backdrop-filter: blur(8px);
}

.gb8a-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.gb8a-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--gb8a-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
    background: #fff;
    flex-shrink: 0;
}

.gb8a-brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
    color: var(--gb8a-light);
    line-height: 1.1;
}
.gb8a-brand-name span {
    color: var(--gb8a-gold);
}

.gb8a-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gb8a-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    min-height: 36px;
    min-width: 44px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    line-height: 1;
}
.gb8a-btn:focus-visible {
    outline: 2px solid var(--gb8a-gold);
    outline-offset: 2px;
}
.gb8a-btn--login {
    background: transparent;
    color: var(--gb8a-light);
    border: 1px solid var(--gb8a-gold);
}
.gb8a-btn--login:hover { background: rgba(212, 175, 55, 0.12); }

.gb8a-btn--register {
    background: linear-gradient(135deg, var(--gb8a-gold), var(--gb8a-gold-deep));
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.gb8a-btn--register:hover { transform: translateY(-1px); }

.gb8a-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gb8a-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gb8a-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.gb8a-icon-btn:hover, .gb8a-icon-btn:focus-visible {
    background: rgba(212, 175, 55, 0.16);
    outline: none;
    border-color: var(--gb8a-gold);
}
.gb8a-icon-btn svg { width: 20px; height: 20px; }

/* ============ Expandable nav menu ============ */
.gb8a-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.gb8a-body--menu-open .gb8a-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.gb8a-nav-menu {
    position: fixed;
    top: var(--gb8a-header-h);
    left: 50%;
    transform: translate(-50%, -12px);
    width: 100%;
    max-width: var(--gb8a-maxw);
    background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
    border-bottom: 1px solid var(--gb8a-line);
    border-radius: 0 0 18px 18px;
    padding: 12px 14px 16px;
    z-index: 50;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: var(--gb8a-shadow);
}
.gb8a-nav-menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.gb8a-nav-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gb8a-gold);
    margin: 6px 4px 8px;
}
.gb8a-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.gb8a-nav-link {
    display: block;
    padding: 12px 12px;
    border-radius: var(--gb8a-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gb8a-light);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.gb8a-nav-link:hover, .gb8a-nav-link:focus {
    background: rgba(212, 175, 55, 0.14);
    border-color: var(--gb8a-gold);
    color: var(--gb8a-light);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============ Layout ============ */
.gb8a-main {
    padding: 14px 12px calc(var(--gb8a-bar-h) + 24px);
}

.gb8a-section {
    margin: 22px 0 0;
}
.gb8a-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 10px;
}
.gb8a-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gb8a-light);
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.gb8a-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--gb8a-gold), var(--gb8a-gold-deep));
    border-radius: 2px;
}
.gb8a-section-more {
    font-size: 12px;
    color: var(--gb8a-gold-soft);
}

/* ============ Hero carousel ============ */
.gb8a-hero {
    position: relative;
    border-radius: var(--gb8a-radius);
    overflow: hidden;
    box-shadow: var(--gb8a-shadow);
    border: 1px solid var(--gb8a-line);
    background: #111;
}
.gb8a-hero-track {
    position: relative;
    aspect-ratio: 16 / 9;
}
.gb8a-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.gb8a-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gb8a-hero-slide--active { opacity: 1; }
.gb8a-hero-cta {
    position: absolute;
    left: 12px;
    bottom: 14px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding: 16px 6px 4px;
    color: var(--gb8a-light);
}
.gb8a-hero-cta strong {
    color: var(--gb8a-gold);
    font-size: 14px;
    font-weight: 700;
}
.gb8a-hero-cta .gb8a-btn {
    padding: 8px 14px;
    font-size: 12px;
}
.gb8a-hero-dots {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}
.gb8a-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.gb8a-hero-dot--active {
    background: var(--gb8a-gold);
    transform: scale(1.25);
}

/* ============ Feature strip ============ */
.gb8a-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.gb8a-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--gb8a-radius-sm);
    padding: 10px 6px;
    text-align: center;
    color: var(--gb8a-light);
}
.gb8a-feature svg {
    width: 22px;
    height: 22px;
    color: var(--gb8a-gold);
    margin: 0 auto 4px;
}
.gb8a-feature b {
    display: block;
    font-size: 12px;
    color: var(--gb8a-light);
}
.gb8a-feature small {
    display: block;
    font-size: 10px;
    color: var(--gb8a-muted);
    margin-top: 2px;
}

/* ============ Category chips (visual anchors, non-tabbing) ============ */
.gb8a-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 2px 0;
}
.gb8a-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gb8a-gold-soft);
    font-size: 12px;
    font-weight: 600;
}
.gb8a-cat svg { width: 13px; height: 13px; }

/* ============ Game grid ============ */
.gb8a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gb8a-game {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gb8a-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    text-align: center;
    text-decoration: none;
    color: var(--gb8a-light);
}
.gb8a-game:hover, .gb8a-game:focus {
    transform: translateY(-2px);
    border-color: var(--gb8a-gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.22);
    text-decoration: none;
    color: var(--gb8a-light);
}
.gb8a-game-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0c0c0c;
    overflow: hidden;
}
.gb8a-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.gb8a-game:hover .gb8a-game-media img { transform: scale(1.05); }
.gb8a-game-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, var(--gb8a-gold), var(--gb8a-gold-deep));
    color: #1a1a1a;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.gb8a-game-name {
    font-size: 11px;
    line-height: 1.25;
    padding: 5px 4px 6px;
    color: var(--gb8a-light);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
}

/* ============ Info / concept cards ============ */
.gb8a-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gb8a-info-card {
    background: linear-gradient(160deg, rgba(212,175,55,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: var(--gb8a-radius);
    padding: 12px;
    color: var(--gb8a-light);
}
.gb8a-info-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--gb8a-gold);
}
.gb8a-info-card p {
    margin: 0;
    font-size: 12px;
    color: var(--gb8a-muted);
    line-height: 1.5;
}
.gb8a-info-card .gb8a-stat {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--gb8a-light);
    margin-bottom: 4px;
}

.gb8a-prose {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gb8a-radius);
    padding: 14px;
    color: var(--gb8a-light);
}
.gb8a-prose h2 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--gb8a-gold);
}
.gb8a-prose p {
    font-size: 13px;
    color: #d6d6d6;
    margin: 0 0 10px;
}
.gb8a-prose a {
    color: var(--gb8a-gold-soft);
    text-decoration: underline;
}

/* ============ Extended footer (home only) ============ */
.gb8a-ext {
    margin-top: 22px;
    background: linear-gradient(180deg, rgba(212,175,55,0.07), transparent);
    border-top: 1px solid var(--gb8a-line);
    border-bottom: 1px solid var(--gb8a-line);
    padding: 16px 12px;
    border-radius: var(--gb8a-radius);
}
.gb8a-ext-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin: 10px 0 12px;
}
.gb8a-ext-link {
    font-size: 12px;
    color: #d6d6d6;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.gb8a-ext-link:hover { color: var(--gb8a-gold); }

.gb8a-promo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.gb8a-promo-tile {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--gb8a-radius-sm);
    padding: 10px;
    cursor: pointer;
    color: var(--gb8a-light);
    text-align: center;
    transition: background 0.18s ease, transform 0.16s ease;
}
.gb8a-promo-tile:hover, .gb8a-promo-tile:focus {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--gb8a-light);
}
.gb8a-promo-tile b { color: var(--gb8a-gold); display: block; font-size: 13px; }
.gb8a-promo-tile small { color: var(--gb8a-muted); display: block; font-size: 10px; margin-top: 2px; }

.gb8a-brand-blurb {
    font-size: 12px;
    color: #c8c8c8;
    line-height: 1.6;
    margin: 8px 0 0;
}
.gb8a-disclaimer {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gb8a-gold);
    border-radius: 6px;
    font-size: 11px;
    color: var(--gb8a-muted);
    line-height: 1.6;
}

/* ============ Footer ============ */
.gb8a-footer {
    text-align: center;
    padding: 14px 12px calc(var(--gb8a-bar-h) + 16px);
    color: var(--gb8a-muted);
    font-size: 11px;
    border-top: 1px solid var(--gb8a-line);
    background: rgba(0, 0, 0, 0.3);
}
.gb8a-footer b { color: var(--gb8a-gold); }

/* ============ Bottom navigation bar ============ */
.gb8a-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--gb8a-maxw);
    height: var(--gb8a-bar-h);
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: linear-gradient(180deg, rgba(40,40,40,0.98), rgba(20,20,20,0.98));
    border-top: 1px solid var(--gb8a-line);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}
.gb8a-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gb8a-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 2px 4px;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    min-height: 44px;
}
.gb8a-bar-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.18s ease;
}
.gb8a-bar-item:hover, .gb8a-bar-item:focus {
    color: var(--gb8a-gold-soft);
    text-decoration: none;
}
.gb8a-bar-item--active {
    color: var(--gb8a-gold);
    background: linear-gradient(180deg, rgba(212,175,55,0.22), rgba(212,175,55,0.02) 70%);
}
.gb8a-bar-item--active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--gb8a-gold), var(--gb8a-gold-deep));
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}
.gb8a-bar-item--active svg { transform: translateY(-1px); }
.gb8a-bar-item--promo {
    color: var(--gb8a-gold-soft);
}
.gb8a-bar-item--promo svg {
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

/* ============ Utility ============ */
.gb8a-hidden { display: none !important; }
.gb8a-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============ Slightly denser grids on larger phones ============ */
@media (min-width: 360px) {
    .gb8a-game-grid { gap: 10px; }
    .gb8a-game-name { font-size: 12px; }
}
@media (min-width: 410px) {
    .gb8a-ext-grid { grid-template-columns: repeat(3, 1fr); }
    .gb8a-promo-row { grid-template-columns: repeat(3, 1fr); }
}
