/**
 * SSG77 Gaming Platform - Core Stylesheet
 * All classes use prefix "ga50-" for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Reset and Base Styles */
:root {
    --ga50-primary: #B8860B;
    --ga50-secondary: #FFD700;
    --ga50-accent: #DC143C;
    --ga50-bg-dark: #273746;
    --ga50-bg-darker: #1a252f;
    --ga50-text-light: #EEE8AA;
    --ga50-text-lighter: #E0E0E0;
    --ga50-gradient-gold: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
    --ga50-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --ga50-radius: 8px;
    --ga50-transition: all 0.3s ease;
}

/* Base font size for rem units (62.5% = 10px base) */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--ga50-bg-dark);
    color: var(--ga50-text-lighter);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container Styles */
.ga50-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ga50-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header Styles */
.ga50-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--ga50-bg-darker) 0%, var(--ga50-bg-dark) 100%);
    padding: 0.8rem 1rem;
    box-shadow: var(--ga50-shadow);
    transition: var(--ga50-transition);
}

.ga50-header-scrolled {
    background: rgba(26, 37, 47, 0.95);
    backdrop-filter: blur(10px);
}

.ga50-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.ga50-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.ga50-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.ga50-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--ga50-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ga50-header-actions {
    display: flex;
    gap: 0.8rem;
}

.ga50-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--ga50-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ga50-transition);
    text-decoration: none;
    min-height: 36px;
}

.ga50-btn-primary {
    background: var(--ga50-gradient-gold);
    color: var(--ga50-bg-darker);
}

.ga50-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.ga50-btn-secondary {
    background: transparent;
    border: 2px solid var(--ga50-primary);
    color: var(--ga50-primary);
}

.ga50-btn-secondary:hover {
    background: var(--ga50-primary);
    color: var(--ga50-bg-darker);
}

/* Menu Toggle */
.ga50-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.ga50-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ga50-secondary);
    transition: var(--ga50-transition);
}

/* Mobile Menu */
.ga50-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ga50-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.ga50-menu-active {
    right: 0;
}

.ga50-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: var(--ga50-transition);
}

.ga50-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ga50-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

.ga50-menu-close {
    background: none;
    border: none;
    color: var(--ga50-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.ga50-nav-list {
    list-style: none;
}

.ga50-nav-item {
    margin-bottom: 0.5rem;
}

.ga50-nav-link {
    display: block;
    padding: 1rem;
    color: var(--ga50-text-lighter);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--ga50-radius);
    transition: var(--ga50-transition);
}

.ga50-nav-link:hover {
    background: rgba(184, 134, 11, 0.2);
    color: var(--ga50-secondary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider Styles */
.ga50-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.ga50-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.ga50-slide-active {
    opacity: 1;
}

.ga50-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ga50-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(26, 37, 47, 0.9));
}

.ga50-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ga50-secondary);
    margin-bottom: 0.5rem;
}

.ga50-slide-desc {
    font-size: 1.2rem;
    color: var(--ga50-text-lighter);
}

/* Section Styles */
.ga50-section {
    padding: 2rem 1.5rem;
}

.ga50-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ga50-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.ga50-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--ga50-gradient-gold);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.ga50-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ga50-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--ga50-transition);
}

.ga50-game-item:hover {
    transform: translateY(-5px);
}

.ga50-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--ga50-radius);
    object-fit: cover;
    box-shadow: var(--ga50-shadow);
}

.ga50-game-name {
    font-size: 1.1rem;
    color: var(--ga50-text-lighter);
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.ga50-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ga50-primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--ga50-accent);
}

/* Info Cards */
.ga50-card {
    background: var(--ga50-bg-darker);
    border-radius: var(--ga50-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--ga50-shadow);
}

.ga50-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ga50-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ga50-card-text {
    font-size: 1.3rem;
    color: var(--ga50-text-lighter);
    line-height: 1.6;
}

.ga50-card-text a {
    color: var(--ga50-primary);
    text-decoration: none;
    font-weight: 600;
}

