/**
 * Winph - Premium Online Gaming Platform
 * CSS Design System v1.0
 * All classes use pga3- prefix for namespace isolation
 */

/* ==================== CSS Variables ==================== */
:root {
    --pga3-primary: #FFC0CB;
    --pga3-bg: #1C2833;
    --pga3-accent: #880E4F;
    --pga3-secondary: #FF6347;
    --pga3-tertiary: #F08080;
    --pga3-text: #FFFFFF;
    --pga3-text-muted: #B0B0B0;
    --pga3-text-dark: #1C2833;
    --pga3-border: rgba(255, 192, 203, 0.3);
    --pga3-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --pga3-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.2);
    --pga3-gradient: linear-gradient(135deg, #880E4F 0%, #FF6347 100%);
    --pga3-gradient-light: linear-gradient(135deg, #FFC0CB 0%, #F08080 100%);
    --pga3-radius: 12px;
    --pga3-radius-sm: 8px;
    --pga3-radius-lg: 20px;
    --pga3-transition: all 0.3s ease;
    --pga3-header-height: 60px;
    --pga3-bottom-nav-height: 64px;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--pga3-bg);
    color: var(--pga3-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.pro6bb-no-scroll {
    overflow: hidden;
}

a {
    color: var(--pga3-primary);
    text-decoration: none;
    transition: var(--pga3-transition);
}

a:hover {
    color: var(--pga3-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==================== Typography ==================== */
.pga3-h1, .pga3-h2, .pga3-h3, .pga3-h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--pga3-text);
}

.pga3-h1 { font-size: 2rem; }
.pga3-h2 { font-size: 1.75rem; }
.pga3-h3 { font-size: 1.5rem; }
.pga3-h4 { font-size: 1.25rem; }

.pga3-text-muted {
    color: var(--pga3-text-muted);
}

.pga3-text-gradient {
    background: var(--pga3-gradient-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Layout ==================== */
.pga3-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.pga3-main {
    padding-top: var(--pga3-header-height);
    padding-bottom: calc(var(--pga3-bottom-nav-height) + 20px);
}

.pga3-section {
    padding: 24px 0;
}

/* ==================== Header ==================== */
.pga3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pga3-header-height);
    background: linear-gradient(180deg, var(--pga3-bg) 0%, rgba(28, 40, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--pga3-border);
    transition: var(--pga3-transition);
}

.pga3-header-scrolled {
    box-shadow: var(--pga3-shadow);
}

.pga3-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pga3-logo img {
    height: 36px;
    width: auto;
}

.pga3-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--pga3-gradient-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pga3-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pga3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--pga3-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--pga3-transition);
    min-height: 44px;
    min-width: 44px;
}

.pga3-btn-primary {
    background: var(--pga3-gradient);
    color: var(--pga3-text);
}

.pga3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.4);
}

.pga3-btn-outline {
    background: transparent;
    border: 2px solid var(--pga3-primary);
    color: var(--pga3-primary);
}

.pga3-btn-outline:hover {
    background: var(--pga3-primary);
    color: var(--pga3-text-dark);
}

.pga3-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--pga3-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

/* ==================== Navigation ==================== */
.pga3-nav-desktop {
    display: none;
}

.pga3-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pga3-nav-link {
    color: var(--pga3-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.pga3-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pga3-primary);
    transition: var(--pga3-transition);
}

.pga3-nav-link:hover::after,
.pga3-nav-link.active::after {
    width: 100%;
}

/* ==================== Mobile Menu ==================== */
#pro6bb-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--pga3-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
    border-left: 1px solid var(--pga3-border);
}

#pro6bb-mobile-menu.pro6bb-menu-active {
    right: 0;
}

#pro6bb-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pga3-transition);
}

#pro6bb-menu-overlay.pro6bb-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pga3-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--pga3-text);
    border-radius: var(--pga3-radius-sm);
    margin-bottom: 8px;
    transition: var(--pga3-transition);
}

.pga3-mobile-nav-link:hover {
    background: rgba(255, 192, 203, 0.1);
    color: var(--pga3-primary);
}

.pga3-mobile-nav-link i {
    width: 24px;
    text-align: center;
}

/* ==================== Carousel/Slider ==================== */
.pga3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--pga3-radius);
    margin-bottom: 24px;
}

.pga3-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.pga3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pga3-slide.pro6bb-active {
    opacity: 1;
}

.pga3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--pga3-radius);
}

.pga3-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pga3-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--pga3-transition);
}

.pga3-dot.pro6bb-active {
    background: var(--pga3-primary);
    transform: scale(1.2);
}

/* ==================== Game Categories ==================== */
.pga3-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.pga3-category-btn {
    padding: 10px 18px;
    background: rgba(255, 192, 203, 0.1);
    border: 1px solid var(--pga3-border);
    border-radius: 20px;
    color: var(--pga3-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pga3-transition);
}

.pga3-category-btn:hover,
.pga3-category-btn.pro6bb-active {
    background: var(--pga3-gradient);
    border-color: transparent;
}

/* ==================== Game Grid ==================== */
.pga3-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pga3-game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pga3-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--pga3-transition);
    border: 1px solid var(--pga3-border);
}

.pga3-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pga3-shadow);
    border-color: var(--pga3-primary);
}

.pga3-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pga3-game-name {
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    background: rgba(28, 40, 51, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pga3-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 36px);
    background: rgba(136, 14, 79, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--pga3-transition);
}

.pga3-game-card:hover .pga3-game-overlay {
    opacity: 1;
}

