/**
 * Beeking Casino - Main Stylesheet
 * @description Mobile-first responsive styles
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g276-primary: #00FF7F;
    --g276-bg: #1B263B;
    --g276-bg-light: #243447;
    --g276-bg-dark: #0F1724;
    --g276-text: #EEEEEE;
    --g276-text-muted: #8899AA;
    --g276-accent: #FF5722;
    --g276-accent2: #00FA9A;
    --g276-border: rgba(0, 255, 127, 0.2);
    --g276-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g276-radius: 12px;
    --g276-radius-sm: 8px;
    --g276-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: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--g276-text);
    background-color: var(--g276-bg);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g276-transition);
}

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

ul, ol {
    list-style: none;
}

/* Container */
.g276-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.g276-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 56px;
    background: var(--g276-bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid var(--g276-border);
    transition: var(--g276-transition);
}

.g276-header.g276-scrolled {
    box-shadow: var(--g276-shadow);
}

.g276-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g276-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.g276-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g276-primary);
    letter-spacing: 0.5px;
}

.g276-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.g276-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--g276-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--g276-transition);
    white-space: nowrap;
}

.g276-btn-register {
    background: linear-gradient(135deg, var(--g276-primary), var(--g276-accent2));
    color: var(--g276-bg-dark);
}

.g276-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.4);
}

.g276-btn-login {
    background: transparent;
    border: 2px solid var(--g276-primary);
    color: var(--g276-primary);
}

.g276-btn-login:hover {
    background: var(--g276-primary);
    color: var(--g276-bg-dark);
}

.g276-btn-cta {
    background: linear-gradient(135deg, var(--g276-accent), #FF8A50);
    color: #fff;
    padding: 12px 28px;
    font-size: 1.5rem;
    border-radius: var(--g276-radius);
}

.g276-btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.g276-btn-promo {
    background: linear-gradient(135deg, var(--g276-primary), #00CC66);
    color: var(--g276-bg-dark);
    padding: 14px 32px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hamburger Menu */
.g276-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    margin-left: 8px;
}

.g276-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--g276-text);
    border-radius: 2px;
    transition: var(--g276-transition);
}

/* Mobile Menu */
.g276-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: var(--g276-transition);
}

.g276-menu-overlay.g276-active {
    opacity: 1;
    visibility: visible;
}

.g276-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--g276-bg-dark);
    z-index: 9999;
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g276-mobile-menu.g276-active {
    right: 0;
}

.g276-mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--g276-text);
    font-size: 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid var(--g276-border);
    transition: var(--g276-transition);
}

.g276-mobile-menu a:hover {
    color: var(--g276-primary);
    background: var(--g276-bg-light);
    padding-left: 24px;
}

/* Hero Slider */
.g276-hero {
    position: relative;
    margin-top: 56px;
    overflow: hidden;
}

.g276-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.g276-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g276-slide.g276-active {
    opacity: 1;
}

.g276-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g276-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.g276-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g276-transition);
}

.g276-slider-dot.g276-active {
    background: var(--g276-primary);
    width: 24px;
    border-radius: 4px;
}

/* Sections */
.g276-section {
    padding: 32px 16px;
}

.g276-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g276-text);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.g276-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--g276-primary), var(--g276-accent));
    border-radius: 2px;
}

.g276-section-subtitle {
    text-align: center;
    color: var(--g276-text-muted);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

/* Game Grid */
.g276-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.g276-game-card {
    position: relative;
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--g276-transition);
    aspect-ratio: 1;
}

.g276-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 255, 127, 0.2);
}

.g276-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g276-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 4px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--g276-text);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g276-game-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    background: var(--g276-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Features Grid */
.g276-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.g276-feature-card {
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius);
    padding: 20px 16px;
    text-align: center;
    border: 1px solid var(--g276-border);
    transition: var(--g276-transition);
}

.g276-feature-card:hover {
    border-color: var(--g276-primary);
    transform: translateY(-4px);
}

.g276-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--g276-primary), var(--g276-accent2));
    border-radius: 50%;
    color: var(--g276-bg-dark);
    font-size: 2rem;
}

.g276-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g276-text);
    margin-bottom: 8px;
}

.g276-feature-desc {
    font-size: 1.2rem;
    color: var(--g276-text-muted);
    line-height: 1.4;
}

