/**
 * Philwin PH - Core Stylesheet
 * CSS Class prefix: v528-
 * Color palette: #0F0F23 | #FAFAD2 | #D3D3D3 | #FFE135 | #FFEF94
 */

/* CSS Variables */
:root {
    --v528-bg-primary: #0F0F23;
    --v528-bg-secondary: #1a1a3e;
    --v528-bg-card: #232355;
    --v528-text-primary: #FAFAD2;
    --v528-text-secondary: #D3D3D3;
    --v528-accent-gold: #FFE135;
    --v528-accent-light: #FFEF94;
    --v528-gradient-gold: linear-gradient(135deg, #FFE135 0%, #FFEF94 100%);
    --v528-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v528-radius: 12px;
    --v528-radius-sm: 8px;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v528-bg-primary);
    color: var(--v528-text-primary);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

/* Main container */
.v528-wrapper {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--v528-bg-primary);
}

/* Header Styles */
.v528-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v528-bg-primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 225, 53, 0.2);
    transition: all 0.3s ease;
}

.v528-header-scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--v528-shadow);
}

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

.v528-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.v528-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v528-btn {
    padding: 8px 16px;
    border-radius: var(--v528-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.v528-btn-login {
    background: transparent;
    color: var(--v528-accent-gold);
    border: 1px solid var(--v528-accent-gold);
}

.v528-btn-login:hover {
    background: rgba(255, 225, 53, 0.1);
}

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

.v528-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 225, 53, 0.4);
}

/* Menu Toggle */
.v528-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.v528-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--v528-accent-gold);
    transition: all 0.3s ease;
}

.v528-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v528-toggle-active span:nth-child(2) {
    opacity: 0;
}

.v528-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.v528-mobile-menu ul {
    list-style: none;
}

.v528-mobile-menu li {
    margin-bottom: 8px;
}

.v528-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--v528-text-primary);
    text-decoration: none;
    border-radius: var(--v528-radius-sm);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.v528-mobile-menu a:hover {
    background: rgba(255, 225, 53, 0.1);
    color: var(--v528-accent-gold);
}

.v528-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;
}

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

/* Main Content */
.v528-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

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

/* Carousel Styles */
.v528-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.v528-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.v528-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.v528-slide-active {
    opacity: 1;
}

.v528-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.v528-slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v528-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 225, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v528-dot-active {
    background: var(--v528-accent-gold);
    transform: scale(1.2);
}

/* Section Styles */
.v528-section {
    padding: 20px 16px;
}

.v528-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--v528-accent-gold);
    text-align: center;
}

.v528-section-subtitle {
    font-size: 1.4rem;
    color: var(--v528-text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

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

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

.v528-game-item:hover {
    transform: scale(1.05);
}

.v528-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v528-radius-sm);
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.v528-game-item:hover img {
    border-color: var(--v528-accent-gold);
}

.v528-game-name {
    font-size: 1.1rem;
    color: var(--v528-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.v528-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 16px;
}

.v528-category-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--v528-accent-light);
}

/* Card Styles */
.v528-card {
    background: var(--v528-bg-card);
    border-radius: var(--v528-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--v528-shadow);
}

.v528-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v528-accent-gold);
    margin-bottom: 12px;
}

.v528-card-text {
    font-size: 1.4rem;
    color: var(--v528-text-secondary);
    line-height: 1.6;
}

/* Promo Link Styles */
.v528-promo-link {
    color: var(--v528-accent-gold);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v528-promo-link:hover {
    color: var(--v528-accent-light);
    text-decoration: underline;
}

.v528-promo-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--v528-gradient-gold);
    color: var(--v528-bg-primary);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: var(--v528-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.v528-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 225, 53, 0.5);
}

/* Footer Styles */
.v528-footer {
    background: var(--v528-bg-secondary);
    padding: 30px 16px;
    text-align: center;
}

