/**
 * EM77 Gaming Platform - CSS Design System
 * Version: 1.0.0
 * All classes use gd49- prefix for namespace isolation
 * Color Scheme: #2F2F2F (bg) | #2D2D2D (text) with accent colors
 */

/* CSS Variables */
:root {
    --gd49-primary: #FFD700;
    --gd49-secondary: #FF6B35;
    --gd49-accent: #00D4FF;
    --gd49-bg-dark: #2F2F2F;
    --gd49-bg-darker: #1A1A1A;
    --gd49-bg-card: #3A3A3A;
    --gd49-text-light: #FFFFFF;
    --gd49-text-muted: #B0B0B0;
    --gd49-border: #4A4A4A;
    --gd49-success: #4CAF50;
    --gd49-gradient: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    --gd49-vh: 1vh;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gd49-bg-dark);
    color: var(--gd49-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.gd49-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Header Styles */
.gd49-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--gd49-bg-darker) 0%, var(--gd49-bg-dark) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gd49-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.gd49-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

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

.gd49-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gd49-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gd49-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gd49-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.gd49-btn-primary {
    background: var(--gd49-gradient);
    color: var(--gd49-bg-darker);
}

.gd49-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.gd49-btn-secondary {
    background: transparent;
    color: var(--gd49-text-light);
    border: 2px solid var(--gd49-primary);
}

.gd49-btn-secondary:hover {
    background: var(--gd49-primary);
    color: var(--gd49-bg-darker);
}

/* Menu Toggle */
.gd49-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gd49-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* Navigation Menu */
.gd49-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.gd49-nav-item a {
    color: var(--gd49-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gd49-nav-item a:hover {
    color: var(--gd49-primary);
}

/* Mobile Menu */
.gd49-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--gd49-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
}

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

.gd49-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gd49-border);
}

.gd49-close-btn {
    background: none;
    border: none;
    color: var(--gd49-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.gd49-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gd49-mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.gd49-mobile-nav-list a {
    color: var(--gd49-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gd49-mobile-nav-list a:hover {
    background: var(--gd49-bg-card);
    color: var(--gd49-primary);
}

/* Menu Overlay */
.gd49-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gd49-menu-overlay.gd49-overlay-active {
    display: block;
    opacity: 1;
}

/* Main Content */
main {
    padding-top: 80px;
}

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

/* Carousel/Slider */
.gd49-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.gd49-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.gd49-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

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

.gd49-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.gd49-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.gd49-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gd49-slide-dot.gd49-dot-active {
    background: var(--gd49-primary);
    transform: scale(1.2);
}

/* Section Styles */
.gd49-section {
    padding: 2rem 0;
}

.gd49-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gd49-primary);
    text-align: center;
}

.gd49-section-subtitle {
    font-size: 1.6rem;
    color: var(--gd49-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.gd49-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gd49-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gd49-game-item:hover {
    transform: translateY(-5px);
}

.gd49-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gd49-game-name {
    font-size: 1.2rem;
    color: var(--gd49-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Category Section */
.gd49-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gd49-category-icon {
    width: 40px;
    height: 40px;
    background: var(--gd49-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gd49-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gd49-text-light);
}

/* Cards */
.gd49-card {
    background: var(--gd49-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gd49-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gd49-primary);
}

.gd49-card-text {
    font-size: 1.4rem;
    color: var(--gd49-text-muted);
    line-height: 1.6;
}

/* Features Grid */
.gd49-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gd49-feature-item {
    background: var(--gd49-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gd49-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.gd49-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gd49-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gd49-text-light);
}

.gd49-feature-desc {
    font-size: 1.2rem;
    color: var(--gd49-text-muted);
}

/* Promo Link Styles */
.gd49-promo-link {
    color: var(--gd49-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gd49-promo-link:hover {
    color: var(--gd49-secondary);
    text-decoration: underline;
}

.gd49-promo-btn {
    display: inline-block;
    background: var(--gd49-gradient);
    color: var(--gd49-bg-darker);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gd49-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Footer */
.gd49-footer {
    background: var(--gd49-bg-darker);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.gd49-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.gd49-footer-desc {
    font-size: 1.4rem;
    color: var(--gd49-text-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

.gd49-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.gd49-footer-link {
    color: var(--gd49-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.gd49-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.gd49-footer-btn {
    background: var(--gd49-bg-card);
    color: var(--gd49-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gd49-footer-btn:hover {
    background: var(--gd49-primary);
    color: var(--gd49-bg-darker);
}

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

/* Mobile Bottom Navigation */
.gd49-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--gd49-bg-dark) 0%, var(--gd49-bg-darker) 100%);
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.gd49-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

.gd49-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--gd49-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
}

.gd49-nav-btn:hover,
.gd49-nav-btn.gd49-active {
    color: var(--gd49-primary);
    transform: scale(1.1);
}

.gd49-nav-btn i,
.gd49-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

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

/* Testimonials */
.gd49-testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gd49-testimonial {
    background: var(--gd49-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--gd49-primary);
}

.gd49-testimonial-text {
    font-size: 1.4rem;
    color: var(--gd49-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

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

/* Payment Methods */
.gd49-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gd49-payment-item {
    background: var(--gd49-bg-card);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.gd49-payment-item i {
    font-size: 2.5rem;
    color: var(--gd49-primary);
}

/* Winners Showcase */
.gd49-winners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gd49-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gd49-bg-card);
    border-radius: 8px;
    padding: 1rem;
}

.gd49-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gd49-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gd49-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gd49-bg-darker);
}

.gd49-winner-name {
    font-size: 1.4rem;
    color: var(--gd49-text-light);
}

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

.gd49-winner-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gd49-success);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gd49-header-actions .gd49-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .gd49-nav-list {
        display: none;
    }

    .gd49-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gd49-mobile-menu {
        display: block;
    }

    .gd49-bottom-nav {
        display: block;
    }

    .gd49-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .gd49-features-grid {
        grid-template-columns: 1fr;
    }

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

@media (min-width: 769px) {
    .gd49-container {
        max-width: 768px;
    }

    .gd49-bottom-nav {
        display: none !important;
    }

    main {
        padding-bottom: 0;
    }
}

/* Utility Classes */
.gd49-text-center {
    text-align: center;
}

.gd49-mb-1 {
    margin-bottom: 1rem;
}

.gd49-mb-2 {
    margin-bottom: 2rem;
}

.gd49-mb-3 {
    margin-bottom: 3rem;
}

.gd49-mt-2 {
    margin-top: 2rem;
}

.gd49-hidden {
    display: none !important;
}

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

.gd49-pulse {
    animation: gd49-pulse 2s infinite;
}

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

.gd49-fade-in {
    animation: gd49-fadeIn 0.5s ease forwards;
}
