/**
 * perya.sbs Core Stylesheet
 * All classes use g99f- prefix for namespace isolation
 * Color Palette: #F0FDFF | #ADB5BD | #004D40 | #1A1A2E
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g99f-primary: #004D40;
    --g99f-secondary: #1A1A2E;
    --g99f-accent: #00A896;
    --g99f-light: #F0FDFF;
    --g99f-muted: #ADB5BD;
    --g99f-dark: #1A1A2E;
    --g99f-success: #2E7D32;
    --g99f-warning: #F9A825;
    --g99f-danger: #C62828;
    --g99f-bg: #1A1A2E;
    --g99f-card-bg: #262638;
    --g99f-text: #F0FDFF;
    --g99f-text-muted: #ADB5BD;
    --g99f-border: #3D3D5C;
    --g99f-gradient: linear-gradient(135deg, #004D40 0%, #1A1A2E 100%);
    --g99f-radius: 12px;
    --g99f-radius-sm: 8px;
    --g99f-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --g99f-transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--g99f-bg);
    color: var(--g99f-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--g99f-accent);
    text-decoration: none;
    transition: var(--g99f-transition);
}

a:hover {
    color: var(--g99f-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g99f-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g99f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--g99f-secondary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: var(--g99f-shadow);
    transition: var(--g99f-transition);
}

.g99f-header-scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.g99f-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g99f-logo img {
    width: 32px;
    height: 32px;
}

.g99f-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g99f-light);
    background: var(--g99f-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g99f-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g99f-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(--g99f-radius-sm);
    cursor: pointer;
    transition: var(--g99f-transition);
    min-height: 44px;
}

.g99f-btn-primary {
    background: var(--g99f-primary);
    color: var(--g99f-light);
}

.g99f-btn-primary:hover {
    background: var(--g99f-accent);
    transform: translateY(-2px);
}

.g99f-btn-secondary {
    background: transparent;
    color: var(--g99f-light);
    border: 2px solid var(--g99f-primary);
}

.g99f-btn-secondary:hover {
    background: var(--g99f-primary);
}

.g99f-menu-btn {
    background: transparent;
    border: none;
    color: var(--g99f-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g99f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g99f-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g99f-menu-active {
    right: 0;
}

.g99f-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(--g99f-transition);
}

.g99f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g99f-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--g99f-border);
}

.g99f-menu-close {
    background: transparent;
    border: none;
    color: var(--g99f-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g99f-nav-list {
    list-style: none;
}

.g99f-nav-item {
    margin-bottom: 0.5rem;
}

.g99f-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g99f-text);
    font-size: 1.5rem;
    border-radius: var(--g99f-radius-sm);
    transition: var(--g99f-transition);
}

.g99f-nav-link:hover {
    background: var(--g99f-primary);
    color: var(--g99f-light);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.g99f-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.g99f-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.g99f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g99f-slide-active {
    opacity: 1;
}

.g99f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Title */
.g99f-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g99f-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--g99f-primary);
}

/* Game Grid */
.g99f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g99f-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--g99f-transition);
}

.g99f-game-item:hover {
    transform: translateY(-4px);
}

.g99f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g99f-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--g99f-border);
    transition: var(--g99f-transition);
}

.g99f-game-item:hover .g99f-game-img {
    border-color: var(--g99f-accent);
}

.g99f-game-name {
    font-size: 1.1rem;
    color: var(--g99f-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.g99f-category-section {
    padding: 2rem 1.5rem;
    background: var(--g99f-card-bg);
    margin-bottom: 1.5rem;
}

.g99f-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--g99f-light);
    margin-bottom: 1.5rem;
}

.g99f-category-icon {
    font-size: 2.4rem;
    color: var(--g99f-accent);
}

/* Info Card */
.g99f-info-card {
    background: var(--g99f-card-bg);
    border-radius: var(--g99f-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--g99f-border);
}

.g99f-info-card h3 {
    font-size: 1.6rem;
    color: var(--g99f-accent);
    margin-bottom: 1rem;
}

.g99f-info-card p {
    font-size: 1.4rem;
    color: var(--g99f-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Promo Banner */
.g99f-promo-banner {
    background: var(--g99f-gradient);
    border-radius: var(--g99f-radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 1.5rem;
}

.g99f-promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g99f-light);
    margin-bottom: 1rem;
}

.g99f-promo-text {
    font-size: 1.4rem;
    color: var(--g99f-text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.g99f-footer {
    background: var(--g99f-secondary);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.g99f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g99f-footer-link {
    color: var(--g99f-text-muted);
    font-size: 1.3rem;
}

.g99f-footer-link:hover {
    color: var(--g99f-accent);
}

.g99f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g99f-partner-logo {
    height: 30px;
    opacity: 0.7;
    transition: var(--g99f-transition);
}

.g99f-partner-logo:hover {
    opacity: 1;
}

.g99f-copyright {
    text-align: center;
    color: var(--g99f-text-muted);
    font-size: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--g99f-border);
}

/* Bottom Navigation (Mobile) */
.g99f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--g99f-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--g99f-border);
}

@media (min-width: 769px) {
    .g99f-bottom-nav {
        display: none;
    }
}

.g99f-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g99f-text-muted);
    cursor: pointer;
    transition: var(--g99f-transition);
    border-radius: 12px;
}

.g99f-nav-btn:hover,
.g99f-nav-btn.g99f-active {
    color: var(--g99f-accent);
    background: rgba(0, 168, 150, 0.1);
}

.g99f-nav-btn i,
.g99f-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.g99f-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

/* FAQ Section */
.g99f-faq-item {
    background: var(--g99f-card-bg);
    border-radius: var(--g99f-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.g99f-faq-question {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g99f-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g99f-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.3rem;
    color: var(--g99f-text-muted);
    line-height: 1.6;
}

/* Feature List */
.g99f-feature-list {
    list-style: none;
}

.g99f-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--g99f-border);
}

.g99f-feature-icon {
    font-size: 2rem;
    color: var(--g99f-accent);
    flex-shrink: 0;
}

.g99f-feature-text {
    font-size: 1.4rem;
    color: var(--g99f-text);
    line-height: 1.5;
}

/* Utility Classes */
.g99f-text-center {
    text-align: center;
}

.g99f-mb-1 {
    margin-bottom: 1rem;
}

.g99f-mb-2 {
    margin-bottom: 2rem;
}

.g99f-mt-2 {
    margin-top: 2rem;
}

.g99f-hidden-desktop {
    display: block;
}

@media (min-width: 769px) {
    .g99f-hidden-desktop {
        display: none;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .g99f-desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .g99f-desktop-nav .g99f-nav-link {
        padding: 0.5rem 1rem;
        font-size: 1.4rem;
    }

    .g99f-menu-btn {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    .g99f-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .g99f-game-name {
        font-size: 1rem;
    }
}

/* Link styles */
.g99f-text-link {
    color: var(--g99f-accent);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.g99f-text-link:hover {
    color: var(--g99f-light);
}

/* RTP Badge */
.g99f-rtp-badge {
    display: inline-block;
    background: var(--g99f-primary);
    color: var(--g99f-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Promo link highlight */
.g99f-promo-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--g99f-accent) 0%, var(--g99f-primary) 100%);
    color: var(--g99f-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--g99f-radius-sm);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--g99f-transition);
}

.g99f-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
}
