/**
 * Super Ph Apk - Main Stylesheet
 * Website: superphapk.club
 * Prefix: w266b-
 * Colors: #20B2AA (primary) | #141414 (bg) | #BAFFC9 | #C9C9FF (text)
 */

/* CSS Variables */
:root {
    --w266b-primary: #20B2AA;
    --w266b-primary-dark: #1a9a93;
    --w266b-primary-light: #3cc9c1;
    --w266b-bg: #141414;
    --w266b-bg-secondary: #1a1a1a;
    --w266b-bg-card: #222222;
    --w266b-text: #ffffff;
    --w266b-text-secondary: #BAFFC9;
    --w266b-text-accent: #C9C9FF;
    --w266b-border: #333333;
    --w266b-shadow: rgba(0, 0, 0, 0.3);
    --w266b-gradient: linear-gradient(135deg, #20B2AA 0%, #1a9a93 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--w266b-bg);
    color: var(--w266b-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.w266b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w266b-border);
    transition: all 0.3s ease;
}

.w266b-header-scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 20px var(--w266b-shadow);
}

.w266b-header-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w266b-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w266b-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.w266b-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--w266b-primary);
}

.w266b-header-actions {
    display: flex;
    gap: 10px;
}

.w266b-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w266b-btn-login {
    background: transparent;
    color: var(--w266b-text);
    border: 1px solid var(--w266b-primary);
}

.w266b-btn-login:hover {
    background: var(--w266b-primary);
}

.w266b-btn-register {
    background: var(--w266b-gradient);
    color: var(--w266b-text);
}

.w266b-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
}

/* Mobile Menu */
.w266b-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--w266b-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.w266b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w266b-bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.w266b-menu-active {
    right: 0;
}

.w266b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w266b-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w266b-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--w266b-text);
    font-size: 28px;
    cursor: pointer;
}

.w266b-menu-links {
    list-style: none;
}

.w266b-menu-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--w266b-border);
    color: var(--w266b-text);
    font-size: 15px;
    transition: color 0.3s ease;
}

.w266b-menu-link:hover {
    color: var(--w266b-primary);
}

/* Main Content */
.w266b-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Hero Carousel */
.w266b-hero {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}

.w266b-carousel {
    position: relative;
    width: 100%;
    height: 200px;
}

.w266b-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.w266b-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w266b-slide-active {
    opacity: 1;
}

.w266b-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.w266b-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.w266b-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w266b-dot-active {
    background: var(--w266b-primary);
    transform: scale(1.2);
}

/* Section Styles */
.w266b-section {
    padding: 25px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.w266b-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--w266b-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.w266b-section-title i {
    color: var(--w266b-primary);
}

/* Game Categories Tabs */
.w266b-tabs-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.w266b-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.w266b-tabs::-webkit-scrollbar {
    display: none;
}

.w266b-tab-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--w266b-bg-card);
    border: 1px solid var(--w266b-border);
    border-radius: 25px;
    color: var(--w266b-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.w266b-tab-btn:hover,
.w266b-tab-active {
    background: var(--w266b-gradient);
    border-color: var(--w266b-primary);
    color: var(--w266b-text);
}

/* Games Grid */
.w266b-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
    max-width: 430px;
    margin: 0 auto;
}

.w266b-game-card {
    position: relative;
    background: var(--w266b-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w266b-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--w266b-shadow);
}

.w266b-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w266b-game-name {
    padding: 8px 6px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    color: var(--w266b-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w266b-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background: rgba(32, 178, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.w266b-game-card:hover .w266b-game-overlay {
    opacity: 1;
}

.w266b-play-btn {
    width: 40px;
    height: 40px;
    background: var(--w266b-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w266b-primary);
    font-size: 16px;
}

/* Info Section */
.w266b-info-section {
    background: var(--w266b-bg-secondary);
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 16px;
    max-width: calc(430px - 32px);
    margin-left: auto;
    margin-right: auto;
}

.w266b-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--w266b-primary);
    margin-bottom: 15px;
}

.w266b-info-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--w266b-text);
}

.w266b-info-content p {
    margin-bottom: 12px;
}

.w266b-info-list {
    list-style: none;
    margin-top: 15px;
}

.w266b-info-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid var(--w266b-border);
}

.w266b-info-list li:last-child {
    border-bottom: none;
}

.w266b-info-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--w266b-primary);
}

/* FAQ Section */
.w266b-faq-section {
    padding: 25px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.w266b-faq-item {
    background: var(--w266b-bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.w266b-faq-question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.w266b-faq-icon {
    transition: transform 0.3s ease;
    color: var(--w266b-primary);
}

.w266b-faq-icon-rotate {
    transform: rotate(180deg);
}

.w266b-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.w266b-faq-answer-open {
    max-height: 500px;
}

.w266b-faq-answer-content {
    padding: 0 20px 15px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--w266b-text-secondary);
}

/* Footer */
.w266b-footer {
    background: var(--w266b-bg-secondary);
    padding: 30px 16px 100px;
    margin-top: 30px;
}

.w266b-footer-container {
    max-width: 430px;
    margin: 0 auto;
}

.w266b-partners {
    margin-bottom: 25px;
}

.w266b-partners-title {
    font-size: 14px;
    color: var(--w266b-text-secondary);
    margin-bottom: 15px;
    text-align: center;
}

.w266b-partners-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.w266b-partner-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.w266b-partner-img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.w266b-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.w266b-footer-link {
    padding: 10px;
    background: var(--w266b-bg-card);
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--w266b-text);
    transition: all 0.3s ease;
}

.w266b-footer-link:hover {
    background: var(--w266b-primary);
}

.w266b-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--w266b-text-secondary);
}

/* Bottom Navigation */
.w266b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%);
    border-top: 1px solid var(--w266b-border);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.w266b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.w266b-nav-item:hover {
    transform: scale(1.05);
}

.w266b-nav-item.active .w266b-nav-icon {
    color: var(--w266b-primary);
}

.w266b-nav-item.active .w266b-nav-text {
    color: var(--w266b-primary);
}

.w266b-nav-icon {
    font-size: 22px;
    color: var(--w266b-text-secondary);
    transition: color 0.3s ease;
}

.w266b-nav-text {
    font-size: 10px;
    color: var(--w266b-text-secondary);
    transition: color 0.3s ease;
}

/* CTA Banner */
.w266b-cta-banner {
    background: var(--w266b-gradient);
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 16px;
    text-align: center;
    max-width: calc(430px - 32px);
    margin-left: auto;
    margin-right: auto;
}

.w266b-cta-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.w266b-cta-text {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.w266b-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--w266b-text);
    color: var(--w266b-primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w266b-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Utilities */
.game2607-no-scroll {
    overflow: hidden;
}

.game2607-loaded {
    opacity: 1;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .w266b-bottom-nav {
        display: none;
    }

    .w266b-main {
        padding-bottom: 30px;
    }

    .w266b-header-container,
    .w266b-hero,
    .w266b-section,
    .w266b-tabs-container,
    .w266b-games-grid,
    .w266b-footer-container {
        max-width: 1200px;
    }

    .w266b-games-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .w266b-carousel {
        height: 350px;
    }

    .w266b-footer-links {
        grid-template-columns: repeat(4, 1fr);
    }

    .w266b-partners-grid {
        grid-template-columns: repeat(14, 1fr);
    }
}

/* Mobile Menu Button */
@media (max-width: 768px) {
    .w266b-menu-toggle {
        display: block;
    }

    .w266b-header-nav {
        display: none;
    }
}

/* Animations */
@keyframes w266b-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w266b-animate {
    animation: w266b-fadeIn 0.5s ease forwards;
}
