/**
 * 57v Main Stylesheet
 * Mobile-first responsive design for 57v gaming website
 * All classes use prefix: pg14-
 */

/* CSS Variables - Color Palette */
:root {
    --pg14-primary: #F4A460;
    --pg14-secondary: #CD853F;
    --pg14-accent: #F5DEB3;
    --pg14-dark: #2E4057;
    --pg14-teal: #5F9EA0;
    --pg14-bg: #1a1a2e;
    --pg14-bg-light: #16213e;
    --pg14-bg-card: #1f2937;
    --pg14-text: #F5DEB3;
    --pg14-text-light: #ffffff;
    --pg14-text-muted: #9ca3af;
    --pg14-border: rgba(244, 164, 96, 0.2);
    --pg14-shadow: rgba(0, 0, 0, 0.3);
    --pg14-gold: #ffd700;
}

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

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--pg14-text);
    background-color: var(--pg14-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container and Layout */
.pg14-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg14-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pg14-main-content {
    flex: 1;
    padding-bottom: 80px;
    padding-top: 70px;
}

.pg14-section {
    padding: 3rem 0;
}

.pg14-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pg14-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--pg14-text-light);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--pg14-text);
}

a {
    color: var(--pg14-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pg14-gold);
}

/* Header Styles */
.pg14-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--pg14-dark) 0%, var(--pg14-bg-light) 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px var(--pg14-shadow);
    border-bottom: 1px solid var(--pg14-border);
}

.pg14-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pg14-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg14-logo-icon {
    width: 32px;
    height: 32px;
}

.pg14-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg14-primary);
    letter-spacing: 1px;
}

.pg14-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.pg14-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pg14-btn-primary {
    background: linear-gradient(135deg, var(--pg14-primary) 0%, var(--pg14-secondary) 100%);
    color: var(--pg14-dark);
}

.pg14-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 164, 96, 0.4);
}

.pg14-btn-secondary {
    background: transparent;
    color: var(--pg14-primary);
    border: 1px solid var(--pg14-primary);
}

.pg14-btn-secondary:hover {
    background: var(--pg14-primary);
    color: var(--pg14-dark);
}

.pg14-btn-gold {
    background: linear-gradient(135deg, var(--pg14-gold) 0%, #ffaa00 100%);
    color: var(--pg14-dark);
}

/* Mobile Menu */
.pg14-mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.pg14-mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--pg14-primary);
    transition: all 0.3s ease;
}

.pg14-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--pg14-dark);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.pg14-menu-active {
    transform: translateX(0) !important;
}

.pg14-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.pg14-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pg14-border);
}

.pg14-menu-close {
    background: none;
    border: none;
    color: var(--pg14-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg14-menu-links {
    list-style: none;
}

.pg14-menu-links li {
    margin-bottom: 0.5rem;
}

.pg14-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--pg14-text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg14-menu-links a:hover {
    background: var(--pg14-bg-light);
    color: var(--pg14-primary);
}

/* Hero/Banner Section */
.pg14-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.pg14-hero-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.pg14-hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.pg14-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg14-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pg14-hero-title {
    font-size: 2rem;
    color: var(--pg14-text-light);
    margin-bottom: 0.5rem;
}

.pg14-hero-subtitle {
    font-size: 1.2rem;
    color: var(--pg14-primary);
}

/* Game Cards and Grid */
.pg14-card {
    background: var(--pg14-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--pg14-border);
}

.pg14-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--pg14-primary);
}

.pg14-game-card {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.pg14-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg14-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-size: 1.1rem;
    color: var(--pg14-text-light);
    text-align: center;
    font-weight: 500;
}

/* Category Tabs */
.pg14-category-tabs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.pg14-category-tab {
    flex-shrink: 0;
    padding: 0.8rem 1.6rem;
    background: var(--pg14-bg-card);
    border: 1px solid var(--pg14-border);
    border-radius: 20px;
    color: var(--pg14-text);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pg14-category-tab:hover,
.pg14-category-tab.pg14-active {
    background: var(--pg14-primary);
    color: var(--pg14-dark);
    border-color: var(--pg14-primary);
}

/* Feature Boxes */
.pg14-feature-box {
    background: var(--pg14-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--pg14-border);
    text-align: center;
    transition: all 0.3s ease;
}

.pg14-feature-box:hover {
    border-color: var(--pg14-primary);
    transform: translateY(-2px);
}

.pg14-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pg14-primary) 0%, var(--pg14-secondary) 100%);
    border-radius: 50%;
    color: var(--pg14-dark);
    font-size: 2rem;
}

