/**
 * PH29 Gaming Platform - Theme Stylesheet
 * Website: ph29.click
 * CSS Class Prefix: v8b5-
 * Color Scheme: Deep Ocean Blue & Golden Amber
 */

/* ========================================
   CSS Variables & Root Configuration
======================================== */
:root {
    --v8b5-primary: #1a365d;
    --v8b5-primary-light: #2c5282;
    --v8b5-primary-dark: #0d1f3c;
    --v8b5-secondary: #d69e2e;
    --v8b5-secondary-light: #ecc94b;
    --v8b5-accent: #ed8936;
    --v8b5-success: #38a169;
    --v8b5-danger: #e53e3e;
    --v8b5-text-light: #f7fafc;
    --v8b5-text-dark: #1a202c;
    --v8b5-text-muted: #a0aec0;
    --v8b5-bg-dark: #0d1f3c;
    --v8b5-bg-card: #1a365d;
    --v8b5-bg-gradient: linear-gradient(135deg, #0d1f3c 0%, #1a365d 50%, #2c5282 100%);
    --v8b5-border-color: #2d3748;
    --v8b5-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --v8b5-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --v8b5-radius: 12px;
    --v8b5-radius-lg: 20px;
    --v8b5-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--v8b5-bg-gradient);
    color: var(--v8b5-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--v8b5-secondary-light);
    text-decoration: none;
    transition: var(--v8b5-transition);
}

a:hover {
    color: var(--v8b5-secondary);
}

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

/* ========================================
   Header Styles
======================================== */
.v8b5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 31, 60, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    transition: var(--v8b5-transition);
    border-bottom: 1px solid var(--v8b5-border-color);
}

.v8b5-header.v8b5-scrolled {
    background: rgba(13, 31, 60, 0.98);
    box-shadow: var(--v8b5-shadow);
}

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

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

.v8b5-logo img {
    height: 40px;
    width: auto;
}

.v8b5-logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--v8b5-secondary-light), var(--v8b5-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v8b5-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v8b5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--v8b5-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--v8b5-transition);
    border: none;
    gap: 8px;
}

.v8b5-btn-primary {
    background: linear-gradient(135deg, var(--v8b5-secondary), var(--v8b5-accent));
    color: var(--v8b5-text-dark);
}

.v8b5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.4);
}

.v8b5-btn-outline {
    background: transparent;
    border: 2px solid var(--v8b5-secondary);
    color: var(--v8b5-secondary-light);
}

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

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

/* Desktop Navigation */
.v8b5-desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.v8b5-desktop-nav a {
    color: var(--v8b5-text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.v8b5-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--v8b5-secondary);
    transition: var(--v8b5-transition);
}

.v8b5-desktop-nav a:hover::after {
    width: 100%;
}

/* ========================================
   Mobile Menu
======================================== */
#webb28-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(--v8b5-transition);
}

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

#webb28-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--v8b5-bg-dark);
    z-index: 9999;
    padding: 80px 24px 24px;
    transition: var(--v8b5-transition);
    overflow-y: auto;
}

#webb28-mobile-menu.webb28-active {
    right: 0;
}

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

.v8b5-mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--v8b5-text-light);
    font-weight: 500;
    border-radius: var(--v8b5-radius);
    transition: var(--v8b5-transition);
}

.v8b5-mobile-nav a:hover {
    background: var(--v8b5-primary-light);
    color: var(--v8b5-secondary-light);
}

.v8b5-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--v8b5-text-light);
    font-size: 28px;
    cursor: pointer;
}

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

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

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

.v8b5-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section
======================================== */
.v8b5-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.v8b5-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(214, 158, 46, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.v8b5-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.v8b5-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--v8b5-text-light), var(--v8b5-secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v8b5-hero p {
    font-size: 18px;
    color: var(--v8b5-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.v8b5-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Section Styles
======================================== */
.v8b5-section {
    padding: 60px 0;
}

.v8b5-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--v8b5-text-light);
}

.v8b5-section-title span {
    color: var(--v8b5-secondary);
}

/* ========================================
   Game Categories & Filters
======================================== */
.v8b5-filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.v8b5-filter-btn {
    padding: 10px 20px;
    background: var(--v8b5-bg-card);
    border: 1px solid var(--v8b5-border-color);
    border-radius: var(--v8b5-radius);
    color: var(--v8b5-text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--v8b5-transition);
}

.v8b5-filter-btn:hover,
.v8b5-filter-btn.v8b5-active {
    background: var(--v8b5-secondary);
    color: var(--v8b5-text-dark);
    border-color: var(--v8b5-secondary);
}

/* ========================================
   Game Cards Grid
======================================== */
.v8b5-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

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

.v8b5-game-card {
    background: var(--v8b5-bg-card);
    border-radius: var(--v8b5-radius);
    overflow: hidden;
    transition: var(--v8b5-transition);
    cursor: pointer;
    border: 1px solid var(--v8b5-border-color);
}

.v8b5-game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--v8b5-shadow-lg);
    border-color: var(--v8b5-secondary);
}

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

.v8b5-game-info {
    padding: 12px;
    text-align: center;
}

.v8b5-game-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--v8b5-text-light);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v8b5-game-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, var(--v8b5-secondary), var(--v8b5-accent));
    border: none;
    border-radius: 8px;
    color: var(--v8b5-text-dark);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--v8b5-transition);
}

.v8b5-game-btn:hover {
    opacity: 0.9;
}

