/**
 * King PH App - Core Stylesheet
 * @description Main CSS styles for king ph app website
 * @version 1.0.0
 * @author King PH App Team
 */

/* CSS Variables - Color Palette */
:root {
    --v27f-primary: #00BFFF;
    --v27f-secondary: #20B2AA;
    --v27f-accent: #0000FF;
    --v27f-dark: #2C2C2C;
    --v27f-light: #9AFF9A;
    --v27f-bg: #1a1a2e;
    --v27f-bg-card: #16213e;
    --v27f-text: #ffffff;
    --v27f-text-muted: #a0a0a0;
    --v27f-gradient: linear-gradient(135deg, #00BFFF 0%, #20B2AA 50%, #0000FF 100%);
    --v27f-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

/* Base Reset */
* {
    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: var(--v27f-bg);
    color: var(--v27f-text);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Header */
.v27f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--v27f-bg) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

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

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

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

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

.v27f-header-actions {
    display: flex;
    gap: 0.8rem;
}

.v27f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.v27f-btn-primary {
    background: var(--v27f-gradient);
    color: white;
    box-shadow: var(--v27f-shadow);
}

.v27f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

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

.v27f-btn-outline:hover {
    background: var(--v27f-primary);
    color: var(--v27f-dark);
}

/* Mobile Menu Toggle */
.v27f-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v27f-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

.v27f-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.v27f-mobile-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v27f-primary);
}

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

.v27f-nav-list {
    list-style: none;
}

.v27f-nav-item {
    margin-bottom: 1rem;
}

.v27f-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--v27f-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v27f-nav-link:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--v27f-primary);
}

/* Menu Overlay */
.v27f-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;
}

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

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

/* Carousel/Slider */
.v27f-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

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

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

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

.v27f-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.v27f-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.v27f-slide-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section Title */
.v27f-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--v27f-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v27f-section-subtitle {
    font-size: 1.4rem;
    color: var(--v27f-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

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

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

.v27f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

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

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

/* Category Section */
.v27f-category-section {
    margin-bottom: 3rem;
}

.v27f-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v27f-category-icon {
    font-size: 2.4rem;
    color: var(--v27f-primary);
}

.v27f-category-title {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Cards */
.v27f-card {
    background: var(--v27f-bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.v27f-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v27f-primary);
}

.v27f-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--v27f-text-muted);
}

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

.v27f-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v27f-feature-icon {
    font-size: 2rem;
    color: var(--v27f-secondary);
}

.v27f-feature-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.v27f-feature-content p {
    font-size: 1.2rem;
    color: var(--v27f-text-muted);
}

/* Testimonials */
.v27f-testimonial {
    background: var(--v27f-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--v27f-primary);
}

.v27f-testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
}

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

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

.v27f-payment-item {
    background: var(--v27f-bg-card);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.v27f-payment-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.v27f-payment-name {
    font-size: 1.2rem;
}

/* Footer */
.v27f-footer {
    background: var(--v27f-bg-card);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

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

.v27f-footer-desc {
    font-size: 1.2rem;
    color: var(--v27f-text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

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

.v27f-footer-link {
    color: var(--v27f-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

.v27f-promo-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.v27f-promo-btn {
    padding: 0.8rem 1.5rem;
    background: var(--v27f-gradient);
    color: white;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
}

.v27f-promo-btn:hover {
    transform: scale(1.05);
}

.v27f-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--v27f-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.v27f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, var(--v27f-bg-card) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid rgba(0, 191, 255, 0.3);
    padding: 0 0.5rem;
}

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

.v27f-nav-btn:hover,
.v27f-nav-btn.active {
    color: var(--v27f-primary);
    background: rgba(0, 191, 255, 0.1);
}

.v27f-nav-btn i,
.v27f-nav-btn .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.v27f-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Winners Showcase */
.v27f-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v27f-winner-card {
    background: var(--v27f-bg-card);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.v27f-winner-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v27f-secondary);
}

.v27f-winner-game {
    font-size: 1.2rem;
    color: var(--v27f-text-muted);
}

/* Responsive */
@media (max-width: 430px) {
    .v27f-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .v27f-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .v27f-container {
        max-width: 600px;
    }
}

@media (min-width: 769px) {
    .v27f-container {
        max-width: 800px;
    }

    .v27f-bottom-nav {
        display: none;
    }

    .v27f-main {
        padding-bottom: 2rem;
    }

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

    .v27f-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animation Classes */
.v27f-fade-in {
    animation: v27f-fadeIn 0.5s ease forwards;
}

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

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

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