.pg14-feature-title {
    font-size: 1.4rem;
    color: var(--pg14-text-light);
    margin-bottom: 0.5rem;
}

.pg14-feature-desc {
    font-size: 1.2rem;
    color: var(--pg14-text-muted);
}

/* Bottom Navigation */
.pg14-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pg14-dark) 0%, #151b2d 100%);
    padding: 0.8rem 1rem;
    box-shadow: 0 -2px 10px var(--pg14-shadow);
    border-top: 1px solid var(--pg14-border);
}

.pg14-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pg14-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pg14-text-muted);
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 60px;
}

.pg14-nav-btn:hover,
.pg14-nav-btn.pg14-active {
    color: var(--pg14-primary);
}

.pg14-nav-btn i {
    font-size: 2.2rem;
}

.pg14-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.pg14-nav-btn:hover i {
    transform: scale(1.1);
}

/* Footer */
.pg14-footer {
    background: var(--pg14-dark);
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--pg14-border);
}

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

.pg14-footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.pg14-footer-desc {
    font-size: 1.2rem;
    color: var(--pg14-text-muted);
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

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

.pg14-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--pg14-bg-card);
    border: 1px solid var(--pg14-border);
    border-radius: 8px;
    color: var(--pg14-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pg14-footer-link:hover {
    background: var(--pg14-primary);
    color: var(--pg14-dark);
    border-color: var(--pg14-primary);
}

.pg14-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pg14-border);
}

.pg14-footer-copyright {
    font-size: 1.1rem;
    color: var(--pg14-text-muted);
}

/* Section Headers */
.pg14-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pg14-section-title {
    font-size: 1.8rem;
    color: var(--pg14-text-light);
}

.pg14-section-link {
    font-size: 1.2rem;
    color: var(--pg14-primary);
    font-weight: 500;
}

/* CTA Section */
.pg14-cta {
    background: linear-gradient(135deg, var(--pg14-primary) 0%, var(--pg14-secondary) 100%);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.pg14-cta-title {
    font-size: 2rem;
    color: var(--pg14-dark);
    margin-bottom: 1rem;
}

.pg14-cta-desc {
    font-size: 1.3rem;
    color: var(--pg14-dark);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.pg14-stats {
    display: flex;
    justify-content: space-around;
    background: var(--pg14-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.pg14-stat-item {
    text-align: center;
}

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

.pg14-stat-label {
    font-size: 1.1rem;
    color: var(--pg14-text-muted);
}

/* FAQ Accordion */
.pg14-faq-item {
    margin-bottom: 1rem;
    background: var(--pg14-bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--pg14-border);
}

.pg14-faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--pg14-text-light);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg14-faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--pg14-primary);
}

.pg14-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg14-faq-answer.pg14-open {
    padding: 1.5rem;
    max-height: 500px;
}

/* Toast Notification */
.pg14-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--pg14-dark);
    color: var(--pg14-text-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.pg14-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes pg14fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pg14-animate-in {
    animation: pg14fadeIn 0.5s ease forwards;
}

/* Hide Bottom Nav on Desktop */
@media (min-width: 769px) {
    .pg14-bottom-nav {
        display: none !important;
    }

    .pg14-main-content {
        padding-bottom: 2rem;
    }
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .pg14-container {
        max-width: 1200px;
    }

    .pg14-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }

    .pg14-header {
        padding: 1.2rem 2rem;
    }

    .pg14-mobile-menu-btn {
        display: none;
    }
}

/* Text Utilities */
.pg14-text-center { text-align: center; }
.pg14-text-gold { color: var(--pg14-gold); }
.pg14-text-muted { color: var(--pg14-text-muted); }

/* Background Utilities */
.pg14-bg-gradient {
    background: linear-gradient(135deg, var(--pg14-dark) 0%, var(--pg14-bg-light) 100%);
}

/* Partner Logos */
.pg14-partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pg14-partner-logo {
    width: 60px;
    height: 60px;
    background: var(--pg14-bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pg14-border);
}

/* Loading Spinner */
.pg14-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pg14-border);
    border-top-color: var(--pg14-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}