/**
 * ph365 bond - Main Stylesheet
 * Website: ph365bond.sbs
 * Class Prefix: pg85-
 * Description: Mobile-first responsive design for gaming platform
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --pg85-primary: #34495E;
    --pg85-secondary: #2E8B57;
    --pg85-accent: #20B2AA;
    --pg85-dark: #1a252f;
    --pg85-darker: #0f1519;
    --pg85-light: #ecf0f1;
    --pg85-white: #ffffff;
    --pg85-gray: #95a5a6;
    --pg85-gray-dark: #7f8c8d;
    --pg85-success: #27ae60;
    --pg85-warning: #f39c12;
    --pg85-danger: #e74c3c;
    --pg85-gradient-primary: linear-gradient(135deg, #34495E 0%, #2E8B57 100%);
    --pg85-gradient-accent: linear-gradient(135deg, #2E8B57 0%, #20B2AA 100%);
    --pg85-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --pg85-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --pg85-shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --pg85-radius-sm: 4px;
    --pg85-radius-md: 8px;
    --pg85-radius-lg: 16px;
    --pg85-radius-xl: 24px;
    --pg85-transition: all 0.3s ease;
    --pg85-font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--pg85-font-main);
    background-color: var(--pg85-darker);
    color: var(--pg85-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--pg85-accent);
    text-decoration: none;
    transition: var(--pg85-transition);
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   Header Styles
======================================== */
.pg85-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg85-dark);
    padding: 12px 16px;
    transition: var(--pg85-transition);
}

.pg85-header-scrolled {
    background: rgba(26, 37, 47, 0.98);
    box-shadow: var(--pg85-shadow-md);
}

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

.pg85-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg85-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg85-white);
    background: var(--pg85-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pg85-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--pg85-radius-md);
    transition: var(--pg85-transition);
}

.pg85-btn-primary {
    background: var(--pg85-gradient-accent);
    color: var(--pg85-white);
}

.pg85-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg85-shadow-md);
    color: var(--pg85-white);
}

.pg85-btn-secondary {
    background: transparent;
    color: var(--pg85-white);
    border: 2px solid var(--pg85-accent);
}

.pg85-btn-secondary:hover {
    background: var(--pg85-accent);
    color: var(--pg85-white);
}

.pg85-menu-toggle {
    display: none;
    padding: 8px;
    color: var(--pg85-white);
    font-size: 24px;
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.pg85-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--pg85-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    display: none;
}

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

.pg85-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    min-width: 60px;
    min-height: 56px;
    color: var(--pg85-gray);
    transition: var(--pg85-transition);
    border-radius: var(--pg85-radius-md);
}

.pg85-nav-item:hover,
.pg85-nav-item-active {
    color: var(--pg85-accent);
    background: rgba(32, 178, 170, 0.1);
}

.pg85-nav-item i,
.pg85-nav-item .material-icons {
    font-size: 24px;
}

.pg85-nav-item ion-icon {
    font-size: 24px;
}

.pg85-nav-text {
    font-size: 11px;
    font-weight: 500;
}

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

/* ========================================
   Banner Slider
======================================== */
.pg85-banner-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.pg85-banner-slider {
    position: relative;
    height: 220px;
}

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

.pg85-banner-slide.pg85-slide-active {
    opacity: 1;
}

.pg85-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg85-banner-content {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    color: var(--pg85-white);
}

.pg85-banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pg85-banner-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.pg85-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg85-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: var(--pg85-transition);
}

.pg85-dot-active {
    background: var(--pg85-accent);
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   Category Section
======================================== */
.pg85-category-section {
    padding: 0 16px 24px;
}

.pg85-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg85-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg85-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pg85-gradient-accent);
    border-radius: 2px;
}

.pg85-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.pg85-category-tabs::-webkit-scrollbar {
    display: none;
}

.pg85-category-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--pg85-dark);
    color: var(--pg85-gray);
    border-radius: var(--pg85-radius-xl);
    font-size: 14px;
    font-weight: 500;
    transition: var(--pg85-transition);
    white-space: nowrap;
}

.pg85-category-btn:hover,
.pg85-category-btn.pg85-category-active {
    background: var(--pg85-gradient-accent);
    color: var(--pg85-white);
}

/* ========================================
   Games Grid
======================================== */
.pg85-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.pg85-game-card {
    position: relative;
    border-radius: var(--pg85-radius-md);
    overflow: hidden;
    background: var(--pg85-dark);
    cursor: pointer;
    transition: var(--pg85-transition);
}

.pg85-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg85-shadow-lg);
}

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

.pg85-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--pg85-white);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg85-game-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: var(--pg85-danger);
    color: var(--pg85-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--pg85-radius-sm);
}

/* ========================================
   Features Section
======================================== */
.pg85-features-section {
    padding: 32px 16px;
    background: var(--pg85-dark);
    margin: 24px 0;
}

.pg85-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pg85-feature-card {
    background: var(--pg85-darker);
    padding: 20px;
    border-radius: var(--pg85-radius-lg);
    text-align: center;
    transition: var(--pg85-transition);
}

.pg85-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg85-shadow-md);
}

.pg85-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: var(--pg85-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--pg85-white);
}

.pg85-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pg85-white);
    margin-bottom: 8px;
}

