/**
 * TG7772 Gaming Platform Styles
 * All classes use g382- prefix for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Reset and Base */
:root {
    --g382-primary: #FF9800;
    --g382-secondary: #F08080;
    --g382-accent: #BAFFC9;
    --g382-bg-dark: #1A1A2E;
    --g382-bg-medium: #2d2d44;
    --g382-text-light: #FFFFBA;
    --g382-text-muted: #D3D3D3;
    --g382-success: #4CAF50;
    --g382-danger: #e74c3c;
    --g382-gradient: linear-gradient(135deg, #FF9800, #F08080);
    --g382-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g382-radius: 12px;
    --g382-radius-sm: 8px;
}

* {
    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(--g382-bg-dark);
    color: var(--g382-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

a {
    color: var(--g382-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--g382-text-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g382-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g382-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g382-bg-dark) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.g382-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--g382-shadow);
}

.g382-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.g382-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g382-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g382-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g382-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g382-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g382-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--g382-radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.g382-btn-primary {
    background: var(--g382-gradient);
    color: var(--g382-bg-dark);
}

.g382-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.g382-btn-outline {
    background: transparent;
    border: 2px solid var(--g382-primary);
    color: var(--g382-primary);
}

.g382-btn-outline:hover {
    background: var(--g382-primary);
    color: var(--g382-bg-dark);
}

.g382-menu-btn {
    background: transparent;
    border: none;
    color: var(--g382-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* Mobile Menu */
.g382-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g382-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g382-menu-active {
    right: 0;
}

.g382-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;
}

.g382-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g382-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g382-bg-medium);
}

.g382-menu-close {
    background: transparent;
    border: none;
    color: var(--g382-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g382-menu-nav {
    list-style: none;
}

.g382-menu-nav li {
    margin-bottom: 0.5rem;
}

.g382-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g382-text-light);
    font-size: 1.5rem;
    border-radius: var(--g382-radius-sm);
    transition: all 0.3s ease;
}

.g382-menu-nav a:hover {
    background: var(--g382-bg-medium);
    color: var(--g382-primary);
}

/* Main Content */
.g382-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.g382-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--g382-radius) var(--g382-radius);
}

.g382-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g382-slide-active {
    opacity: 1;
}

.g382-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g382-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
}

/* Section Styles */
.g382-section {
    padding: 2rem 1.5rem;
}

.g382-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g382-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g382-section-title i {
    font-size: 2.4rem;
}

/* Game Grid */
.g382-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g382-game-card {
    background: var(--g382-bg-medium);
    border-radius: var(--g382-radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.g382-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g382-shadow);
}

.g382-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g382-game-name {
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--g382-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards and Boxes */
.g382-card {
    background: var(--g382-bg-medium);
    border-radius: var(--g382-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.g382-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--g382-primary);
}

.g382-card-content {
    font-size: 1.4rem;
    color: var(--g382-text-muted);
    line-height: 1.6;
}

/* Feature List */
.g382-feature-list {
    list-style: none;
}

.g382-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--g382-bg-dark);
}

.g382-feature-list li:last-child {
    border-bottom: none;
}

.g382-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g382-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.g382-feature-icon i {
    font-size: 1.8rem;
    color: var(--g382-bg-dark);
}

/* Promo Link */
.g382-promo-link {
    display: inline-block;
    color: var(--g382-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g382-promo-link:hover {
    color: var(--g382-text-light);
    text-decoration: underline;
}

/* Footer */
.g382-footer {
    background: var(--g382-bg-medium);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.g382-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g382-footer-links a {
    color: var(--g382-text-muted);
    font-size: 1.3rem;
}

.g382-footer-links a:hover {
    color: var(--g382-primary);
}

.g382-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g382-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.g382-partners img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.g382-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g382-text-muted);
}

/* Bottom Navigation */
.g382-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--g382-bg-medium) 0%, var(--g382-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 152, 0, 0.2);
}

.g382-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g382-nav-item i {
    font-size: 24px;
    color: var(--g382-text-muted);
    transition: all 0.3s ease;
}

.g382-nav-item span {
    font-size: 11px;
    color: var(--g382-text-muted);
    margin-top: 4px;
    transition: all 0.3s ease;
}

.g382-nav-item:hover i,
.g382-nav-item:hover span,
.g382-nav-item.active i,
.g382-nav-item.active span {
    color: var(--g382-primary);
}

.g382-nav-item:active {
    transform: scale(0.95);
}

/* FAQ Accordion */
.g382-faq-item {
    background: var(--g382-bg-medium);
    border-radius: var(--g382-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.g382-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g382-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--g382-text-muted);
    font-size: 1.4rem;
}

/* Responsive */
@media (min-width: 769px) {
    .g382-bottom-nav {
        display: none;
    }

    .g382-main {
        padding-bottom: 2rem;
    }

    .g382-footer {
        padding-bottom: 2rem;
    }

    .g382-container {
        max-width: 768px;
    }

    .g382-header-content {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .g382-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.g382-text-center { text-align: center; }
.g382-text-primary { color: var(--g382-primary); }
.g382-text-muted { color: var(--g382-text-muted); }
.g382-mb-1 { margin-bottom: 1rem; }
.g382-mb-2 { margin-bottom: 2rem; }
.g382-mt-2 { margin-top: 2rem; }
.g382-py-2 { padding: 2rem 0; }

/* Animations */
@keyframes g382-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.g382-animate-in {
    animation: g382-fadeIn 0.5s ease forwards;
}
