/**
 * Filbet Casino Login - Core Stylesheet
 * All classes use we518- prefix for namespace isolation
 * Color palette: #000080 (navy), #228B22 (forest green), #00BFFF (deep sky blue),
 *               #40E0D0 (turquoise), #2C3E50 (dark blue-gray)
 */

/* CSS Variables */
:root {
    --we518-primary: #000080;
    --we518-secondary: #228B22;
    --we518-accent: #00BFFF;
    --we518-highlight: #40E0D0;
    --we518-dark: #2C3E50;
    --we518-bg: #0a0a2e;
    --we518-bg-light: #111144;
    --we518-text: #e8e8f0;
    --we518-text-muted: #a0a0c0;
    --we518-border: #1a1a4e;
    --we518-card-bg: #0d0d35;
    --we518-gradient: linear-gradient(135deg, #000080, #228B22);
    --we518-radius: 8px;
    --we518-radius-lg: 12px;
    --we518-shadow: 0 4px 12px rgba(0,0,0,0.4);
    --we518-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--we518-bg);
    color: var(--we518-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--we518-accent); text-decoration: none; transition: var(--we518-transition); }
a:hover { color: var(--we518-highlight); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.we518-header {
    position: fixed; top: 0; left: 0; right: 0;
    max-width: 430px; margin: 0 auto;
    background: linear-gradient(180deg, #000060, #000040);
    z-index: 1000;
    border-bottom: 2px solid var(--we518-secondary);
    padding: 0.8rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
}
.we518-header-logo {
    display: flex; align-items: center; gap: 0.6rem;
}
.we518-header-logo img {
    width: 28px; height: 28px; border-radius: 4px;
}
.we518-header-logo span {
    color: var(--we518-accent); font-size: 1.3rem; font-weight: 700;
    white-space: nowrap;
}
.we518-header-actions {
    display: flex; align-items: center; gap: 0.5rem;
}
.we518-btn-register {
    background: linear-gradient(135deg, #228B22, #00cc33);
    color: #fff; border: none; padding: 0.5rem 1rem;
    border-radius: var(--we518-radius); font-size: 1.2rem;
    font-weight: 700; cursor: pointer; transition: var(--we518-transition);
    min-height: 32px;
}
.we518-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(34,139,34,0.5); }
.we518-btn-login {
    background: transparent; color: var(--we518-accent);
    border: 1px solid var(--we518-accent); padding: 0.5rem 1rem;
    border-radius: var(--we518-radius); font-size: 1.2rem;
    font-weight: 600; cursor: pointer; transition: var(--we518-transition);
    min-height: 32px;
}
.we518-btn-login:hover { background: rgba(0,191,255,0.15); }
.we518-hamburger {
    background: none; border: none; color: var(--we518-text);
    font-size: 2rem; cursor: pointer; padding: 0.2rem;
    display: flex; align-items: center;
}

/* Mobile Menu Overlay */
.we518-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 9998;
    opacity: 0; visibility: hidden; transition: var(--we518-transition);
}
.we518-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Menu */
.we518-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px;
    height: 100vh; background: linear-gradient(180deg, #0a0a3e, #000020);
    z-index: 9999; transition: right 0.3s ease;
    padding: 2rem 1.5rem; overflow-y: auto;
}
.we518-menu-active { right: 0; }
.we518-menu-close {
    background: none; border: none; color: var(--we518-text);
    font-size: 2.4rem; cursor: pointer; position: absolute;
    top: 1rem; right: 1rem;
}
.we518-menu-title {
    color: var(--we518-accent); font-size: 1.6rem;
    font-weight: 700; margin-bottom: 2rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--we518-border);
}
.we518-menu-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0.8rem; color: var(--we518-text);
    font-size: 1.4rem; border-bottom: 1px solid var(--we518-border);
    transition: var(--we518-transition);
}
.we518-menu-link:hover { color: var(--we518-accent); background: rgba(0,191,255,0.08); }
.we518-menu-link i, .we518-menu-link .material-icons-outlined { font-size: 2rem; }

/* Main Content */
.we518-main {
    padding-top: 56px;
    min-height: 100vh;
}
@media (max-width: 768px) {
    .we518-main { padding-bottom: 80px; }
}