.pg85-feature-desc {
    font-size: 13px;
    color: var(--pg85-gray);
    line-height: 1.5;
}

/* ========================================
   Stats Section
======================================== */
.pg85-stats-section {
    padding: 32px 16px;
    background: var(--pg85-gradient-primary);
}

.pg85-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}

.pg85-stat-item {
    color: var(--pg85-white);
}

.pg85-stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pg85-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   Promotional CTA Section
======================================== */
.pg85-cta-section {
    padding: 40px 16px;
    text-align: center;
    background: var(--pg85-darker);
}

.pg85-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg85-white);
    margin-bottom: 12px;
}

.pg85-cta-desc {
    font-size: 15px;
    color: var(--pg85-gray);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pg85-cta-btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
}

/* ========================================
   Footer Styles
======================================== */
.pg85-footer {
    background: var(--pg85-dark);
    padding: 40px 16px 24px;
    margin-top: 32px;
}

.pg85-footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--pg85-white);
    margin-bottom: 16px;
}

.pg85-footer-desc {
    font-size: 14px;
    color: var(--pg85-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pg85-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pg85-footer-link {
    color: var(--pg85-gray);
    font-size: 14px;
    transition: var(--pg85-transition);
}

.pg85-footer-link:hover {
    color: var(--pg85-accent);
}

.pg85-partners-section {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.pg85-partners-title {
    font-size: 14px;
    color: var(--pg85-gray);
    margin-bottom: 16px;
    text-align: center;
}

.pg85-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.pg85-partner-logo {
    height: 32px;
    opacity: 0.7;
    transition: var(--pg85-transition);
    filter: grayscale(100%);
}

.pg85-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.pg85-copyright {
    text-align: center;
    font-size: 13px;
    color: var(--pg85-gray);
}

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

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

.pg85-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pg85-menu-close {
    font-size: 24px;
    color: var(--pg85-white);
}

.pg85-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg85-menu-link {
    padding: 12px 16px;
    color: var(--pg85-light);
    font-size: 15px;
    border-radius: var(--pg85-radius-md);
    transition: var(--pg85-transition);
}

.pg85-menu-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--pg85-accent);
}

.pg85-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pg85-transition);
}

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

.pg85-no-scroll {
    overflow: hidden;
}

/* ========================================
   Toast Notifications
======================================== */
.pg85-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--pg85-dark);
    color: var(--pg85-white);
    border-radius: var(--pg85-radius-md);
    font-size: 14px;
    opacity: 0;
    transition: var(--pg85-transition);
    z-index: 10000;
}

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

.pg85-toast-success {
    background: var(--pg85-success);
}

.pg85-toast-error {
    background: var(--pg85-danger);
}

/* ========================================
   FAQ Section
======================================== */
.pg85-faq-section {
    padding: 0 16px 32px;
}

.pg85-faq-item {
    background: var(--pg85-dark);
    border-radius: var(--pg85-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.pg85-faq-question {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--pg85-white);
    font-weight: 500;
}

.pg85-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
    color: var(--pg85-gray);
    font-size: 14px;
    line-height: 1.6;
}

.pg85-faq-icon {
    transition: var(--pg85-transition);
}

.pg85-icon-rotated {
    transform: rotate(180deg);
}

/* ========================================
   Utility Classes
======================================== */
.pg85-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.pg85-text-center {
    text-align: center;
}

.pg85-mb-16 {
    margin-bottom: 16px;
}

.pg85-mb-24 {
    margin-bottom: 24px;
}

.pg85-hidden {
    display: none !important;
}

.pg85-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Desktop Styles
======================================== */
@media (min-width: 769px) {
    .pg85-bottom-nav {
        display: none !important;
    }

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

    .pg85-header-actions {
        display: flex;
    }

    main {
        padding-bottom: 40px;
    }

    .pg85-banner-slider {
        height: 400px;
    }

    .pg85-banner-title {
        font-size: 36px;
    }

    .pg85-games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

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

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

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

/* ========================================
   Mobile Specific Styles
======================================== */
@media (max-width: 768px) {
    .pg85-bottom-nav {
        display: block;
    }

    .pg85-header-actions .pg85-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    main {
        padding-bottom: 80px;
    }

    .pg85-banner-slider {
        height: 200px;
    }

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

    .pg85-game-name {
        font-size: 11px;
        padding: 6px;
    }
}

/* ========================================
   Max-width 430px Optimization
======================================== */
@media (max-width: 430px) {
    .pg85-header {
        padding: 10px 12px;
    }

    .pg85-logo-text {
        font-size: 20px;
    }

    .pg85-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pg85-banner-slider {
        height: 180px;
    }

    .pg85-banner-title {
        font-size: 18px;
    }

    .pg85-banner-desc {
        font-size: 12px;
    }

    .pg85-section-title {
        font-size: 18px;
    }

    .pg85-category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pg85-games-grid {
        gap: 8px;
        padding: 0 10px;
    }

    .pg85-feature-card {
        padding: 16px;
    }

    .pg85-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .pg85-feature-title {
        font-size: 14px;
    }

    .pg85-stat-number {
        font-size: 26px;
    }

    .pg85-cta-title {
        font-size: 20px;
    }
}
