/**
 * F777 Gaming Platform - Main Stylesheet
 * Website: f777.cfd
 * All classes use prefix: pg39-
 * Color Palette: #FFEBCD | #40E0D0 | #E8F5E8 | #2D2D2D | #DEB887
 */

/* CSS Variables */
:root {
    --pg39-primary: #40E0D0;
    --pg39-secondary: #DEB887;
    --pg39-accent: #FFEBCD;
    --pg39-bg-dark: #2D2D2D;
    --pg39-bg-light: #E8F5E8;
    --pg39-text-light: #FFEBCD;
    --pg39-text-dark: #2D2D2D;
    --pg39-gradient: linear-gradient(135deg, #40E0D0 0%, #DEB887 100%);
    --pg39-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg39-radius: 12px;
    --pg39-radius-sm: 8px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pg39-bg-dark);
    color: var(--pg39-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pg39-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pg39-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.pg39-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg39-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg39-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pg39-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pg39-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg39-header-btns {
    display: flex;
    gap: 0.8rem;
}

.pg39-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--pg39-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg39-btn-primary {
    background: var(--pg39-gradient);
    color: var(--pg39-text-dark);
}

.pg39-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

.pg39-btn-outline {
    background: transparent;
    color: var(--pg39-primary);
    border: 2px solid var(--pg39-primary);
}

.pg39-btn-outline:hover {
    background: var(--pg39-primary);
    color: var(--pg39-text-dark);
}

/* Menu Toggle */
.pg39-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.pg39-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pg39-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pg39-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg39-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid rgba(64, 224, 208, 0.2);
}

.pg39-menu-active {
    right: 0;
}

.pg39-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pg39-mobile-menu a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pg39-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--pg39-radius-sm);
    transition: all 0.3s ease;
}

.pg39-mobile-menu a:hover {
    background: rgba(64, 224, 208, 0.15);
    color: var(--pg39-primary);
}

/* Menu Overlay */
.pg39-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;
}

.pg39-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.pg39-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--pg39-radius) var(--pg39-radius);
}

.pg39-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.pg39-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.pg39-slide-active {
    opacity: 1;
    position: relative;
}

.pg39-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.pg39-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.pg39-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg39-dot-active {
    background: var(--pg39-primary);
    transform: scale(1.2);
}

/* Section Titles */
.pg39-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--pg39-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.pg39-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg39-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg39-game-item:hover {
    transform: translateY(-5px);
}

.pg39-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--pg39-radius-sm);
    border: 2px solid rgba(64, 224, 208, 0.3);
}

.pg39-game-item p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: var(--pg39-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.pg39-category-section {
    padding: 2rem 0;
}

.pg39-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pg39-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg39-category-title i {
    color: var(--pg39-primary);
}

/* Cards */
.pg39-card {
    background: linear-gradient(145deg, rgba(64, 224, 208, 0.1) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-radius: var(--pg39-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.pg39-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--pg39-primary);
}

.pg39-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--pg39-accent);
}

/* Footer */
.pg39-footer {
    background: linear-gradient(180deg, var(--pg39-bg-dark) 0%, rgba(45, 45, 45, 0.95) 100%);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.pg39-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.pg39-footer-brand p {
    font-size: 1.3rem;
    color: var(--pg39-accent);
    margin-top: 1rem;
    line-height: 1.6;
}

.pg39-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg39-footer-links a {
    color: var(--pg39-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--pg39-radius-sm);
    transition: all 0.3s ease;
}

.pg39-footer-links a:hover {
    background: rgba(64, 224, 208, 0.2);
    color: var(--pg39-primary);
}

.pg39-footer-partners {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pg39-footer-partners img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg39-footer-partners img:hover {
    opacity: 1;
}

.pg39-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 235, 205, 0.6);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(64, 224, 208, 0.1);
}

/* Bottom Navigation */
.pg39-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(35, 35, 35, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(64, 224, 208, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.pg39-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;
    border-radius: var(--pg39-radius-sm);
}

.pg39-nav-item:hover {
    background: rgba(64, 224, 208, 0.15);
}

.pg39-nav-item.active {
    background: rgba(64, 224, 208, 0.2);
}

.pg39-nav-item i,
.pg39-nav-item .material-icons {
    font-size: 24px;
    color: var(--pg39-text-light);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.pg39-nav-item:hover i,
.pg39-nav-item:hover .material-icons {
    color: var(--pg39-primary);
    transform: scale(1.1);
}

.pg39-nav-item span {
    font-size: 10px;
    color: var(--pg39-accent);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg39-bottom-nav {
        display: none;
    }

    .pg39-menu-toggle {
        display: none;
    }
}

/* Desktop Navigation */
.pg39-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .pg39-desktop-nav {
        display: flex;
        gap: 1.5rem;
    }

    .pg39-desktop-nav a {
        color: var(--pg39-text-light);
        text-decoration: none;
        font-size: 1.4rem;
        transition: color 0.3s ease;
    }

    .pg39-desktop-nav a:hover {
        color: var(--pg39-primary);
    }
}

/* Promo Link Style */
.pg39-promo-link {
    color: var(--pg39-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg39-promo-link:hover {
    color: var(--pg39-secondary);
    text-decoration: underline;
}

/* Utility Classes */
.pg39-text-center {
    text-align: center;
}

.pg39-mb-1 {
    margin-bottom: 1rem;
}

.pg39-mb-2 {
    margin-bottom: 2rem;
}

.pg39-mt-2 {
    margin-top: 2rem;
}

/* Animations */
@keyframes pg39-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pg39-pulse {
    animation: pg39-pulse 2s infinite;
}

/* Feature List */
.pg39-feature-list {
    list-style: none;
    padding: 0;
}

.pg39-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--pg39-accent);
}

.pg39-feature-list li i {
    color: var(--pg39-primary);
    margin-top: 3px;
}

/* FAQ Section */
.pg39-faq-item {
    background: rgba(64, 224, 208, 0.05);
    border-radius: var(--pg39-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pg39-primary);
}

.pg39-faq-item h4 {
    font-size: 1.4rem;
    color: var(--pg39-primary);
    margin-bottom: 0.8rem;
}

.pg39-faq-item p {
    font-size: 1.3rem;
    color: var(--pg39-accent);
    line-height: 1.6;
}

/* Testimonials */
.pg39-testimonial {
    background: linear-gradient(145deg, rgba(64, 224, 208, 0.08) 0%, rgba(222, 184, 135, 0.08) 100%);
    border-radius: var(--pg39-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.pg39-testimonial-text {
    font-size: 1.3rem;
    color: var(--pg39-accent);
    font-style: italic;
    margin-bottom: 1rem;
}

.pg39-testimonial-author {
    font-size: 1.2rem;
    color: var(--pg39-primary);
    font-weight: 600;
}

/* Stats Grid */
.pg39-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg39-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(64, 224, 208, 0.08);
    border-radius: var(--pg39-radius-sm);
}

.pg39-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg39-primary);
}

.pg39-stat-label {
    font-size: 1.1rem;
    color: var(--pg39-accent);
}