/* CTA Section */
.g276-cta {
    background: linear-gradient(135deg, var(--g276-bg-light), var(--g276-bg-dark));
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--g276-radius);
    margin: 16px;
    border: 1px solid var(--g276-border);
}

.g276-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--g276-primary);
    margin-bottom: 12px;
}

.g276-cta-text {
    color: var(--g276-text-muted);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

/* Testimonials */
.g276-testimonials {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.g276-testimonial {
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius);
    padding: 20px;
    border-left: 4px solid var(--g276-primary);
}

.g276-testimonial-text {
    font-style: italic;
    color: var(--g276-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.g276-testimonial-author {
    color: var(--g276-primary);
    font-weight: 600;
    font-size: 1.3rem;
}

/* Payment Grid */
.g276-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.g276-payment-item {
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid var(--g276-border);
    transition: var(--g276-transition);
}

.g276-payment-item:hover {
    border-color: var(--g276-primary);
}

.g276-payment-item i {
    font-size: 2.4rem;
    color: var(--g276-primary);
    margin-bottom: 8px;
}

.g276-payment-name {
    font-size: 1.1rem;
    color: var(--g276-text-muted);
}

/* Winners */
.g276-winners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g276-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--g276-bg-light);
    padding: 12px 16px;
    border-radius: var(--g276-radius-sm);
    border: 1px solid var(--g276-border);
}

.g276-winner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g276-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g276-primary), var(--g276-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--g276-bg-dark);
}

.g276-winner-name {
    font-weight: 500;
    color: var(--g276-text);
}

.g276-winner-game {
    font-size: 1.2rem;
    color: var(--g276-text-muted);
}

.g276-winner-amount {
    color: var(--g276-accent);
    font-weight: 700;
    font-size: 1.4rem;
}

/* FAQ Section */
.g276-faq-item {
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--g276-border);
    overflow: hidden;
}

.g276-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--g276-text);
    transition: var(--g276-transition);
}

.g276-faq-question:hover {
    color: var(--g276-primary);
}

.g276-faq-question i {
    transition: transform 0.3s ease;
}

.g276-faq-item.g276-active .g276-faq-question i {
    transform: rotate(180deg);
}

.g276-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.g276-faq-item.g276-active .g276-faq-answer {
    max-height: 500px;
}

.g276-faq-answer-content {
    padding: 0 16px 16px;
    color: var(--g276-text-muted);
    line-height: 1.6;
}

/* Stats */
.g276-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.g276-stat {
    text-align: center;
    padding: 20px;
    background: var(--g276-bg-light);
    border-radius: var(--g276-radius);
    border: 1px solid var(--g276-border);
}

.g276-stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--g276-primary);
    margin-bottom: 4px;
}

.g276-stat-label {
    color: var(--g276-text-muted);
    font-size: 1.2rem;
}

/* Footer */
.g276-footer {
    background: var(--g276-bg-dark);
    padding: 32px 16px;
    border-top: 1px solid var(--g276-border);
    margin-bottom: 60px;
}

.g276-footer-brand {
    margin-bottom: 24px;
}

.g276-footer-desc {
    color: var(--g276-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

.g276-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.g276-footer-link {
    color: var(--g276-text-muted);
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--g276-transition);
}

.g276-footer-link:hover {
    color: var(--g276-primary);
    background: var(--g276-bg-light);
}

.g276-footer-copyright {
    text-align: center;
    color: var(--g276-text-muted);
    font-size: 1.2rem;
    padding-top: 16px;
    border-top: 1px solid var(--g276-border);
}

/* Bottom Navigation */
.g276-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: var(--g276-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--g276-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.g276-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g276-text-muted);
    cursor: pointer;
    transition: var(--g276-transition);
    text-decoration: none;
}

.g276-bottom-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.g276-bottom-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

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

/* Animations */
@keyframes g276-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes g276-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g276-animate {
    animation: g276-fadeIn 0.5s ease forwards;
}

/* Desktop Styles */
@media (min-width: 769px) {
    body {
        max-width: 100%;
    }

    .g276-header {
        max-width: 100%;
        padding: 0 40px;
    }

    .g276-container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .g276-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .g276-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .g276-bottom-nav {
        display: none;
    }

    .g276-footer {
        margin-bottom: 0;
    }

    .g276-section {
        padding: 60px 40px;
    }

    .g276-hamburger {
        display: none;
    }

    .g276-testimonials {
        flex-direction: row;
    }

    .g276-payment-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g276-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}
