/*
 * bd 111 - Main Stylesheet
 * Class prefix: w46ed-
 * Color palette: #1B263B (bg), #FAFAD2 (light), #FFB3FF (accent), #FFB3BA (highlight), #BDB76B (secondary)
 */

/* CSS Variables */
:root {
    --w46ed-primary: #1B263B;
    --w46ed-secondary: #BDB76B;
    --w46ed-accent: #FFB3FF;
    --w46ed-highlight: #FFB3BA;
    --w46ed-light: #FAFAD2;
    --w46ed-bg: #1B263B;
    --w46ed-text: #FAFAD2;
    --w46ed-text-dark: #1B263B;
    --w46ed-border: #BDB76B;
    --w46ed-radius: 8px;
    --w46ed-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

/* Container */
.w46ed-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}
.w46ed-wrapper {
    padding-top: 5.6rem;
    padding-bottom: 1rem;
}

/* Header */
.w46ed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--w46ed-primary) 0%, #2a3a5c 100%);
    border-bottom: 2px solid var(--w46ed-secondary);
    max-width: 430px;
    margin: 0 auto;
}
.w46ed-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    height: 5.6rem;
}
.w46ed-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.w46ed-logo-area img {
    width: 28px;
    height: 28px;
}
.w46ed-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w46ed-light);
    white-space: nowrap;
}
.w46ed-header-btns {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.w46ed-btn-register {
    background: linear-gradient(135deg, #FFB3BA, #FF8A95);
    color: var(--w46ed-text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: var(--w46ed-radius);
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.w46ed-btn-register:hover {
    transform: scale(1.05);
}
.w46ed-btn-login {
    background: linear-gradient(135deg, var(--w46ed-accent), #e899e8);
    color: var(--w46ed-text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: var(--w46ed-radius);
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.w46ed-btn-login:hover {
    transform: scale(1.05);
}
.w46ed-menu-toggle {
    background: none;
    border: none;
    color: var(--w46ed-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu Overlay */
.w46ed-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.w46ed-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--w46ed-primary), #0f1729);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.w46ed-mobile-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w46ed-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w46ed-secondary);
}
.w46ed-mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--w46ed-light);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(189,183,107,0.2);
    transition: color 0.2s;
}
.w46ed-mobile-menu a:hover {
    color: var(--w46ed-accent);
    text-decoration: none;
}

/* Slider */
.w46ed-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--w46ed-radius) var(--w46ed-radius);
}
.w46ed-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.w46ed-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.w46ed-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.w46ed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(250,250,210,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.w46ed-dot-active {
    background: var(--w46ed-accent);
}

/* Section titles */
.w46ed-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w46ed-light);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w46ed-accent);
}
.w46ed-section-subtitle {
    font-size: 1.4rem;
    color: var(--w46ed-secondary);
    margin-bottom: 0.8rem;
}

/* Category Label */
.w46ed-cat-label {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w46ed-accent);
    margin: 1.5rem 0 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255,179,255,0.1);
    border-radius: var(--w46ed-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Game Grid */
.w46ed-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem 0;
}
.w46ed-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.w46ed-game-item:hover {
    transform: scale(1.05);
}
.w46ed-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--w46ed-radius);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.w46ed-game-item:hover img {
    border-color: var(--w46ed-accent);
}
.w46ed-game-name {
    font-size: 1rem;
    color: var(--w46ed-light);
    margin-top: 0.3rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content sections */
.w46ed-content-block {
    background: rgba(255,255,255,0.05);
    border-radius: var(--w46ed-radius);
    padding: 1.5rem;
    margin: 1.2rem 0;
    border: 1px solid rgba(189,183,107,0.15);
}
.w46ed-content-block h2 {
    font-size: 1.6rem;
    color: var(--w46ed-accent);
    margin-bottom: 1rem;
}
.w46ed-content-block p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--w46ed-light);
}
.w46ed-content-block ul {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}
.w46ed-content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--w46ed-light);
}

