/**
 * KingPH Download APK - Main Stylesheet
 * Prefix: w27fe-
 * Website: kingphdownloadapk.click
 * Color Palette: #B0E0E6 | #1B263B | #9966CC | #F5F5F5
 */

/* CSS Variables */
:root {
    --w27fe-primary: #9966CC;
    --w27fe-secondary: #B0E0E6;
    --w27fe-bg-dark: #1B263B;
    --w27fe-bg-light: #F5F5F5;
    --w27fe-text-light: #F5F5F5;
    --w27fe-text-dark: #1B263B;
    --w27fe-accent: #9966CC;
    --w27fe-gradient: linear-gradient(135deg, #1B263B 0%, #2D3E5F 100%);
    --w27fe-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --w27fe-radius: 8px;
    --w27fe-transition: all 0.3s ease;
}

/* Reset & 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: var(--w27fe-bg-dark);
    color: var(--w27fe-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--w27fe-secondary);
    text-decoration: none;
    transition: var(--w27fe-transition);
}

a:hover {
    color: var(--w27fe-primary);
}

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

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

/* Header */
.w27fe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1B263B 0%, rgba(27, 38, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--w27fe-shadow);
    transition: var(--w27fe-transition);
}

.w27fe-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    padding: 0.8rem 0;
}

.w27fe-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.w27fe-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.w27fe-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w27fe-text-light);
    white-space: nowrap;
}

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

.w27fe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w27fe-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w27fe-transition);
    border: none;
    min-height: 36px;
}

.w27fe-btn-register {
    background: var(--w27fe-primary);
    color: var(--w27fe-text-light);
}

.w27fe-btn-register:hover {
    background: #8555B8;
    transform: translateY(-2px);
}

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

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

.w27fe-menu-toggle {
    background: transparent;
    border: none;
    color: var(--w27fe-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.w27fe-menu-open {
    right: 0;
}

.w27fe-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: var(--w27fe-transition);
}

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

.w27fe-menu-list {
    list-style: none;
}

.w27fe-menu-item {
    border-bottom: 1px solid rgba(176, 224, 230, 0.1);
}

.w27fe-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--w27fe-text-light);
    font-size: 1.4rem;
    transition: var(--w27fe-transition);
}

.w27fe-menu-link:hover {
    color: var(--w27fe-primary);
    padding-left: 0.5rem;
}

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

/* Hero Slider */
.w27fe-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.w27fe-slider {
    position: relative;
    height: 200px;
}

.w27fe-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.w27fe-slide:first-child {
    display: block;
}

.w27fe-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.w27fe-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w27fe-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--w27fe-transition);
}

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

/* Section Styles */
.w27fe-section {
    padding: 2rem 0;
}

.w27fe-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--w27fe-text-light);
    text-align: center;
    position: relative;
}

.w27fe-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--w27fe-primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.w27fe-game-section {
    margin-bottom: 2.5rem;
}

.w27fe-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--w27fe-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w27fe-category-title i {
    color: var(--w27fe-primary);
}

.w27fe-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w27fe-game-card {
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--w27fe-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--w27fe-transition);
    border: 1px solid rgba(176, 224, 230, 0.1);
}

.w27fe-game-card:hover {
    background: rgba(153, 102, 204, 0.15);
    transform: translateY(-3px);
    border-color: var(--w27fe-primary);
}

.w27fe-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

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

/* Content Box */
.w27fe-content-box {
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--w27fe-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(176, 224, 230, 0.1);
}

.w27fe-content-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--w27fe-secondary);
}

.w27fe-content-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--w27fe-text-light);
}

.w27fe-content-text p {
    margin-bottom: 1rem;
}

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

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

.w27fe-feature-item:last-child {
    border-bottom: none;
}

.w27fe-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--w27fe-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w27fe-feature-icon i {
    color: var(--w27fe-text-light);
    font-size: 1.6rem;
}

/* CTA Button */
.w27fe-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--w27fe-primary) 0%, #8555B8 100%);
    color: var(--w27fe-text-light);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--w27fe-transition);
    border: none;
    box-shadow: 0 4px 20px rgba(153, 102, 204, 0.4);
}

.w27fe-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(153, 102, 204, 0.5);
}

/* Testimonials */
.w27fe-testimonials {
    display: grid;
    gap: 1rem;
}

.w27fe-testimonial {
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--w27fe-radius);
    padding: 1.2rem;
    border-left: 3px solid var(--w27fe-primary);
}

