/**
 * PH78 Website Stylesheet
 * Mobile-first design with responsive breakpoints
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g497-primary: #9370DB;
    --g497-secondary: #DDA0DD;
    --g497-bg-dark: #0E1621;
    --g497-bg-light: #1a2530;
    --g497-text-light: #E6E6FA;
    --g497-text-muted: #a0a8b8;
    --g497-accent: #DDA0DD;
    --g497-gradient: linear-gradient(135deg, #9370DB 0%, #DDA0DD 100%);
    --g497-shadow: 0 4px 20px rgba(147, 112, 219, 0.3);
    --g497-radius: 12px;
    --g497-radius-sm: 8px;
    --g497-header-height: 60px;
    --g497-bottom-nav-height: 60px;
}

/* 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;
    background: var(--g497-bg-dark);
    color: var(--g497-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
.g497-h1, .g497-h2, .g497-h3, .g497-h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--g497-text-light);
}

.g497-h1 { font-size: 2.4rem; margin-bottom: 1.5rem; }
.g497-h2 { font-size: 2rem; margin-bottom: 1.2rem; }
.g497-h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.g497-h4 { font-size: 1.6rem; margin-bottom: 0.8rem; }

.g497-text { font-size: 1.4rem; color: var(--g497-text-muted); }
.g497-text-lg { font-size: 1.6rem; }

/* Container */
.g497-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.g497-wrapper {
    padding: 1.5rem 0;
}

/* Header */
.g497-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g497-header-height);
    background: rgba(14, 22, 33, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
}

.g497-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.g497-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g497-logo img {
    width: 28px;
    height: 28px;
}

.g497-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g497-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g497-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g497-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--g497-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g497-btn-primary {
    background: var(--g497-gradient);
    color: #fff;
    box-shadow: var(--g497-shadow);
}

.g497-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 112, 219, 0.4);
}

.g497-btn-secondary {
    background: transparent;
    color: var(--g497-text-light);
    border: 1px solid var(--g497-primary);
}

.g497-btn-secondary:hover {
    background: rgba(147, 112, 219, 0.1);
}

.g497-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.g497-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--g497-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g497-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g497-bg-dark);
    z-index: 9999;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g497-menu-active {
    right: 0;
}

.g497-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;
}

.g497-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g497-nav-list {
    list-style: none;
}

.g497-nav-item {
    margin-bottom: 0.5rem;
}

.g497-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g497-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--g497-radius-sm);
    transition: all 0.3s ease;
}

.g497-nav-link:hover {
    background: rgba(147, 112, 219, 0.15);
    color: var(--g497-primary);
}

/* Carousel */
.g497-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--g497-radius);
    margin-bottom: 2rem;
}

.g497-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.g497-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g497-slide-active {
    opacity: 1;
}

.g497-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--g497-radius);
}

.g497-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g497-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g497-dot-active {
    background: var(--g497-primary);
    width: 24px;
    border-radius: 4px;
}

/* Games Grid */
.g497-section {
    padding: 2rem 0;
}

.g497-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--g497-text-light);
}

.g497-section-title i {
    color: var(--g497-primary);
}

.g497-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g497-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g497-game-card:hover {
    transform: scale(1.05);
}

.g497-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g497-radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--g497-bg-light);
}

.g497-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g497-game-name {
    font-size: 1.1rem;
    color: var(--g497-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Cards */
.g497-card {
    background: var(--g497-bg-light);
    border-radius: var(--g497-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(147, 112, 219, 0.15);
}

.g497-card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--g497-primary);
}

.g497-card-text {
    font-size: 1.4rem;
    color: var(--g497-text-muted);
    line-height: 1.7;
}

/* Feature List */
.g497-feature-list {
    list-style: none;
}

.g497-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(147, 112, 219, 0.1);
}

.g497-feature-item:last-child {
    border-bottom: none;
}

.g497-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--g497-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.g497-feature-icon i {
    font-size: 1.8rem;
    color: #fff;
}

/* Footer */
.g497-footer {
    background: var(--g497-bg-light);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
}

.g497-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g497-footer-link {
    color: var(--g497-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.g497-footer-link:hover {
    color: var(--g497-primary);
}

.g497-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g497-partner {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g497-partner:hover {
    opacity: 1;
}

.g497-partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.g497-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g497-text-muted);
}

/* Bottom Navigation */
.g497-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g497-bottom-nav-height);
    background: rgba(14, 22, 33, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.g497-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g497-nav-btn i {
    font-size: 22px;
    color: var(--g497-text-muted);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.g497-nav-btn span {
    font-size: 1rem;
    color: var(--g497-text-muted);
    transition: all 0.3s ease;
}

.g497-nav-btn:hover i,
.g497-nav-btn:hover span,
.g497-nav-btn-active i,
.g497-nav-btn-active span {
    color: var(--g497-primary);
}

.g497-nav-btn:hover {
    transform: scale(1.1);
}

/* Promo Link Styles */
.g497-promo-link {
    color: var(--g497-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g497-promo-link:hover {
    color: var(--g497-secondary);
    text-decoration: underline;
}

.g497-promo-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--g497-gradient);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: var(--g497-radius);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--g497-shadow);
    transition: all 0.3s ease;
}

.g497-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(147, 112, 219, 0.5);
}

/* Main content padding for mobile */
.g497-main {
    padding-top: var(--g497-header-height);
    padding-bottom: calc(var(--g497-bottom-nav-height) + 20px);
}

/* Desktop - hide bottom nav */
@media (min-width: 769px) {
    .g497-bottom-nav {
        display: none;
    }

    .g497-main {
        padding-bottom: 20px;
    }

    .g497-container {
        max-width: 768px;
    }

    .g497-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g497-carousel {
        height: 300px;
    }
}

/* Mobile adjustments */
@media (max-width: 430px) {
    html {
        font-size: 58%;
    }

    .g497-header-inner {
        padding: 0 1.2rem;
    }

    .g497-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes g497-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.g497-animate-in {
    animation: g497-fadeIn 0.5s ease forwards;
}

/* RTP Stats */
.g497-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g497-rtp-item {
    background: var(--g497-bg-dark);
    padding: 1rem;
    border-radius: var(--g497-radius-sm);
    text-align: center;
}

.g497-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g497-primary);
}

.g497-rtp-label {
    font-size: 1.2rem;
    color: var(--g497-text-muted);
}

/* FAQ Accordion */
.g497-faq-item {
    background: var(--g497-bg-light);
    border-radius: var(--g497-radius-sm);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.g497-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g497-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g497-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--g497-text-muted);
    line-height: 1.6;
}