.pga3-play-btn {
    padding: 10px 20px;
    background: var(--pga3-text);
    color: var(--pga3-accent);
    border-radius: var(--pga3-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==================== Sections ==================== */
.pga3-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pga3-section-title h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pga3-section-title h2 i {
    color: var(--pga3-primary);
}

.pga3-view-all {
    font-size: 0.85rem;
    color: var(--pga3-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== Info Cards ==================== */
.pga3-info-card {
    background: linear-gradient(135deg, rgba(136, 14, 79, 0.2) 0%, rgba(255, 99, 71, 0.1) 100%);
    border: 1px solid var(--pga3-border);
    border-radius: var(--pga3-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.pga3-info-card h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pga3-info-card h3 i {
    color: var(--pga3-primary);
}

.pga3-info-card p {
    color: var(--pga3-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.pga3-info-card ul {
    margin-top: 12px;
}

.pga3-info-card li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--pga3-text-muted);
    font-size: 0.9rem;
}

.pga3-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--pga3-primary);
    border-radius: 50%;
}

/* ==================== Features Grid ==================== */
.pga3-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pga3-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--pga3-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--pga3-border);
    transition: var(--pga3-transition);
}

.pga3-feature-item:hover {
    background: rgba(255, 192, 203, 0.1);
    border-color: var(--pga3-primary);
}

.pga3-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--pga3-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--pga3-text);
}

.pga3-feature-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.pga3-feature-item p {
    font-size: 0.8rem;
    color: var(--pga3-text-muted);
}

/* ==================== FAQ Section ==================== */
.pga3-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pga3-border);
    border-radius: var(--pga3-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.pga3-faq-question {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    transition: var(--pga3-transition);
}

.pga3-faq-question:hover {
    background: rgba(255, 192, 203, 0.1);
}

.pga3-faq-answer {
    padding: 0 20px 16px;
    color: var(--pga3-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==================== Footer ==================== */
.pga3-footer {
    background: linear-gradient(180deg, var(--pga3-bg) 0%, rgba(28, 40, 51, 0.8) 100%);
    padding: 40px 16px 100px;
    border-top: 1px solid var(--pga3-border);
}

.pga3-footer-section {
    margin-bottom: 24px;
}

.pga3-footer-section h4 {
    color: var(--pga3-primary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.pga3-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pga3-footer-links a {
    color: var(--pga3-text-muted);
    font-size: 0.9rem;
    transition: var(--pga3-transition);
}

.pga3-footer-links a:hover {
    color: var(--pga3-primary);
}

.pga3-partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pga3-partner-logos img {
    height: 30px;
    opacity: 0.7;
    transition: var(--pga3-transition);
}

.pga3-partner-logos img:hover {
    opacity: 1;
}

.pga3-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--pga3-border);
    color: var(--pga3-text-muted);
    font-size: 0.8rem;
}

/* ==================== Bottom Navigation ==================== */
.pga3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pga3-bottom-nav-height);
    background: linear-gradient(180deg, rgba(28, 40, 51, 0.98) 0%, var(--pga3-bg) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--pga3-border);
    padding: 4px 8px;
}

.pga3-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--pga3-text-muted);
    text-decoration: none;
    transition: var(--pga3-transition);
    min-width: 60px;
    min-height: 56px;
    border-radius: var(--pga3-radius-sm);
}

.pga3-nav-item:hover,
.pga3-nav-item.pro6bb-active {
    color: var(--pga3-primary);
    background: rgba(255, 192, 203, 0.1);
}

.pga3-nav-item i {
    font-size: 22px;
}

.pga3-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.pga3-nav-item.pro6bb-active i {
    transform: scale(1.1);
}

/* ==================== Back to Top ==================== */
#pro6bb-back-to-top {
    position: fixed;
    bottom: calc(var(--pga3-bottom-nav-height) + 20px);
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--pga3-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pga3-text);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--pga3-transition);
    z-index: 999;
    box-shadow: var(--pga3-shadow);
}

#pro6bb-back-to-top.pro6bb-visible {
    opacity: 1;
    visibility: visible;
}

#pro6bb-back-to-top:hover {
    transform: translateY(-4px);
}

/* ==================== Utilities ==================== */
.pga3-text-center { text-align: center; }
.pga3-mt-1 { margin-top: 8px; }
.pga3-mt-2 { margin-top: 16px; }
.pga3-mt-3 { margin-top: 24px; }
.pga3-mb-1 { margin-bottom: 8px; }
.pga3-mb-2 { margin-bottom: 16px; }
.pga3-mb-3 { margin-bottom: 24px; }

.pga3-hidden { display: none !important; }

/* ==================== Desktop Styles ==================== */
@media (min-width: 769px) {
    .pga3-container {
        max-width: 1200px;
    }

    .pga3-main {
        padding-bottom: 40px;
    }

    .pga3-header {
        padding: 0 40px;
    }

    .pga3-menu-toggle {
        display: none;
    }

    .pga3-nav-desktop {
        display: flex;
    }

    .pga3-bottom-nav {
        display: none;
    }

    .pga3-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .pga3-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pga3-carousel {
        max-width: 100%;
    }

    .pga3-footer {
        padding-bottom: 40px;
    }

    .pga3-footer-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* ==================== Mobile Specific ==================== */
@media (max-width: 768px) {
    .pga3-menu-toggle {
        display: flex;
    }

    .pga3-header-actions .pga3-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .pga3-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pga3-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pga3-h1 { font-size: 1.5rem; }
    .pga3-h2 { font-size: 1.25rem; }
    .pga3-h3 { font-size: 1.1rem; }
}

/* ==================== Animation ==================== */
@keyframes pro6bbfadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pga3-animate-in {
    animation: pro6bbfadeIn 0.5s ease forwards;
}

/* ==================== Print Styles ==================== */
@media print {
    .pga3-header,
    .pga3-bottom-nav,
    #pro6bb-back-to-top,
    #pro6bb-mobile-menu,
    #pro6bb-menu-overlay {
        display: none !important;
    }
}
