/**
 * Bouncy Ball - Main Stylesheet
 * Gaming platform for Philippine market
 * Prefix: pg5e-
 * Version: 1.0.0
 */

/* ========================
   CSS Variables & Reset
======================== */
:root {
    --pg5e-primary: #0000FF;
    --pg5e-primary-light: #AFEEEE;
    --pg5e-gray: #DEE2E6;
    --pg5e-dark: #34495E;
    --pg5e-black: #1A1A1A;
    --pg5e-white: #ECF0F1;
    --pg5e-gradient: linear-gradient(135deg, #0000FF 0%, #34495E 100%);
    --pg5e-shadow: 0 4px 15px rgba(0, 0, 255, 0.2);
    --pg5e-radius: 8px;
    --pg5e-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg5e-black);
    color: var(--pg5e-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--pg5e-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================
   Header Styles
======================== */
.pg5e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--pg5e-black) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    transition: var(--pg5e-transition);
}

.pg5e-header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 255, 0.3);
}

.pg5e-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg5e-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.pg5e-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pg5e-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg5e-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg5e-btn {
    padding: 8px 20px;
    border-radius: var(--pg5e-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: var(--pg5e-transition);
    text-align: center;
}

.pg5e-btn-login {
    background: transparent;
    border: 2px solid var(--pg5e-primary);
    color: var(--pg5e-primary);
}

.pg5e-btn-login:hover {
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
}

.pg5e-btn-register {
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
    box-shadow: var(--pg5e-shadow);
}

.pg5e-btn-register:hover {
    background: var(--pg5e-dark);
    transform: translateY(-2px);
}

.pg5e-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pg5e-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ========================
   Navigation Styles
======================== */
.pg5e-desktop-nav {
    display: none;
}

.pg5e-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg5e-black);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.pg5e-menu-active {
    left: 0;
}

.pg5e-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(--pg5e-transition);
}

.pg5e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg5e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pg5e-gray);
}

.pg5e-menu-close {
    background: transparent;
    border: none;
    color: var(--pg5e-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.pg5e-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pg5e-menu-link {
    display: block;
    padding: 12px 15px;
    color: var(--pg5e-white);
    border-radius: var(--pg5e-radius);
    transition: var(--pg5e-transition);
}

.pg5e-menu-link:hover {
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
}

/* ========================
   Main Content Styles
======================== */
.pg5e-main {
    padding-top: 60px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .pg5e-main {
        padding-bottom: 80px;
    }
}

.pg5e-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================
   Banner Slider Styles
======================== */
.pg5e-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.pg5e-banner-slides {
    position: relative;
    height: 300px;
}

@media (min-width: 769px) {
    .pg5e-banner-slides {
        height: 500px;
    }
}

.pg5e-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg5e-slide-active {
    opacity: 1;
}

.pg5e-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg5e-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.95));
}

.pg5e-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pg5e-white);
}

@media (min-width: 769px) {
    .pg5e-banner-title {
        font-size: 2.5rem;
    }
}

.pg5e-banner-text {
    font-size: 0.9rem;
    color: var(--pg5e-gray);
    margin-bottom: 15px;
}

.pg5e-banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg5e-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pg5e-gray);
    cursor: pointer;
    transition: var(--pg5e-transition);
}

.pg5e-dot-active {
    background: var(--pg5e-primary);
    transform: scale(1.2);
}

/* ========================
   Section Styles
======================== */
.pg5e-section {
    padding: 40px 0;
}

.pg5e-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--pg5e-white);
    position: relative;
}

.pg5e-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pg5e-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ========================
   Game Category Tabs
======================== */
.pg5e-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.pg5e-cat-tab {
    padding: 10px 20px;
    background: var(--pg5e-dark);
    color: var(--pg5e-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--pg5e-transition);
}

.pg5e-cat-tab:hover,
.pg5e-tab-active {
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
}

/* ========================
   Games Grid Styles
======================== */
.pg5e-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 576px) {
    .pg5e-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .pg5e-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .pg5e-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.pg5e-game-card {
    background: linear-gradient(145deg, var(--pg5e-dark), var(--pg5e-black));
    border-radius: var(--pg5e-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pg5e-transition);
    border: 1px solid rgba(0, 0, 255, 0.2);
}

.pg5e-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pg5e-shadow);
    border-color: var(--pg5e-primary);
}

.pg5e-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pg5e-game-name {
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pg5e-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================
   Features Section
======================== */
.pg5e-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 769px) {
    .pg5e-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.pg5e-feature-card {
    background: var(--pg5e-dark);
    padding: 25px 15px;
    border-radius: var(--pg5e-radius);
    text-align: center;
    transition: var(--pg5e-transition);
    border: 1px solid transparent;
}

.pg5e-feature-card:hover {
    border-color: var(--pg5e-primary);
    transform: translateY(-3px);
}

.pg5e-feature-icon {
    font-size: 2.5rem;
    color: var(--pg5e-primary);
    margin-bottom: 15px;
}

.pg5e-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pg5e-white);
}

.pg5e-feature-text {
    font-size: 0.8rem;
    color: var(--pg5e-gray);
}