/* ========================================
   Features Section
======================================== */
.v8b5-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.v8b5-feature-card {
    background: var(--v8b5-bg-card);
    padding: 32px 24px;
    border-radius: var(--v8b5-radius-lg);
    text-align: center;
    border: 1px solid var(--v8b5-border-color);
    transition: var(--v8b5-transition);
}

.v8b5-feature-card:hover {
    border-color: var(--v8b5-secondary);
    transform: translateY(-4px);
}

.v8b5-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--v8b5-secondary), var(--v8b5-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--v8b5-text-dark);
}

.v8b5-feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--v8b5-text-light);
}

.v8b5-feature-card p {
    color: var(--v8b5-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   Accordion (FAQ)
======================================== */
.v8b5-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.v8b5-accordion-item {
    background: var(--v8b5-bg-card);
    border-radius: var(--v8b5-radius);
    margin-bottom: 12px;
    border: 1px solid var(--v8b5-border-color);
    overflow: hidden;
}

.v8b5-accordion-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--v8b5-text-light);
    transition: var(--v8b5-transition);
}

.v8b5-accordion-header:hover {
    background: var(--v8b5-primary-light);
}

.v8b5-accordion-header.v8b5-active {
    color: var(--v8b5-secondary);
}

.v8b5-accordion-header i {
    transition: transform 0.3s ease;
}

.v8b5-accordion-header.v8b5-active i {
    transform: rotate(180deg);
}

.v8b5-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.v8b5-accordion-content p {
    padding: 16px 0;
    color: var(--v8b5-text-muted);
    line-height: 1.7;
}

/* ========================================
   Footer
======================================== */
.v8b5-footer {
    background: var(--v8b5-bg-dark);
    padding: 48px 0 24px;
    border-top: 1px solid var(--v8b5-border-color);
}

.v8b5-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.v8b5-footer-section h4 {
    color: var(--v8b5-secondary-light);
    font-size: 18px;
    margin-bottom: 16px;
}

.v8b5-footer-section ul {
    list-style: none;
}

.v8b5-footer-section ul li {
    margin-bottom: 10px;
}

.v8b5-footer-section ul li a {
    color: var(--v8b5-text-muted);
    font-size: 14px;
}

.v8b5-footer-section ul li a:hover {
    color: var(--v8b5-secondary-light);
}

.v8b5-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--v8b5-border-color);
}

.v8b5-footer-bottom p {
    color: var(--v8b5-text-muted);
    font-size: 14px;
}

.v8b5-partner-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.v8b5-partner-logos img {
    height: 32px;
    opacity: 0.7;
    transition: var(--v8b5-transition);
}

.v8b5-partner-logos img:hover {
    opacity: 1;
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.v8b5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.98) 0%, rgba(13, 31, 60, 0.99) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--v8b5-secondary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v8b5-bottom-nav {
        display: none;
    }
}

.v8b5-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--v8b5-text-muted);
    cursor: pointer;
    transition: var(--v8b5-transition);
    position: relative;
}

.v8b5-bottom-nav-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--v8b5-secondary);
    border-radius: 0 0 4px 4px;
    transition: var(--v8b5-transition);
}

.v8b5-bottom-nav-item:hover,
.v8b5-bottom-nav-item.v8b5-active {
    color: var(--v8b5-secondary-light);
}

.v8b5-bottom-nav-item:hover::before,
.v8b5-bottom-nav-item.v8b5-active::before {
    width: 40px;
}

.v8b5-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

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

/* ========================================
   Search Box
======================================== */
.v8b5-search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 24px;
}

.v8b5-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--v8b5-bg-card);
    border: 1px solid var(--v8b5-border-color);
    border-radius: 50px;
    color: var(--v8b5-text-light);
    font-size: 15px;
    outline: none;
    transition: var(--v8b5-transition);
}

.v8b5-search-box input:focus {
    border-color: var(--v8b5-secondary);
}

.v8b5-search-box input::placeholder {
    color: var(--v8b5-text-muted);
}

.v8b5-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v8b5-text-muted);
    font-size: 18px;
}

/* ========================================
   Toast Notifications
======================================== */
.v8b5-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--v8b5-bg-card);
    border-radius: var(--v8b5-radius);
    color: var(--v8b5-text-light);
    font-weight: 500;
    box-shadow: var(--v8b5-shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: var(--v8b5-transition);
}

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

.v8b5-toast-success {
    border-left: 4px solid var(--v8b5-success);
}

.v8b5-toast-error {
    border-left: 4px solid var(--v8b5-danger);
}

/* ========================================
   Animations
======================================== */
@keyframes webb28fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes webb28pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .v8b5-header-actions .v8b5-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .v8b5-hero h1 {
        font-size: 28px;
    }

    .v8b5-hero p {
        font-size: 15px;
    }

    .v8b5-section-title {
        font-size: 24px;
    }

    .v8b5-desktop-nav {
        display: none;
    }

    .v8b5-menu-toggle {
        display: block;
    }

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

    .v8b5-game-info {
        padding: 8px;
    }

    .v8b5-game-name {
        font-size: 11px;
    }

    .v8b5-game-btn {
        padding: 6px;
        font-size: 10px;
    }
}

@media (max-width: 430px) {
    .v8b5-hero h1 {
        font-size: 24px;
    }

    .v8b5-hero-buttons {
        flex-direction: column;
    }

    .v8b5-hero-buttons .v8b5-btn {
        width: 100%;
    }

    .v8b5-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v8b5-features {
        grid-template-columns: 1fr;
    }
}