/* Carousel */
.we518-carousel {
    position: relative; overflow: hidden;
    margin: 0; width: 100%;
}
.we518-carousel-slide {
    display: none; width: 100%; cursor: pointer;
}
.we518-slide-active { display: block; }
.we518-carousel-slide img {
    width: 100%; height: auto; min-height: 180px; object-fit: cover;
}
.we518-carousel-dots {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 6px;
}
.we518-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    border: none; transition: var(--we518-transition);
}
.we518-dot-active { background: var(--we518-accent); transform: scale(1.2); }

/* Sections */
.we518-section {
    padding: 2rem 1.2rem;
}
.we518-section-title {
    font-size: 1.8rem; font-weight: 700;
    margin-bottom: 1.2rem; color: var(--we518-accent);
    display: flex; align-items: center; gap: 0.6rem;
    border-left: 3px solid var(--we518-secondary);
    padding-left: 1rem;
}
.we518-section-title i, .we518-section-title .material-icons-outlined {
    font-size: 2rem; color: var(--we518-highlight);
}

/* Game Grid */
.we518-game-category-title {
    font-size: 1.5rem; font-weight: 700;
    color: var(--we518-highlight); margin: 1.5rem 0 0.8rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.we518-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.we518-game-item {
    text-align: center; cursor: pointer;
    transition: var(--we518-transition);
    border-radius: var(--we518-radius);
    padding: 0.4rem;
}
.we518-game-item:hover {
    background: rgba(0,191,255,0.1);
    transform: translateY(-2px);
}
.we518-game-item img {
    width: 100%; aspect-ratio: 1; border-radius: var(--we518-radius);
    border: 1px solid var(--we518-border);
    object-fit: cover;
}
.we518-game-name {
    font-size: 1rem; color: var(--we518-text-muted);
    margin-top: 0.3rem; line-height: 1.2rem;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.we518-card {
    background: var(--we518-card-bg);
    border: 1px solid var(--we518-border);
    border-radius: var(--we518-radius-lg);
    padding: 1.5rem; margin-bottom: 1.2rem;
}
.we518-card h3 {
    font-size: 1.5rem; color: var(--we518-accent);
    margin-bottom: 0.8rem;
}
.we518-card p {
    font-size: 1.3rem; line-height: 1.6rem;
    color: var(--we518-text-muted); margin-bottom: 0.8rem;
}

/* Promo Buttons */
.we518-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #228B22, #00cc33);
    color: #fff; padding: 0.8rem 1.8rem;
    border-radius: var(--we518-radius); font-size: 1.3rem;
    font-weight: 700; cursor: pointer; border: none;
    transition: var(--we518-transition);
    text-align: center;
}
.we518-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34,139,34,0.5);
}
.we518-promo-link {
    color: var(--we518-highlight); font-weight: 600;
    text-decoration: underline; cursor: pointer;
    transition: var(--we518-transition);
}
.we518-promo-link:hover { color: #fff; }

/* Testimonials */
.we518-testimonial {
    background: linear-gradient(135deg, rgba(0,0,128,0.3), rgba(34,139,34,0.2));
    border-left: 3px solid var(--we518-accent);
    border-radius: var(--we518-radius);
    padding: 1rem; margin-bottom: 1rem;
}
.we518-testimonial-name {
    color: var(--we518-accent); font-weight: 600;
    font-size: 1.2rem;
}
.we518-testimonial-text {
    color: var(--we518-text-muted); font-size: 1.2rem;
    margin-top: 0.4rem; line-height: 1.5rem;
}

/* Payment Methods */
.we518-payment-grid {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    justify-content: center;
}
.we518-payment-item {
    background: var(--we518-bg-light);
    border: 1px solid var(--we518-border);
    border-radius: var(--we518-radius);
    padding: 0.6rem 1rem; font-size: 1.2rem;
    color: var(--we518-text-muted);
}

/* Winners */
.we518-winner-item {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.6rem 0;
    border-bottom: 1px solid var(--we518-border);
    font-size: 1.2rem;
}
.we518-winner-name { color: var(--we518-accent); font-weight: 600; }
.we518-winner-game { color: var(--we518-text-muted); }
.we518-winner-amount { color: #ffd700; font-weight: 700; }

/* Footer */
.we518-footer {
    background: linear-gradient(180deg, #0a0a2e, #000020);
    padding: 2rem 1.2rem 3rem;
    border-top: 2px solid var(--we518-secondary);
}
.we518-footer-brand {
    color: var(--we518-text-muted); font-size: 1.2rem;
    line-height: 1.6rem; margin-bottom: 1.5rem;
}
.we518-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.we518-footer-link {
    color: var(--we518-accent); font-size: 1.1rem;
    padding: 0.4rem 0.8rem; background: rgba(0,191,255,0.08);
    border-radius: 4px; transition: var(--we518-transition);
}
.we518-footer-link:hover { background: rgba(0,191,255,0.2); }
.we518-footer-copy {
    color: var(--we518-text-muted); font-size: 1rem;
    text-align: center; margin-top: 1rem;
    padding-top: 1rem; border-top: 1px solid var(--we518-border);
}
.we518-footer-partners {
    display: flex; gap: 1rem; align-items: center;
    justify-content: center; margin: 1rem 0; flex-wrap: wrap;
}
.we518-footer-partners span {
    font-size: 1rem; color: var(--we518-text-muted);
    background: var(--we518-bg-light); padding: 0.3rem 0.6rem;
    border-radius: 3px; border: 1px solid var(--we518-border);
}

/* Bottom Navigation */
.we518-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-width: 430px; margin: 0 auto;
    background: linear-gradient(180deg, #000060, #000030);
    border-top: 2px solid var(--we518-secondary);
    display: flex; justify-content: space-around; align-items: center;
    height: 60px; z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}
@media (min-width: 769px) {
    .we518-bottom-nav { display: none; }
}
.we518-bottom-nav-btn {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--we518-text-muted); font-size: 1rem;
    cursor: pointer; min-width: 60px; min-height: 56px;
    transition: var(--we518-transition); position: relative;
    padding: 0.3rem;
}
.we518-bottom-nav-btn i,
.we518-bottom-nav-btn .material-icons-outlined,
.we518-bottom-nav-btn ion-icon,
.we518-bottom-nav-btn .bi {
    font-size: 22px; margin-bottom: 2px;
}
.we518-bottom-nav-btn:hover,
.we518-nav-active {
    color: var(--we518-accent);
    transform: scale(1.1);
}
.we518-nav-active::after {
    content: ''; position: absolute; top: -2px;
    left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--we518-accent); border-radius: 2px;
}
.we518-nav-badge {
    position: absolute; top: 2px; right: 8px;
    background: #ff3333; color: #fff;
    font-size: 0.8rem; font-weight: 700;
    min-width: 14px; height: 14px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    line-height: 1;
}

/* Help page specific */
.we518-faq-item {
    background: var(--we518-card-bg);
    border: 1px solid var(--we518-border);
    border-radius: var(--we518-radius);
    padding: 1.2rem; margin-bottom: 0.8rem;
}
.we518-faq-q {
    font-size: 1.4rem; font-weight: 600;
    color: var(--we518-accent); margin-bottom: 0.5rem;
}
.we518-faq-a {
    font-size: 1.3rem; color: var(--we518-text-muted);
    line-height: 1.6rem;
}
.we518-step-item {
    display: flex; gap: 1rem; margin-bottom: 1.2rem;
    align-items: flex-start;
}
.we518-step-num {
    background: var(--we518-gradient);
    color: #fff; min-width: 28px; height: 28px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
}
.we518-step-text {
    font-size: 1.3rem; color: var(--we518-text-muted);
    line-height: 1.6rem;
}
.we518-inner-link {
    color: var(--we518-highlight); font-weight: 500;
    text-decoration: underline;
}

/* Utility */
.we518-text-center { text-align: center; }
.we518-mt-1 { margin-top: 1rem; }
.we518-mt-2 { margin-top: 2rem; }
.we518-mb-1 { margin-bottom: 1rem; }
.we518-mb-2 { margin-bottom: 2rem; }
.we518-hidden { display: none; }
