/**
 * Elephant Casino Game - Main Stylesheet
 * All classes use wd1d6- prefix for namespace isolation
 * Colors: #48D1CC (accent) | #273746 (dark bg)
 */

/* Root variables */
:root {
    --wd1d6-primary: #48D1CC;
    --wd1d6-dark: #273746;
    --wd1d6-darker: #1e2d3a;
    --wd1d6-light: #f0fdfb;
    --wd1d6-text: #e8f4f3;
    --wd1d6-accent: #48D1CC;
    --wd1d6-gold: #FFD700;
    --wd1d6-bg: #273746;
    --wd1d6-card-bg: #2d3f50;
    --wd1d6-border: #3a5568;
    --wd1d6-success: #2ecc71;
    --wd1d6-warning: #f39c12;
}

/* Reset and base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wd1d6-bg);
    color: var(--wd1d6-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a { color: var(--wd1d6-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.wd1d6-container { width: 100%; padding: 0 1.2rem; }

/* ===== HEADER ===== */
.wd1d6-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wd1d6-darker);
    border-bottom: 2px solid var(--wd1d6-primary);
    max-width: 430px;
    margin: 0 auto;
}
.wd1d6-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    height: 5.2rem;
}
.wd1d6-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.wd1d6-logo-area img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}
.wd1d6-logo-area span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wd1d6-primary);
    white-space: nowrap;
}
.wd1d6-header-btns {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.wd1d6-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-height: 3.6rem;
    min-width: 4.4rem;
}
.wd1d6-btn-register {
    background: var(--wd1d6-primary);
    color: var(--wd1d6-dark);
}
.wd1d6-btn-register:hover { background: #3ec4be; }
.wd1d6-btn-login {
    background: transparent;
    color: var(--wd1d6-primary);
    border: 1.5px solid var(--wd1d6-primary);
}
.wd1d6-btn-login:hover { background: rgba(72,209,204,0.1); }
.wd1d6-menu-toggle {
    background: none;
    border: none;
    color: var(--wd1d6-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 3.6rem;
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu */
.wd1d6-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--wd1d6-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}
.wd1d6-menu-active { right: 0; }
.wd1d6-mobile-menu .wd1d6-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--wd1d6-text);
    font-size: 2.4rem;
    cursor: pointer;
}
.wd1d6-mobile-menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wd1d6-border);
    color: var(--wd1d6-text);
    font-size: 1.4rem;
}
.wd1d6-mobile-menu a:hover { color: var(--wd1d6-primary); }
.wd1d6-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}
.wd1d6-overlay-active { display: block; }

/* ===== SLIDER ===== */
.wd1d6-slider {
    position: relative;
    width: 100%;
    height: 18rem;
    overflow: hidden;
    margin-top: 5.2rem;
}
.wd1d6-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--wd1d6-transition, 0.5s) ease;
    cursor: pointer;
}
.wd1d6-slide img { width: 100%; height: 100%; object-fit: cover; }
.wd1d6-slide-active { opacity: 1; }
.wd1d6-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}
.wd1d6-slider-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
}
.wd1d6-dot-active { background: var(--wd1d6-primary); }

/* ===== MAIN CONTENT ===== */
main {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.wd1d6-section {
    padding: 1.5rem 1.2rem;
}
.wd1d6-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wd1d6-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--wd1d6-primary);
}
.wd1d6-section-title i {
    margin-right: 0.5rem;
}
.wd1d6-h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--wd1d6-primary);
    text-align: center;
    padding: 1.5rem 1rem;
    line-height: 2.2rem;
}

/* ===== GAME GRID ===== */
.wd1d6-cat-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wd1d6-gold);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--wd1d6-primary);
}
.wd1d6-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.wd1d6-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}
.wd1d6-game-item:hover { transform: scale(1.05); }
.wd1d6-game-item img {
    width: 7rem;
    height: 7rem;
    border-radius: 0.8rem;
    border: 2px solid var(--wd1d6-border);
    margin-bottom: 0.3rem;
}
.wd1d6-game-item span {
    font-size: 1.05rem;
    color: var(--wd1d6-text);
    line-height: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CONTENT CARDS ===== */
.wd1d6-card {
    background: var(--wd1d6-card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--wd1d6-border);
}
.wd1d6-card h2, .wd1d6-card h3 {
    color: var(--wd1d6-primary);
    margin-bottom: 0.8rem;
}
.wd1d6-card h2 { font-size: 1.5rem; }
.wd1d6-card h3 { font-size: 1.3rem; }
.wd1d6-card p {
    margin-bottom: 0.8rem;
    line-height: 2rem;
    color: #c8dedd;
}
.wd1d6-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}
.wd1d6-card li {
    margin-bottom: 0.5rem;
    line-height: 1.8rem;
    color: #c8dedd;
}