.w27fe-testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.8rem;
    color: var(--w27fe-text-light);
}

.w27fe-testimonial-author {
    font-size: 1.1rem;
    color: var(--w27fe-secondary);
    font-weight: 600;
}

/* Payment Methods */
.w27fe-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.w27fe-payment-item {
    background: rgba(176, 224, 230, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--w27fe-radius);
    font-size: 1.2rem;
    color: var(--w27fe-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Section */
.w27fe-winners-list {
    display: grid;
    gap: 0.8rem;
}

.w27fe-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(176, 224, 230, 0.05);
    padding: 1rem;
    border-radius: var(--w27fe-radius);
}

.w27fe-winner-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.w27fe-winner-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--w27fe-primary);
}

/* Footer */
.w27fe-footer {
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.95) 0%, #0F1520 100%);
    padding: 2rem 0;
    border-top: 1px solid rgba(176, 224, 230, 0.1);
}

.w27fe-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.w27fe-footer-desc {
    font-size: 1.2rem;
    color: rgba(245, 245, 245, 0.7);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

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

.w27fe-footer-link {
    background: rgba(153, 102, 204, 0.2);
    color: var(--w27fe-text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: var(--w27fe-transition);
}

.w27fe-footer-link:hover {
    background: var(--w27fe-primary);
    color: var(--w27fe-text-light);
}

.w27fe-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w27fe-footer-nav a {
    color: rgba(245, 245, 245, 0.7);
    font-size: 1.2rem;
}

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

.w27fe-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.5);
}

/* Mobile Bottom Navigation */
.w27fe-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, #0F1520 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(176, 224, 230, 0.15);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.w27fe-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: var(--w27fe-transition);
    border-radius: 8px;
    padding: 0.4rem;
}

.w27fe-nav-item:hover {
    background: rgba(153, 102, 204, 0.15);
}

.w27fe-nav-item.active {
    background: rgba(153, 102, 204, 0.2);
}

.w27fe-nav-item.active .w27fe-nav-icon {
    color: var(--w27fe-primary);
    transform: scale(1.1);
}

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

.w27fe-nav-icon {
    font-size: 22px;
    color: var(--w27fe-secondary);
    margin-bottom: 0.2rem;
    transition: var(--w27fe-transition);
}

.w27fe-nav-text {
    font-size: 10px;
    color: rgba(245, 245, 245, 0.7);
    transition: var(--w27fe-transition);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .w27fe-bottom-nav {
        display: none;
    }

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

/* Utility Classes */
.w27fe-text-center {
    text-align: center;
}

.w27fe-mb-1 {
    margin-bottom: 1rem;
}

.w27fe-mb-2 {
    margin-bottom: 2rem;
}

.w27fe-mt-2 {
    margin-top: 2rem;
}

/* Promotional Link Styles */
.w27fe-promo-link {
    color: var(--w27fe-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--w27fe-transition);
}

.w27fe-promo-link:hover {
    color: #A877D9;
    text-decoration: underline;
}

/* FAQ Section */
.w27fe-faq-item {
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--w27fe-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.w27fe-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w27fe-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w27fe-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--w27fe-text-light);
    line-height: 1.6;
}

/* Steps List */
.w27fe-steps {
    counter-reset: step;
}

.w27fe-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
}

.w27fe-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.8rem;
    height: 2.8rem;
    background: var(--w27fe-primary);
    color: var(--w27fe-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

.w27fe-step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w27fe-secondary);
    margin-bottom: 0.5rem;
}

.w27fe-step-text {
    font-size: 1.2rem;
    color: var(--w27fe-text-light);
    line-height: 1.6;
}

/* RTP Display */
.w27fe-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w27fe-rtp-item {
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--w27fe-radius);
    padding: 1rem;
    text-align: center;
}

.w27fe-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w27fe-primary);
    margin-bottom: 0.3rem;
}

.w27fe-rtp-label {
    font-size: 1.1rem;
    color: var(--w27fe-text-light);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .w27fe-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .w27fe-logo-text {
        font-size: 1.2rem;
    }

    .w27fe-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
.w27fe-touch-device .w27fe-game-card,
.w27fe-touch-device .w27fe-nav-item,
.w27fe-touch-device .w27fe-btn {
    min-height: 44px;
}

/* Animation */
@keyframes w27fe-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.w27fe-animate-pulse {
    animation: w27fe-pulse 2s ease-in-out infinite;
}