.v528-footer-desc {
    font-size: 1.3rem;
    color: var(--v528-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.v528-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.v528-footer-link {
    padding: 8px 14px;
    background: var(--v528-bg-card);
    color: var(--v528-text-primary);
    text-decoration: none;
    border-radius: var(--v528-radius-sm);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.v528-footer-link:hover {
    background: var(--v528-accent-gold);
    color: var(--v528-bg-primary);
}

.v528-copyright {
    font-size: 1.2rem;
    color: var(--v528-text-secondary);
    border-top: 1px solid rgba(255, 225, 53, 0.1);
    padding-top: 16px;
    margin-top: 16px;
}

/* Bottom Navigation */
.v528-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--v528-bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 225, 53, 0.2);
}

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

.v528-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.v528-nav-item i,
.v528-nav-item .material-icons {
    font-size: 24px;
    color: var(--v528-text-secondary);
    transition: all 0.3s ease;
}

.v528-nav-item span {
    font-size: 10px;
    color: var(--v528-text-secondary);
    margin-top: 4px;
    transition: all 0.3s ease;
}

.v528-nav-item:hover i,
.v528-nav-item:hover .material-icons,
.v528-nav-item:hover span {
    color: var(--v528-accent-gold);
}

.v528-nav-item.active i,
.v528-nav-item.active .material-icons,
.v528-nav-item.active span {
    color: var(--v528-accent-gold);
}

/* Utilities */
.v528-text-center {
    text-align: center;
}

.v528-mb-10 {
    margin-bottom: 10px;
}

.v528-mb-20 {
    margin-bottom: 20px;
}

.v528-mt-20 {
    margin-top: 20px;
}

/* Feature List */
.v528-feature-list {
    list-style: none;
}

.v528-feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v528-feature-list li:last-child {
    border-bottom: none;
}

.v528-feature-list i {
    color: var(--v528-accent-gold);
    font-size: 1.6rem;
    margin-top: 2px;
}

/* Testimonial */
.v528-testimonial {
    background: var(--v528-bg-card);
    padding: 16px;
    border-radius: var(--v528-radius);
    margin-bottom: 12px;
}

.v528-testimonial-text {
    font-size: 1.4rem;
    color: var(--v528-text-secondary);
    font-style: italic;
    margin-bottom: 10px;
}

.v528-testimonial-author {
    font-size: 1.2rem;
    color: var(--v528-accent-gold);
    font-weight: 600;
}

/* FAQ Section */
.v528-faq-item {
    background: var(--v528-bg-card);
    border-radius: var(--v528-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.v528-faq-question {
    padding: 14px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v528-accent-light);
    cursor: pointer;
}

.v528-faq-answer {
    padding: 0 16px 14px;
    font-size: 1.3rem;
    color: var(--v528-text-secondary);
}

/* Winner Showcase */
.v528-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--v528-bg-card);
    border-radius: var(--v528-radius-sm);
    margin-bottom: 8px;
}

.v528-winner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v528-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--v528-gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--v528-bg-primary);
}

.v528-winner-name {
    font-size: 1.3rem;
    color: var(--v528-text-primary);
}

.v528-winner-game {
    font-size: 1.1rem;
    color: var(--v528-text-secondary);
}

.v528-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v528-accent-gold);
}

/* Payment Methods */
.v528-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.v528-payment-item {
    padding: 10px 16px;
    background: var(--v528-bg-card);
    border-radius: var(--v528-radius-sm);
    font-size: 1.2rem;
    color: var(--v528-text-secondary);
}

/* Stats Grid */
.v528-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.v528-stat-item {
    background: var(--v528-bg-card);
    padding: 16px;
    border-radius: var(--v528-radius-sm);
    text-align: center;
}

.v528-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v528-accent-gold);
}

.v528-stat-label {
    font-size: 1.2rem;
    color: var(--v528-text-secondary);
    margin-top: 4px;
}