/* Promotional button */
.w46ed-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w46ed-highlight), #FF8A95);
    color: var(--w46ed-text-dark);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.w46ed-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,179,186,0.4);
    text-decoration: none;
}

/* Promo link text */
.w46ed-promo-link {
    color: var(--w46ed-highlight);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* Footer */
.w46ed-footer {
    background: linear-gradient(180deg, rgba(27,38,59,0.9), #0a1020);
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--w46ed-secondary);
}
.w46ed-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.w46ed-footer-brand p {
    font-size: 1.2rem;
    color: var(--w46ed-secondary);
    line-height: 1.5;
}
.w46ed-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1rem 0;
}
.w46ed-footer-links a {
    background: rgba(255,179,255,0.1);
    color: var(--w46ed-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.w46ed-footer-links a:hover {
    background: rgba(255,179,255,0.25);
    text-decoration: none;
}
.w46ed-footer-copy {
    text-align: center;
    font-size: 1rem;
    color: rgba(250,250,210,0.5);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(189,183,107,0.15);
}

/* Bottom Navigation */
.w46ed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #2a3a5c, var(--w46ed-primary));
    border-top: 2px solid var(--w46ed-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
}
.w46ed-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--w46ed-light);
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 0.3rem;
}
.w46ed-bottom-btn:hover, .w46ed-bottom-btn:focus {
    transform: scale(1.1);
    color: var(--w46ed-accent);
}
.w46ed-bottom-btn .w46ed-bottom-icon {
    font-size: 22px;
    margin-bottom: 2px;
}
.w46ed-bottom-btn .w46ed-bottom-label {
    font-size: 10px;
    line-height: 1.2;
}
.w46ed-bottom-active {
    color: var(--w46ed-accent);
}
.w46ed-bottom-active .w46ed-bottom-icon {
    transform: scale(1.1);
}

/* Winner card */
.w46ed-winner-card {
    background: rgba(255,179,255,0.08);
    border-radius: var(--w46ed-radius);
    padding: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,179,255,0.15);
}
.w46ed-winner-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.w46ed-winner-info {
    flex: 1;
}
.w46ed-winner-name {
    font-weight: 700;
    color: var(--w46ed-accent);
    font-size: 1.2rem;
}
.w46ed-winner-amount {
    color: var(--w46ed-highlight);
    font-size: 1.3rem;
    font-weight: 700;
}
.w46ed-winner-game {
    color: var(--w46ed-secondary);
    font-size: 1rem;
}

/* Payment grid */
.w46ed-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
.w46ed-payment-item {
    background: rgba(250,250,210,0.08);
    border-radius: var(--w46ed-radius);
    padding: 0.8rem 1.2rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--w46ed-light);
    border: 1px solid rgba(189,183,107,0.2);
}

/* FAQ */
.w46ed-faq-item {
    background: rgba(255,255,255,0.04);
    border-radius: var(--w46ed-radius);
    padding: 1rem;
    margin: 0.8rem 0;
    border-left: 3px solid var(--w46ed-accent);
}
.w46ed-faq-q {
    font-weight: 700;
    color: var(--w46ed-accent);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.w46ed-faq-a {
    color: var(--w46ed-light);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Testimonial */
.w46ed-testimonial {
    background: rgba(255,179,186,0.08);
    border-radius: var(--w46ed-radius);
    padding: 1.2rem;
    margin: 0.8rem 0;
    border: 1px solid rgba(255,179,186,0.15);
}
.w46ed-testimonial-text {
    font-style: italic;
    color: var(--w46ed-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.w46ed-testimonial-author {
    color: var(--w46ed-secondary);
    font-size: 1.1rem;
}

/* CTA section */
.w46ed-cta {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(255,179,255,0.1), rgba(255,179,186,0.1));
    border-radius: var(--w46ed-radius);
    margin: 1.5rem 0;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
    .w46ed-main-content {
        padding-bottom: 75px;
    }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .w46ed-bottom-nav {
        display: none;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    body {
        max-width: 430px;
    }
    .w46ed-header, .w46ed-bottom-nav {
        max-width: 430px;
    }
}
