/**
 * Scatter Link - Design Stylesheet
 * Mobile-first responsive design
 * Prefix: pgc5-
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --pgc5-primary: #ff6b35;
    --pgc5-secondary: #1a1a2e;
    --pgc5-accent: #ffd700;
    --pgc5-dark: #0f0f1a;
    --pgc5-light: #ffffff;
    --pgc5-gray: #8b8b9a;
    --pgc5-success: #00d26a;
    --pgc5-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --pgc5-gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    --pgc5-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --pgc5-radius: 12px;
    --pgc5-radius-sm: 8px;
    --pgc5-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pgc5-dark);
    color: var(--pgc5-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.pgc5-menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--pgc5-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Header
   ======================================== */
.pgc5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    transition: var(--pgc5-transition);
}

.pgc5-header.pgc5-scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: var(--pgc5-shadow);
}

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

.pgc5-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgc5-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--pgc5-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pgc5-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pgc5-light);
}

.pgc5-logo-text span {
    color: var(--pgc5-primary);
}

.pgc5-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgc5-btn {
    padding: 10px 20px;
    border-radius: var(--pgc5-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: var(--pgc5-transition);
}

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

.pgc5-btn-outline:hover {
    background: var(--pgc5-primary);
    color: var(--pgc5-light);
}

.pgc5-btn-primary {
    background: var(--pgc5-gradient);
    color: var(--pgc5-light);
}

.pgc5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.pgc5-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pgc5-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ========================================
   Mobile Menu
   ======================================== */
.pgc5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgc5-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.pgc5-mobile-menu.pgc5-active {
    right: 0;
}

.pgc5-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(--pgc5-transition);
}

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

.pgc5-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgc5-mobile-nav a {
    display: block;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pgc5-radius-sm);
    color: var(--pgc5-light);
    font-weight: 500;
}

.pgc5-mobile-nav a:hover {
    background: var(--pgc5-primary);
}

.pgc5-mobile-menu-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.pgc5-mobile-menu-btns .pgc5-btn {
    text-align: center;
}

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

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

.pgc5-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.pgc5-hero {
    background: var(--pgc5-gradient-dark);
    padding: 60px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pgc5-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/c5470b64_1.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.pgc5-hero-content {
    position: relative;
    z-index: 1;
}

.pgc5-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pgc5-hero h1 span {
    color: var(--pgc5-primary);
}

.pgc5-hero p {
    font-size: 1rem;
    color: var(--pgc5-gray);
    max-width: 600px;
    margin: 0 auto 24px;
}

.pgc5-hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pgc5-hero-btns .pgc5-btn {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ========================================
   Section Styles
   ======================================== */
.pgc5-section {
    padding: 50px 16px;
}

.pgc5-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--pgc5-light);
}

.pgc5-section-title span {
    color: var(--pgc5-primary);
}

/* ========================================
   Game Categories
   ======================================== */
.pgc5-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.pgc5-category-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--pgc5-light);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--pgc5-transition);
}

.pgc5-category-btn:hover,
.pgc5-category-btn.pgc5-active {
    background: var(--pgc5-primary);
    border-color: var(--pgc5-primary);
}

/* ========================================
   Game Grid
   ======================================== */
.pgc5-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .pgc5-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .pgc5-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .pgc5-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.pgc5-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pgc5-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pgc5-transition);
    position: relative;
}

.pgc5-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pgc5-shadow);
}

.pgc5-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgc5-game-card-info {
    padding: 12px;
}

.pgc5-game-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pgc5-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgc5-game-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pgc5-primary);
    color: var(--pgc5-light);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ========================================
   Features Section
   ======================================== */
.pgc5-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .pgc5-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .pgc5-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pgc5-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--pgc5-radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--pgc5-transition);
}

.pgc5-feature-card:hover {
    border-color: var(--pgc5-primary);
    background: rgba(255, 107, 53, 0.05);
}

.pgc5-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--pgc5-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.pgc5-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pgc5-light);
}

.pgc5-feature-card p {
    font-size: 0.875rem;
    color: var(--pgc5-gray);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.pgc5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 26, 1) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    display: none;
}

@media (max-width: 768px) {
    .pgc5-bottom-nav {
        display: block;
    }
}

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

.pgc5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--pgc5-transition);
    border-radius: var(--pgc5-radius-sm);
    background: transparent;
    border: none;
    color: var(--pgc5-gray);
}

.pgc5-nav-item:hover,
.pgc5-nav-item.pgc5-active {
    color: var(--pgc5-primary);
}

.pgc5-nav-item i,
.pgc5-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.pgc5-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.pgc5-nav-item.pgc5-highlight {
    background: var(--pgc5-gradient);
    color: var(--pgc5-light);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.pgc5-nav-item.pgc5-highlight i {
    font-size: 26px;
}

/* ========================================
   Footer
   ======================================== */
.pgc5-footer {
    background: var(--pgc5-secondary);
    padding: 40px 16px 20px;
    margin-top: 40px;
}

.pgc5-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgc5-footer-partners img {
    height: 30px;
    opacity: 0.6;
    transition: var(--pgc5-transition);
}

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

.pgc5-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pgc5-footer-links a {
    color: var(--pgc5-gray);
    font-size: 0.875rem;
}

.pgc5-footer-links a:hover {
    color: var(--pgc5-primary);
}

.pgc5-footer-copyright {
    text-align: center;
    color: var(--pgc5-gray);
    font-size: 0.75rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.pgc5-text-center { text-align: center; }
.pgc5-text-primary { color: var(--pgc5-primary); }
.pgc5-mb-20 { margin-bottom: 20px; }
.pgc5-mt-20 { margin-top: 20px; }
.pgc5-hidden { display: none; }

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

@media (min-width: 769px) {
    .pgc5-desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .pgc5-desktop-nav a {
        color: var(--pgc5-light);
        font-weight: 500;
        font-size: 0.9rem;
    }

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

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

@media (max-width: 768px) {
    .pgc5-menu-toggle {
        display: block;
    }
}

/* ========================================
   Page Content Styles
   ======================================== */
.pgc5-page-header {
    background: var(--pgc5-gradient-dark);
    padding: 40px 16px;
    text-align: center;
}

.pgc5-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pgc5-page-content {
    padding: 30px 16px;
}

.pgc5-content-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--pgc5-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.pgc5-content-block h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--pgc5-primary);
}

.pgc5-content-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 0 10px;
    color: var(--pgc5-light);
}

.pgc5-content-block p {
    color: var(--pgc5-gray);
    margin-bottom: 12px;
    line-height: 1.7;
}

.pgc5-content-block ul,
.pgc5-content-block ol {
    margin: 12px 0;
    padding-left: 20px;
}

.pgc5-content-block li {
    color: var(--pgc5-gray);
    margin-bottom: 8px;
    list-style: disc;
}

.pgc5-content-block ol li {
    list-style: decimal;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 430px) {
    .pgc5-hero h1 {
        font-size: 1.75rem;
    }

    .pgc5-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .pgc5-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