/* ========================
   Mobile Bottom Navigation
======================== */
.pg5e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--pg5e-dark) 0%, var(--pg5e-black) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 255, 0.3);
    padding: 5px 0;
}

@media (min-width: 769px) {
    .pg5e-bottom-nav {
        display: none;
    }
}

.pg5e-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(--pg5e-gray);
    cursor: pointer;
    transition: var(--pg5e-transition);
    padding: 5px;
}

.pg5e-nav-btn:hover,
.pg5e-nav-btn-active {
    color: var(--pg5e-primary);
}

.pg5e-nav-btn-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.pg5e-nav-btn-text {
    font-size: 10px;
    font-weight: 500;
}

/* ========================
   Footer Styles
======================== */
.pg5e-footer {
    background: var(--pg5e-black);
    padding: 40px 15px 20px;
    border-top: 1px solid var(--pg5e-dark);
}

.pg5e-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.pg5e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 25px;
}

.pg5e-footer-link {
    color: var(--pg5e-gray);
    font-size: 0.85rem;
    transition: var(--pg5e-transition);
}

.pg5e-footer-link:hover {
    color: var(--pg5e-primary);
}

.pg5e-partners {
    margin-bottom: 25px;
}

.pg5e-partners-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--pg5e-gray);
    margin-bottom: 15px;
}

.pg5e-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.pg5e-partner-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--pg5e-transition);
}

.pg5e-partner-img:hover {
    opacity: 1;
}

.pg5e-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--pg5e-gray);
    padding-top: 20px;
    border-top: 1px solid var(--pg5e-dark);
}

/* ========================
   Back to Top Button
======================== */
.pg5e-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--pg5e-transition);
    z-index: 999;
    box-shadow: var(--pg5e-shadow);
}

@media (min-width: 769px) {
    .pg5e-back-to-top {
        bottom: 30px;
    }
}

.pg5e-back-to-top-visible {
    opacity: 1;
    visibility: visible;
}

.pg5e-back-to-top:hover {
    background: var(--pg5e-dark);
    transform: translateY(-3px);
}

/* ========================
   Accordion Styles (FAQ)
======================== */
.pg5e-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg5e-accordion-item {
    background: var(--pg5e-dark);
    border-radius: var(--pg5e-radius);
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--pg5e-transition);
}

.pg5e-accordion-item:hover {
    border-color: var(--pg5e-primary);
}

.pg5e-accordion-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--pg5e-white);
}

.pg5e-accordion-icon {
    font-size: 1rem;
    color: var(--pg5e-primary);
    transition: var(--pg5e-transition);
}

.pg5e-accordion-active .pg5e-accordion-icon {
    transform: rotate(180deg);
}

.pg5e-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pg5e-accordion-body {
    padding: 0 20px 15px;
    color: var(--pg5e-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================
   Help Page Styles
======================== */
.pg5e-help-section {
    margin-bottom: 30px;
}

.pg5e-help-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pg5e-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg5e-help-list {
    padding-left: 20px;
}

.pg5e-help-list li {
    margin-bottom: 10px;
    color: var(--pg5e-gray);
    position: relative;
    padding-left: 20px;
}

.pg5e-help-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--pg5e-primary);
    border-radius: 50%;
}

.pg5e-steps {
    counter-reset: step;
}

.pg5e-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.pg5e-step-num {
    width: 35px;
    height: 35px;
    background: var(--pg5e-primary);
    color: var(--pg5e-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.pg5e-step-content {
    flex: 1;
}

.pg5e-step-title {
    font-weight: 600;
    color: var(--pg5e-white);
    margin-bottom: 5px;
}

.pg5e-step-text {
    color: var(--pg5e-gray);
    font-size: 0.9rem;
}

/* ========================
   CTA Section
======================== */
.pg5e-cta {
    background: var(--pg5e-gradient);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--pg5e-radius);
    margin: 30px 0;
}

.pg5e-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pg5e-cta-text {
    color: var(--pg5e-primary-light);
    margin-bottom: 20px;
}

.pg5e-cta-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--pg5e-white);
    color: var(--pg5e-primary);
    font-weight: 700;
    border-radius: 25px;
    transition: var(--pg5e-transition);
}

.pg5e-cta-btn:hover {
    background: var(--pg5e-black);
    color: var(--pg5e-white);
    transform: scale(1.05);
}

/* ========================
   Page Header
======================== */
.pg5e-page-header {
    background: var(--pg5e-gradient);
    padding: 80px 15px 40px;
    text-align: center;
}

.pg5e-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pg5e-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--pg5e-primary-light);
}

.pg5e-breadcrumb a {
    color: var(--pg5e-white);
}

.pg5e-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================
   Desktop Navigation
======================== */
@media (min-width: 769px) {
    .pg5e-menu-toggle {
        display: none;
    }

    .pg5e-desktop-nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .pg5e-nav-link {
        color: var(--pg5e-gray);
        font-weight: 500;
        font-size: 0.9rem;
        transition: var(--pg5e-transition);
    }

    .pg5e-nav-link:hover {
        color: var(--pg5e-primary);
    }

    .pg5e-header {
        padding: 0 30px;
    }

    .pg5e-logo-text {
        font-size: 1.4rem;
    }
}
