/**
 * staph win - Theme Stylesheet
 * Mobile-first design with pg51- class prefix
 * Color Palette: #C9C9FF | #F08080 | #141414 | #495057 | #D4AF37
 */

/* CSS Variables */
:root {
    --pg51-primary: #D4AF37;
    --pg51-secondary: #F08080;
    --pg51-accent: #C9C9FF;
    --pg51-bg-dark: #141414;
    --pg51-bg-medium: #495057;
    --pg51-text-light: #ffffff;
    --pg51-text-muted: #b0b0b0;
    --pg51-gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F08080 100%);
    --pg51-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg51-radius: 8px;
    --pg51-radius-lg: 12px;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--pg51-bg-dark);
    color: var(--pg51-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

/* Container */
.pg51-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header Styles */
.pg51-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.pg51-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg51-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg51-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pg51-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pg51-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg51-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pg51-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--pg51-radius);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pg51-btn-primary {
    background: var(--pg51-gradient-gold);
    color: var(--pg51-bg-dark);
}

.pg51-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

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

.pg51-btn-secondary:hover {
    background: var(--pg51-primary);
    color: var(--pg51-bg-dark);
}

.pg51-menu-toggle {
    background: none;
    border: none;
    color: var(--pg51-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pg51-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg51-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

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

.pg51-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: all 0.3s ease;
}

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

.pg51-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.pg51-menu-close {
    background: none;
    border: none;
    color: var(--pg51-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg51-menu-nav {
    list-style: none;
}

.pg51-menu-nav li {
    margin-bottom: 1rem;
}

.pg51-menu-nav a {
    color: var(--pg51-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem;
    border-radius: var(--pg51-radius);
    transition: all 0.3s ease;
}

.pg51-menu-nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--pg51-primary);
}

/* Carousel Styles */
.pg51-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 6rem;
    border-radius: 0 0 var(--pg51-radius-lg) var(--pg51-radius-lg);
}

.pg51-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pg51-slide {
    min-width: 100%;
    cursor: pointer;
}

.pg51-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.pg51-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pg51-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg51-dot-active {
    background: var(--pg51-primary);
    transform: scale(1.2);
}

/* Main Content */
main {
    padding-bottom: 8rem;
}

.pg51-section {
    padding: 2rem 0;
}

.pg51-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pg51-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg51-section-title i {
    font-size: 2.4rem;
}

/* Game Grid */
.pg51-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg51-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg51-game-item:hover {
    transform: translateY(-5px);
}

.pg51-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pg51-radius);
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pg51-game-item:hover .pg51-game-img {
    border-color: var(--pg51-primary);
}

.pg51-game-name {
    font-size: 1.1rem;
    color: var(--pg51-text-light);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.pg51-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pg51-category-icon {
    width: 40px;
    height: 40px;
    background: var(--pg51-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--pg51-bg-dark);
}

.pg51-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg51-text-light);
}

/* Feature Cards */
.pg51-feature-card {
    background: linear-gradient(145deg, rgba(73, 80, 87, 0.3) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-radius: var(--pg51-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pg51-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg51-primary);
    margin-bottom: 0.8rem;
}

.pg51-feature-text {
    font-size: 1.4rem;
    color: var(--pg51-text-muted);
    line-height: 1.6;
}

/* Footer */
.pg51-footer {
    background: linear-gradient(180deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
    padding: 2rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.pg51-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.pg51-footer-desc {
    font-size: 1.4rem;
    color: var(--pg51-text-muted);
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.6;
}

.pg51-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pg51-footer-link {
    padding: 0.8rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--pg51-radius);
    color: var(--pg51-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.pg51-footer-link:hover {
    background: var(--pg51-primary);
    color: var(--pg51-bg-dark);
}

.pg51-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pg51-footer-nav a {
    color: var(--pg51-text-muted);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.pg51-footer-nav a:hover {
    color: var(--pg51-primary);
}

.pg51-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pg51-text-muted);
}

/* Bottom Navigation */
.pg51-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
}

.pg51-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--pg51-text-muted);
    border-radius: var(--pg51-radius);
}

.pg51-nav-item:hover {
    color: var(--pg51-primary);
    transform: scale(1.1);
}

.pg51-nav-item.active {
    color: var(--pg51-primary);
}

.pg51-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.pg51-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.pg51-text-gold {
    color: var(--pg51-primary);
}

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

.pg51-mb-1 { margin-bottom: 1rem; }
.pg51-mb-2 { margin-bottom: 2rem; }
.pg51-mb-3 { margin-bottom: 3rem; }

/* Partners Section */
.pg51-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.pg51-partner-logo {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg51-partner-logo:hover {
    opacity: 1;
}

/* Testimonials */
.pg51-testimonial {
    background: rgba(73, 80, 87, 0.2);
    border-radius: var(--pg51-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pg51-primary);
}

.pg51-testimonial-text {
    font-size: 1.4rem;
    color: var(--pg51-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.pg51-testimonial-author {
    font-size: 1.3rem;
    color: var(--pg51-primary);
    font-weight: 600;
}

/* Payment Methods */
.pg51-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pg51-payment-item {
    background: rgba(73, 80, 87, 0.3);
    border-radius: var(--pg51-radius);
    padding: 1rem;
    text-align: center;
}

.pg51-payment-item i {
    font-size: 2.4rem;
    color: var(--pg51-primary);
    margin-bottom: 0.5rem;
}

.pg51-payment-item span {
    font-size: 1.2rem;
    color: var(--pg51-text-light);
}

/* Responsive */
@media (min-width: 769px) {
    .pg51-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .pg51-container {
        max-width: 768px;
    }

    .pg51-header-inner {
        max-width: 768px;
    }
}

/* Animations */
@keyframes pg51-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pg51-pulse {
    animation: pg51-pulse 2s infinite;
}

@keyframes pg51-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

.pg51-glow {
    animation: pg51-glow 2s infinite;
}
