/**
 * Lucky Stores - Main Stylesheet
 * CSS class prefix: w0767-
 * Color palette: #FF9500 | #FFA500 | #00FA9A | #FFB74D | #ADB5BD | #1A1A2E
 * Mobile-first responsive design
 */

/* === CSS Variables === */
:root {
    --w0767-primary: #FF9500;
    --w0767-secondary: #FFA500;
    --w0767-accent: #00FA9A;
    --w0767-warm: #FFB74D;
    --w0767-muted: #ADB5BD;
    --w0767-bg: #1A1A2E;
    --w0767-bg-light: #16213E;
    --w0767-bg-card: #0F3460;
    --w0767-text: #F8F9FA;
    --w0767-text-muted: #CED4DA;
    --w0767-border: rgba(255, 149, 0, 0.2);
    --w0767-radius: 12px;
    --w0767-radius-sm: 8px;
    --w0767-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w0767-transition: all 0.3s ease;
    --w0767-header-h: 56px;
    --w0767-bottom-h: 60px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--w0767-bg);
    color: var(--w0767-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}
a { color: var(--w0767-accent); text-decoration: none; transition: var(--w0767-transition); }
a:hover { color: var(--w0767-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.w0767-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, var(--w0767-bg) 0%, var(--w0767-bg-light) 100%);
    height: var(--w0767-header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--w0767-border);
    max-width: 430px; margin: 0 auto;
    transition: var(--w0767-transition);
}
.w0767-header-scrolled {
    box-shadow: 0 2px 16px rgba(255, 149, 0, 0.15);
    border-bottom-color: var(--w0767-primary);
}
.w0767-logo-area {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.w0767-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.w0767-logo-area span {
    font-size: 1.6rem; font-weight: 700;
    color: var(--w0767-primary);
    white-space: nowrap;
}
.w0767-header-actions { display: flex; align-items: center; gap: 6px; }
.w0767-btn-register, .w0767-btn-login {
    border: none; border-radius: 20px; cursor: pointer;
    font-size: 1.2rem; font-weight: 600; padding: 6px 14px;
    transition: var(--w0767-transition);
    white-space: nowrap;
}
.w0767-btn-register {
    background: linear-gradient(135deg, var(--w0767-primary), var(--w0767-warm));
    color: var(--w0767-bg);
}
.w0767-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255, 149, 0, 0.4); }
.w0767-btn-login {
    background: transparent;
    border: 1.5px solid var(--w0767-accent);
    color: var(--w0767-accent);
}
.w0767-btn-login:hover { background: rgba(0, 250, 154, 0.1); }

/* Hamburger */
.w0767-hamburger {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    padding: 4px; margin-left: 4px;
}
.w0767-hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--w0767-text); border-radius: 2px;
    transition: var(--w0767-transition);
}
.w0767-hamburger-active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.w0767-hamburger-active span:nth-child(2) { opacity: 0; }
.w0767-hamburger-active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.w0767-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 9998;
    opacity: 0; visibility: hidden; transition: var(--w0767-transition);
}
.w0767-overlay-active { opacity: 1; visibility: visible; }
.w0767-mobile-menu {
    position: fixed; top: 0; right: -280px; bottom: 0;
    width: 270px; z-index: 9999;
    background: linear-gradient(180deg, var(--w0767-bg-light), var(--w0767-bg));
    padding: 70px 16px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.w0767-menu-active { right: 0; }
.w0767-mobile-menu a {
    display: block; padding: 12px 16px; margin-bottom: 4px;
    color: var(--w0767-text-muted); font-size: 1.4rem;
    border-radius: var(--w0767-radius-sm);
    transition: var(--w0767-transition);
}
.w0767-mobile-menu a:hover {
    background: rgba(255, 149, 0, 0.15); color: var(--w0767-primary);
    padding-left: 24px;
}

/* === Carousel === */
.w0767-carousel {
    position: relative; margin-top: var(--w0767-header-h);
    overflow: hidden; aspect-ratio: 16/7;
    background: var(--w0767-bg-light);
}
.w0767-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease;
    cursor: pointer;
}
.w0767-slide-active { opacity: 1; }
.w0767-slide img { width: 100%; height: 100%; object-fit: cover; }
.w0767-dots {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px;
}
.w0767-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
    transition: var(--w0767-transition);
}
.w0767-dot-active { background: var(--w0767-primary); width: 24px; border-radius: 4px; }

/* === Main Content === */
.w0767-main { padding: 16px 12px 24px; }
.w0767-section {
    margin-bottom: 28px;
    padding: 16px;
    background: linear-gradient(145deg, var(--w0767-bg-light), rgba(15, 52, 96, 0.4));
    border-radius: var(--w0767-radius);
    border: 1px solid var(--w0767-border);
}

/* Section titles */
.w0767-section-title {
    font-size: 1.8rem; font-weight: 700;
    color: var(--w0767-primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 149, 0, 0.3);
}
.w0767-section-title i { margin-right: 8px; }