.ga50-card-text a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.ga50-footer {
    background: var(--ga50-bg-darker);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.ga50-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ga50-footer-link {
    color: var(--ga50-text-lighter);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--ga50-radius);
    transition: var(--ga50-transition);
}

.ga50-footer-link:hover {
    background: rgba(184, 134, 11, 0.2);
    color: var(--ga50-secondary);
}

.ga50-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.ga50-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--ga50-transition);
}

.ga50-partner-logo:hover {
    opacity: 1;
}

.ga50-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ga50-text-light);
    margin-top: 1rem;
}

/* Bottom Navigation - Fixed Mobile Nav */
.ga50-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--ga50-bg-dark) 0%, var(--ga50-bg-darker) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
}

@media (min-width: 769px) {
    .ga50-bottom-nav {
        display: none;
    }
}

.ga50-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--ga50-text-lighter);
    cursor: pointer;
    transition: var(--ga50-transition);
    text-decoration: none;
}

.ga50-nav-btn:hover,
.ga50-nav-btn-active {
    color: var(--ga50-secondary);
    transform: scale(1.1);
}

.ga50-nav-btn i,
.ga50-nav-btn .material-icons {
    font-size: 22px;
}

.ga50-nav-btn ion-icon {
    font-size: 24px;
}

.ga50-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Promo Links */
.ga50-promo-link {
    display: inline-block;
    color: var(--ga50-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ga50-transition);
}

.ga50-promo-link:hover {
    color: var(--ga50-secondary);
    text-decoration: underline;
}

.ga50-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--ga50-gradient-gold);
    color: var(--ga50-bg-darker);
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--ga50-transition);
    text-decoration: none;
}

.ga50-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* List Styles */
.ga50-list {
    list-style: none;
    padding: 0;
}

.ga50-list-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    font-size: 1.3rem;
    color: var(--ga50-text-lighter);
}

.ga50-list-item:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.ga50-faq-item {
    margin-bottom: 1rem;
}

.ga50-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ga50-secondary);
    margin-bottom: 0.5rem;
}

.ga50-faq-answer {
    font-size: 1.3rem;
    color: var(--ga50-text-lighter);
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid var(--ga50-primary);
}

/* Feature Grid */
.ga50-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ga50-feature-item {
    background: var(--ga50-bg-darker);
    border-radius: var(--ga50-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--ga50-transition);
}

.ga50-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ga50-shadow);
}

.ga50-feature-icon {
    font-size: 2.5rem;
    color: var(--ga50-primary);
    margin-bottom: 0.8rem;
}

.ga50-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ga50-secondary);
    margin-bottom: 0.5rem;
}

.ga50-feature-desc {
    font-size: 1.1rem;
    color: var(--ga50-text-lighter);
}

/* RTP Analysis */
.ga50-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.ga50-rtp-item {
    background: rgba(184, 134, 11, 0.1);
    border-radius: var(--ga50-radius);
    padding: 1rem;
    text-align: center;
}

.ga50-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ga50-secondary);
}

.ga50-rtp-label {
    font-size: 1rem;
    color: var(--ga50-text-light);
    margin-top: 0.3rem;
}

/* Utility Classes */
.ga50-text-center {
    text-align: center;
}

.ga50-mt-2 {
    margin-top: 2rem;
}

.ga50-mb-2 {
    margin-bottom: 2rem;
}

.ga50-hidden-desktop {
    display: block;
}

@media (min-width: 769px) {
    .ga50-hidden-desktop {
        display: none;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .ga50-header-inner {
        max-width: 1200px;
    }

    .ga50-menu-toggle {
        display: none;
    }

    .ga50-desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .ga50-desktop-nav a {
        color: var(--ga50-text-lighter);
        text-decoration: none;
        font-size: 1.4rem;
        transition: var(--ga50-transition);
    }

    .ga50-desktop-nav a:hover {
        color: var(--ga50-secondary);
    }

    .ga50-container {
        max-width: 1200px;
    }

    .ga50-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .ga50-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
