/**
 * XX777 Gaming Platform - Theme Stylesheet
 * Version: 1.0.0
 * Color Palette: #34495E | #AFEEEE | #FF1493 | #E91E63 | #FF69B4
 * All classes use 'g491-' prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --g491-primary: #FF1493;
    --g491-secondary: #E91E63;
    --g491-accent: #FF69B4;
    --g491-bg-dark: #34495E;
    --g491-bg-light: #2c3e50;
    --g491-text-light: #AFEEEE;
    --g491-text-white: #ffffff;
    --g491-border: rgba(175, 238, 238, 0.2);
    --g491-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g491-radius: 12px;
    --g491-radius-sm: 8px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--g491-bg-dark) 0%, var(--g491-bg-light) 100%);
    color: var(--g491-text-white);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.g491-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.g491-wrapper {
    width: 100%;
    padding: 16px;
}

/* Header Styles */
.g491-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(52, 73, 94, 0.98) 0%, rgba(44, 62, 80, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g491-border);
    transition: all 0.3s ease;
}

.g491-header-scrolled {
    background: rgba(52, 73, 94, 0.99);
    box-shadow: var(--g491-shadow);
}

.g491-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.g491-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.g491-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g491-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--g491-primary) 0%, var(--g491-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g491-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g491-btn {
    padding: 8px 16px;
    border-radius: var(--g491-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.g491-btn-primary {
    background: linear-gradient(135deg, var(--g491-primary) 0%, var(--g491-secondary) 100%);
    color: var(--g491-text-white);
}

.g491-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.g491-btn-secondary {
    background: transparent;
    border: 2px solid var(--g491-primary);
    color: var(--g491-primary);
}

.g491-btn-secondary:hover {
    background: var(--g491-primary);
    color: var(--g491-text-white);
}

/* Menu Toggle */
.g491-menu-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 4px;
}

.g491-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--g491-text-light);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g491-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--g491-bg-dark) 0%, var(--g491-bg-light) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.g491-menu-active {
    right: 0;
}

.g491-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: all 0.3s ease;
}

.g491-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g491-nav-list {
    list-style: none;
}

.g491-nav-item {
    margin-bottom: 8px;
}

.g491-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--g491-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--g491-radius-sm);
    transition: all 0.3s ease;
}

.g491-nav-link:hover {
    background: rgba(255, 20, 147, 0.2);
    color: var(--g491-primary);
}

/* Carousel */
.g491-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g491-radius);
    margin-bottom: 20px;
}

.g491-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.g491-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.g491-slide-active {
    opacity: 1;
}

.g491-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--g491-radius);
}

.g491-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g491-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g491-dot-active {
    background: var(--g491-primary);
    width: 24px;
    border-radius: 4px;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Section Styles */
.g491-section {
    padding: 20px 16px;
    margin-bottom: 16px;
}

.g491-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--g491-text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.g491-section-title i {
    color: var(--g491-primary);
}

/* Game Grid */
.g491-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.g491-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g491-game-item:hover {
    transform: scale(1.05);
}

.g491-game-img {
    width: 60px;
    height: 60px;
    border-radius: var(--g491-radius-sm);
    object-fit: cover;
    border: 2px solid var(--g491-border);
    transition: border-color 0.3s ease;
}

.g491-game-item:hover .g491-game-img {
    border-color: var(--g491-primary);
}

.g491-game-name {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 6px;
    color: var(--g491-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Card Styles */
.g491-card {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8) 0%, rgba(44, 62, 80, 0.6) 100%);
    border-radius: var(--g491-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--g491-border);
}

.g491-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g491-primary);
    margin-bottom: 12px;
}

.g491-card-text {
    font-size: 1.4rem;
    color: var(--g491-text-light);
    line-height: 1.6;
}

/* Promo Link Styles */
.g491-promo-link {
    color: var(--g491-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g491-promo-link:hover {
    color: var(--g491-accent);
    text-decoration: underline;
}

.g491-promo-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--g491-primary) 0%, var(--g491-secondary) 100%);
    color: var(--g491-text-white);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--g491-radius);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.g491-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

/* Footer Styles */
.g491-footer {
    background: linear-gradient(180deg, var(--g491-bg-light) 0%, var(--g491-bg-dark) 100%);
    padding: 30px 16px 20px;
    border-top: 1px solid var(--g491-border);
}

.g491-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.g491-footer-link {
    color: var(--g491-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 6px 10px;
    transition: color 0.3s ease;
}

.g491-footer-link:hover {
    color: var(--g491-primary);
}

.g491-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.g491-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g491-partner-img:hover {
    opacity: 1;
}

.g491-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g491-text-light);
    opacity: 0.7;
}

/* Bottom Navigation */
.g491-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--g491-border);
    display: none;
}

.g491-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 430px;
    margin: 0 auto;
}

.g491-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
}

.g491-nav-btn i {
    font-size: 22px;
    color: var(--g491-text-light);
    transition: all 0.3s ease;
}

.g491-nav-btn span {
    font-size: 1rem;
    color: var(--g491-text-light);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.g491-nav-btn:hover i,
.g491-nav-btn:hover span,
.g491-nav-btn.g491-active i,
.g491-nav-btn.g491-active span {
    color: var(--g491-primary);
}

.g491-nav-btn:hover {
    transform: scale(1.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .g491-bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }

    .g491-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .g491-game-img {
        width: 55px;
        height: 55px;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .g491-container {
        max-width: 800px;
    }

    .g491-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g491-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.g491-text-center {
    text-align: center;
}

.g491-mb-10 {
    margin-bottom: 10px;
}

.g491-mb-20 {
    margin-bottom: 20px;
}

.g491-hidden {
    display: none;
}

/* Animation */
@keyframes g491-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.g491-animate-pulse {
    animation: g491-pulse 2s infinite;
}