/* === Game Grid === */
.w0767-game-cat-title {
    font-size: 1.5rem; font-weight: 600;
    color: var(--w0767-accent); margin: 18px 0 10px;
    padding-left: 8px;
    border-left: 3px solid var(--w0767-primary);
}
.w0767-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.w0767-game-item {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: var(--w0767-transition);
    border-radius: var(--w0767-radius-sm);
    padding: 6px;
}
.w0767-game-item:hover {
    background: rgba(255, 149, 0, 0.12);
    transform: translateY(-2px);
}
.w0767-game-item img {
    width: 100%; aspect-ratio: 1; border-radius: var(--w0767-radius-sm);
    border: 1px solid var(--w0767-border);
    margin-bottom: 4px;
}
.w0767-game-item span {
    font-size: 1.05rem; text-align: center;
    color: var(--w0767-text-muted);
    line-height: 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* === Promo Buttons & Links === */
.w0767-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w0767-primary), var(--w0767-warm));
    color: var(--w0767-bg); font-weight: 700;
    padding: 10px 24px; border-radius: 24px;
    font-size: 1.4rem; border: none; cursor: pointer;
    transition: var(--w0767-transition);
    text-align: center;
}
.w0767-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255, 149, 0, 0.4); }
.w0767-promo-link {
    color: var(--w0767-primary); font-weight: 600;
    border-bottom: 1px dashed var(--w0767-primary);
    cursor: pointer;
}
.w0767-promo-link:hover { color: var(--w0767-warm); }

/* CTA Block */
.w0767-cta-block {
    text-align: center; padding: 24px 16px;
    background: linear-gradient(135deg, rgba(255,149,0,0.15), rgba(0,250,154,0.08));
    border-radius: var(--w0767-radius);
    border: 1px solid var(--w0767-border);
}
.w0767-cta-block h3 { color: var(--w0767-primary); font-size: 1.8rem; margin-bottom: 8px; }
.w0767-cta-block p { color: var(--w0767-text-muted); margin-bottom: 14px; font-size: 1.3rem; }

/* === Content Text === */
.w0767-content-text { color: var(--w0767-text-muted); line-height: 2.2rem; }
.w0767-content-text p { margin-bottom: 10px; }
.w0767-content-text strong { color: var(--w0767-primary); }
.w0767-content-text h3 { color: var(--w0767-accent); font-size: 1.5rem; margin: 16px 0 8px; }

/* FAQ items */
.w0767-faq-item { margin-bottom: 12px; }
.w0767-faq-q {
    font-weight: 600; color: var(--w0767-primary);
    padding: 8px 12px; background: rgba(255,149,0,0.08);
    border-radius: var(--w0767-radius-sm);
    font-size: 1.3rem;
}
.w0767-faq-a { color: var(--w0767-text-muted); padding: 6px 12px; font-size: 1.25rem; line-height: 2rem; }

/* === Footer === */
.w0767-footer {
    background: linear-gradient(180deg, var(--w0767-bg-light), var(--w0767-bg));
    padding: 24px 16px;
    border-top: 1px solid var(--w0767-border);
    text-align: center;
}
.w0767-footer-desc {
    color: var(--w0767-text-muted); font-size: 1.2rem;
    line-height: 1.8rem; margin-bottom: 16px;
}
.w0767-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-bottom: 16px;
}
.w0767-footer-links a {
    display: inline-block; padding: 6px 14px;
    background: rgba(255,149,0,0.12); border-radius: 16px;
    color: var(--w0767-primary); font-size: 1.15rem;
    border: 1px solid var(--w0767-border);
    transition: var(--w0767-transition);
}
.w0767-footer-links a:hover {
    background: rgba(255,149,0,0.25); transform: translateY(-1px);
}
.w0767-site-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin-bottom: 16px;
}
.w0767-site-links a {
    color: var(--w0767-text-muted); font-size: 1.1rem;
    padding: 4px 8px;
}
.w0767-site-links a:hover { color: var(--w0767-accent); }
.w0767-copyright {
    color: var(--w0767-muted); font-size: 1.1rem;
    border-top: 1px solid var(--w0767-border);
    padding-top: 12px; margin-top: 8px;
}

/* === Bottom Navigation === */
.w0767-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--w0767-bottom-h);
    background: linear-gradient(135deg, var(--w0767-bg), var(--w0767-bg-light));
    border-top: 1px solid var(--w0767-border);
    display: flex; justify-content: space-around; align-items: center;
    max-width: 430px; margin: 0 auto;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
}
.w0767-bottom-nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    min-width: 60px; min-height: 52px;
    background: none; border: none; cursor: pointer;
    color: var(--w0767-muted); transition: var(--w0767-transition);
    padding: 4px 0;
}
.w0767-bottom-nav-item i, .w0767-bottom-nav-item .material-icons {
    font-size: 22px; margin-bottom: 2px;
    transition: var(--w0767-transition);
}
.w0767-bottom-nav-item span { font-size: 1rem; }
.w0767-bottom-nav-item:hover, .w0767-bottom-nav-active {
    color: var(--w0767-primary);
}
.w0767-bottom-nav-active i, .w0767-bottom-nav-active .material-icons {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 149, 0, 0.5));
}

/* Winner showcase */
.w0767-winner-list { display: flex; flex-direction: column; gap: 8px; }
.w0767-winner-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; background: rgba(0,250,154,0.06);
    border-radius: var(--w0767-radius-sm);
    border-left: 3px solid var(--w0767-accent);
}
.w0767-winner-name { color: var(--w0767-text); font-weight: 600; font-size: 1.2rem; }
.w0767-winner-game { color: var(--w0767-text-muted); font-size: 1.1rem; }
.w0767-winner-amount { color: var(--w0767-accent); font-weight: 700; font-size: 1.3rem; }

/* Payment icons row */
.w0767-payment-row {
    display: flex; justify-content: center; gap: 12px;
    flex-wrap: wrap; margin-top: 8px;
}
.w0767-payment-item {
    padding: 6px 14px; border-radius: 20px;
    background: rgba(255,149,0,0.1); font-size: 1.15rem;
    color: var(--w0767-text-muted); border: 1px solid var(--w0767-border);
}

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
    .w0767-bottom-nav { display: none; }
}
@media (max-width: 768px) {
    .w0767-main { padding-bottom: 80px; }
}