/* Promo button styles */
.wd1d6-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wd1d6-primary), #2ecc71);
    color: var(--wd1d6-dark);
    padding: 0.8rem 1.6rem;
    border-radius: 2.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.wd1d6-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72,209,204,0.4);
    text-decoration: none;
}
.wd1d6-promo-link {
    color: var(--wd1d6-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.wd1d6-promo-link:hover { color: #7eeae5; }

/* Testimonials */
.wd1d6-testimonial {
    background: var(--wd1d6-card-bg);
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--wd1d6-primary);
}
.wd1d6-testimonial-name {
    font-weight: 700;
    color: var(--wd1d6-primary);
    font-size: 1.2rem;
}
.wd1d6-testimonial-text {
    font-style: italic;
    color: #b0ccc9;
    font-size: 1.2rem;
    margin-top: 0.4rem;
}

/* Winners table */
.wd1d6-winners-table {
    width: 100%;
    border-collapse: collapse;
}
.wd1d6-winners-table th {
    background: var(--wd1d6-darker);
    color: var(--wd1d6-primary);
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: left;
}
.wd1d6-winners-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--wd1d6-border);
    font-size: 1.1rem;
    color: #b0ccc9;
}

/* Payment icons */
.wd1d6-payment-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 1rem 0;
}
.wd1d6-payment-item {
    background: var(--wd1d6-darker);
    border: 1px solid var(--wd1d6-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: var(--wd1d6-text);
}

/* ===== FOOTER ===== */
.wd1d6-footer {
    background: var(--wd1d6-darker);
    padding: 2rem 1.2rem 1.5rem;
    border-top: 2px solid var(--wd1d6-primary);
}
.wd1d6-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.wd1d6-footer-brand p {
    font-size: 1.2rem;
    color: #8aa3a1;
    line-height: 1.8rem;
}
.wd1d6-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.wd1d6-footer-links a {
    color: var(--wd1d6-accent);
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--wd1d6-border);
    border-radius: 0.4rem;
}
.wd1d6-footer-links a:hover {
    background: rgba(72,209,204,0.1);
    text-decoration: none;
}
.wd1d6-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.wd1d6-footer-copy {
    text-align: center;
    font-size: 1rem;
    color: #6a8582;
    padding-top: 1rem;
    border-top: 1px solid var(--wd1d6-border);
}

/* ===== BOTTOM NAV ===== */
.wd1d6-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wd1d6-darker);
    border-top: 2px solid var(--wd1d6-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    max-width: 430px;
    margin: 0 auto;
}
.wd1d6-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.2rem;
    background: none;
    border: none;
    color: #7a9491;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.6rem;
    padding: 0.4rem;
}
.wd1d6-bottom-nav-btn i,
.wd1d6-bottom-nav-btn .material-icons {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}
.wd1d6-bottom-nav-btn span {
    font-size: 1rem;
    line-height: 1.2rem;
}
.wd1d6-bottom-nav-btn:hover,
.wd1d6-bottom-nav-active {
    color: var(--wd1d6-primary);
    background: rgba(72,209,204,0.08);
}
.wd1d6-bottom-nav-btn:active {
    transform: scale(0.92);
}

/* Back to top */
.wd1d6-back-top {
    position: fixed;
    bottom: 7.5rem;
    right: 1rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--wd1d6-primary);
    color: var(--wd1d6-dark);
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(72,209,204,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wd1d6-bottom-nav { display: flex; }
    main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
    .wd1d6-bottom-nav { display: none; }
    .wd1d6-slider { height: 24rem; }
    body { max-width: 430px; }
}
