/**
 * Taya365 Original APK - Main Stylesheet
 * All classes use prefix "w4a3b-" for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 * Color scheme: #AD1457 | #FF91A4 | #D2B48C | #3A3A3A | #FF1493
 */

/* CSS Variables */
:root {
    --w4a3b-primary: #AD1457;
    --w4a3b-secondary: #FF91A4;
    --w4a3b-accent: #D2B48C;
    --w4a3b-bg: #3A3A3A;
    --w4a3b-highlight: #FF1493;
    --w4a3b-text: #FFFFFF;
    --w4a3b-text-dark: #1A1A1A;
    --w4a3b-card-bg: #2A2A2A;
    --w4a3b-border: rgba(255, 255, 255, 0.1);
    --w4a3b-gradient: linear-gradient(135deg, var(--w4a3b-primary), var(--w4a3b-highlight));
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--w4a3b-bg);
    color: var(--w4a3b-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.w4a3b-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.w4a3b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w4a3b-bg) 0%, rgba(58, 58, 58, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w4a3b-border);
    padding: 0.8rem 0;
}

.w4a3b-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.w4a3b-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w4a3b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.w4a3b-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w4a3b-secondary);
}

.w4a3b-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.w4a3b-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w4a3b-btn-primary {
    background: var(--w4a3b-gradient);
    color: var(--w4a3b-text);
}

.w4a3b-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.4);
}

.w4a3b-btn-outline {
    background: transparent;
    border: 2px solid var(--w4a3b-secondary);
    color: var(--w4a3b-secondary);
}

.w4a3b-btn-outline:hover {
    background: var(--w4a3b-secondary);
    color: var(--w4a3b-text-dark);
}

.w4a3b-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--w4a3b-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w4a3b-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w4a3b-card-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w4a3b-menu-active {
    right: 0;
}

.w4a3b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w4a3b-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w4a3b-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--w4a3b-border);
}

.w4a3b-menu-close {
    background: none;
    border: none;
    color: var(--w4a3b-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w4a3b-nav-list {
    list-style: none;
}

.w4a3b-nav-item {
    margin-bottom: 1.2rem;
}

.w4a3b-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--w4a3b-text);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w4a3b-nav-link:hover,
.w4a3b-nav-active {
    background: var(--w4a3b-primary);
    color: var(--w4a3b-text);
}

/* Main Content */
.w4a3b-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Hero/Carousel */
.w4a3b-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.w4a3b-carousel {
    position: relative;
    width: 100%;
    height: 200px;
}

.w4a3b-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w4a3b-slide-active {
    opacity: 1;
}

.w4a3b-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w4a3b-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.w4a3b-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4a3b-dot-active {
    background: var(--w4a3b-highlight);
    transform: scale(1.2);
}

/* Section Title */
.w4a3b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4a3b-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w4a3b-highlight);
}

/* Game Grid */
.w4a3b-game-section {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.w4a3b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w4a3b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w4a3b-game-item:hover {
    transform: scale(1.08);
}

.w4a3b-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.w4a3b-game-name {
    font-size: 1.1rem;
    color: var(--w4a3b-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.w4a3b-card {
    background: var(--w4a3b-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--w4a3b-border);
}

.w4a3b-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4a3b-secondary);
    margin-bottom: 1rem;
}

.w4a3b-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Promo Link */
.w4a3b-promo-link {
    color: var(--w4a3b-highlight);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w4a3b-promo-link:hover {
    color: var(--w4a3b-secondary);
    text-decoration: underline;
}

/* Features Grid */
.w4a3b-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w4a3b-feature-item {
    background: linear-gradient(135deg, rgba(173, 20, 87, 0.3), rgba(255, 20, 147, 0.2));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.w4a3b-feature-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.w4a3b-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4a3b-secondary);
}

/* Footer */
.w4a3b-footer {
    background: var(--w4a3b-card-bg);
    padding: 2rem 1rem;
    border-top: 1px solid var(--w4a3b-border);
}

.w4a3b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w4a3b-footer-link {
    font-size: 1.2rem;
    color: var(--w4a3b-text);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.w4a3b-footer-link:hover {
    opacity: 1;
    color: var(--w4a3b-highlight);
}

.w4a3b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.w4a3b-partner-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w4a3b-partner-logo:hover {
    opacity: 1;
}

.w4a3b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.w4a3b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, var(--w4a3b-card-bg) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--w4a3b-border);
}

.w4a3b-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(--w4a3b-text);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.w4a3b-nav-btn:hover,
.w4a3b-nav-btn-active {
    opacity: 1;
    color: var(--w4a3b-highlight);
    transform: scale(1.1);
}

.w4a3b-nav-btn-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.w4a3b-nav-btn-text {
    font-size: 11px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w4a3b-bottom-nav {
        display: none;
    }

    .w4a3b-main {
        padding-bottom: 2rem;
    }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
    .w4a3b-main {
        padding-bottom: 80px;
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    .w4a3b-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .w4a3b-game-name {
        font-size: 1rem;
    }
}

/* Promo Button Large */
.w4a3b-promo-btn-large {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--w4a3b-gradient);
    color: var(--w4a3b-text);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem 0;
}

.w4a3b-promo-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

/* List Styles */
.w4a3b-list {
    list-style: none;
    padding-left: 0;
}

.w4a3b-list-item {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
    line-height: 1.5;
}

.w4a3b-list-item::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--w4a3b-highlight);
    font-weight: bold;
}

/* RTP Section */
.w4a3b-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w4a3b-rtp-item {
    background: rgba(173, 20, 87, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.w4a3b-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4a3b-highlight);
}

.w4a3b-rtp-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Accordion */
.w4a3b-faq-item {
    background: var(--w4a3b-card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.w4a3b-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4a3b-secondary);
    cursor: pointer;
}

.w4a3b-faq-answer {
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--w4a3b-border);
}
