/**
 * FG666 Layout Stylesheet - fg666.click
 * All classes use w8815- prefix for namespace isolation
 * Color palette: #FAF0E6 | #0A0A0A | #6F4E37 | #999999 | #0000CD
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
    --w8815-primary: #0000CD;
    --w8815-bg: #0A0A0A;
    --w8815-bg-light: #1a1a1a;
    --w8815-bg-card: #141414;
    --w8815-text: #FAF0E6;
    --w8815-text-muted: #999999;
    --w8815-accent: #6F4E37;
    --w8815-accent-gold: #D4A843;
    --w8815-border: #2a2a2a;
    --w8815-radius: 1.2rem;
    --w8815-radius-sm: 0.8rem;
    --w8815-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
    background-color: var(--w8815-bg);
    color: var(--w8815-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--w8815-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--w8815-accent-gold);
}

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

/* === Container === */
.w8815-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
    width: 100%;
}

/* === Header === */
.w8815-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 100%);
    border-bottom: 1px solid var(--w8815-border);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    backdrop-filter: blur(10px);
}

.w8815-header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.w8815-header-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w8815-header-logo span {
    color: var(--w8815-text);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.w8815-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w8815-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w8815-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    min-height: 36px;
}

.w8815-btn-register {
    background: linear-gradient(135deg, #0000CD, #1a1aff);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 205, 0.4);
}

.w8815-btn-register:hover {
    background: linear-gradient(135deg, #1a1aff, #3333ff);
    transform: translateY(-1px);
    color: #fff;
}

.w8815-btn-login {
    background: transparent;
    color: var(--w8815-text);
    border: 1px solid var(--w8815-primary);
}

.w8815-btn-login:hover {
    background: rgba(0, 0, 205, 0.15);
    color: #fff;
}

.w8815-hamburger {
    background: none;
    border: none;
    color: var(--w8815-text);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

/* === Mobile Menu === */
.w8815-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.w8815-mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    right: 0;
    width: 260px;
    max-width: 80vw;
    height: calc(100vh - 56px);
    background: #111;
    z-index: 9999;
    padding: 1rem 0;
    overflow-y: auto;
    border-left: 1px solid var(--w8815-border);
}

.w8815-mobile-menu a {
    display: block;
    padding: 1rem 1.6rem;
    color: var(--w8815-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--w8815-border);
    transition: background 0.2s;
}

.w8815-mobile-menu a:hover {
    background: rgba(0, 0, 205, 0.15);
    color: var(--w8815-primary);
}

/* === Bottom Navigation === */
.w8815-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: linear-gradient(180deg, #1a1a2e, #0A0A0A);
    border-top: 1px solid var(--w8815-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.4rem;
}

.w8815-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 54px;
    background: none;
    border: none;
    color: var(--w8815-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0.4rem;
    border-radius: 0.6rem;
    gap: 0.2rem;
}

.w8815-bottom-nav-btn .w8815-nav-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s ease, color 0.25s ease;
}

.w8815-bottom-nav-btn .w8815-nav-label {
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}

.w8815-bottom-nav-btn:hover,
.w8815-bottom-nav-btn.w8815-active {
    color: var(--w8815-primary);
}

.w8815-bottom-nav-btn:hover .w8815-nav-icon {
    transform: scale(1.15);
}

.w8815-bottom-nav-btn:active {
    transform: scale(0.92);
}

/* === Main Content === */
.w8815-main {
    padding-top: 56px;
}

/* === Carousel === */
.w8815-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--w8815-radius) var(--w8815-radius);
    margin-bottom: 1.2rem;
}

.w8815-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.w8815-carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.w8815-carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.w8815-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.w8815-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(250, 240, 230, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.w8815-carousel-dot.w8815-active {
    background: var(--w8815-primary);
    width: 20px;
    border-radius: 4px;
}

/* === Sections === */
.w8815-section {
    padding: 1.6rem 0;
}

.w8815-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w8815-text);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--w8815-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w8815-section-title .material-icons,
.w8815-section-title .fas,
.w8815-section-title .bi {
    color: var(--w8815-primary);
    font-size: 2rem;
}

/* === Game Grid === */
.w8815-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w8815-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.w8815-game-item:hover {
    transform: scale(1.05);
}

.w8815-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--w8815-radius-sm);
    border: 2px solid var(--w8815-border);
    transition: border-color 0.2s;
}

.w8815-game-item:hover img {
    border-color: var(--w8815-primary);
}

.w8815-game-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--w8815-text-muted);
    margin-top: 0.3rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Category Label === */
.w8815-category-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w8815-accent-gold);
    margin: 1.4rem 0 0.8rem;
    padding-left: 0.4rem;
    border-left: 3px solid var(--w8815-primary);
}

/* === Cards === */
.w8815-card {
    background: var(--w8815-bg-card);
    border-radius: var(--w8815-radius);
    padding: 1.4rem;
    margin-bottom: 1rem;
    border: 1px solid var(--w8815-border);
}

.w8815-card h3 {
    font-size: 1.5rem;
    color: var(--w8815-accent-gold);
    margin-bottom: 0.6rem;
}

.w8815-card p {
    color: var(--w8815-text-muted);
    line-height: 1.6;
    font-size: 1.3rem;
}

/* === Promo Button Large === */
.w8815-btn-promo {
    display: block;
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--w8815-radius);
    background: linear-gradient(135deg, #0000CD, #4d4dff);
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 205, 0.35);
}

.w8815-btn-promo:hover {
    background: linear-gradient(135deg, #1a1aff, #6666ff);
    transform: translateY(-2px);
    color: #fff;
}

/* === Footer === */
.w8815-footer {
    background: #050505;
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--w8815-border);
}

.w8815-footer-brand {
    text-align: center;
    margin-bottom: 1.2rem;
}

.w8815-footer-brand p {
    color: var(--w8815-text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

.w8815-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.w8815-footer-links a {
    color: var(--w8815-primary);
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--w8815-border);
    border-radius: var(--w8815-radius-sm);
    transition: all 0.2s;
}

.w8815-footer-links a:hover {
    border-color: var(--w8815-primary);
    background: rgba(0, 0, 205, 0.1);
}

.w8815-footer-copy {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--w8815-border);
}

/* === Promo Link Text === */
.w8815-promo-text {
    color: var(--w8815-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.w8815-promo-text:hover {
    color: var(--w8815-accent-gold);
}

/* === Help Section === */
.w8815-help-content {
    padding: 1rem 0;
}

.w8815-help-content h2 {
    font-size: 1.7rem;
    color: var(--w8815-accent-gold);
    margin: 1.4rem 0 0.6rem;
}

.w8815-help-content h3 {
    font-size: 1.5rem;
    color: var(--w8815-text);
    margin: 1rem 0 0.4rem;
}

.w8815-help-content p {
    color: var(--w8815-text-muted);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.w8815-help-content ul {
    list-style: none;
    padding: 0;
}

.w8815-help-content li {
    padding: 0.6rem 0;
    color: var(--w8815-text-muted);
    border-bottom: 1px solid var(--w8815-border);
    font-size: 1.3rem;
    line-height: 1.6;
}

.w8815-help-content li .fas,
.w8815-help-content li .material-icons {
    color: var(--w8815-primary);
    margin-right: 0.6rem;
    font-size: 1.4rem;
}

/* === Testimonials === */
.w8815-testimonial {
    background: var(--w8815-bg-card);
    border-radius: var(--w8815-radius);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--w8815-primary);
}

.w8815-testimonial p {
    color: var(--w8815-text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
}

.w8815-testimonial strong {
    color: var(--w8815-accent-gold);
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
}

/* === Winners Showcase === */
.w8815-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.w8815-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--w8815-bg-card);
    border-radius: var(--w8815-radius-sm);
    border: 1px solid var(--w8815-border);
}

.w8815-winner-item span:first-child {
    color: var(--w8815-text);
    font-weight: 600;
    font-size: 1.2rem;
}

.w8815-winner-item span:last-child {
    color: var(--w8815-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

/* === Responsive === */
@media (min-width: 769px) {
    .w8815-bottom-nav {
        display: none;
    }
    .w8815-container {
        max-width: 430px;
    }
}

@media (max-width: 768px) {
    .w8815-main {
        padding-bottom: 80px;
    }
}
