/**
 * Aaajili Login - Main Stylesheet
 * Version: 1.0.0
 * All classes use w723f- prefix for namespace isolation
 * Color Palette: #F4A460 | #D2691E | #48D1CC | #8B4513 | #0E1621
 */

/* CSS Variables */
:root {
    --w723f-primary: #F4A460;
    --w723f-secondary: #D2691E;
    --w723f-accent: #48D1CC;
    --w723f-dark: #8B4513;
    --w723f-bg: #0E1621;
    --w723f-bg-light: #162231;
    --w723f-text: #F5F5F5;
    --w723f-text-muted: #B8C4CE;
    --w723f-border: #2A3B4D;
    --w723f-success: #4CAF50;
    --w723f-warning: #FF9800;
    --w723f-gradient: linear-gradient(135deg, #F4A460 0%, #D2691E 100%);
    --w723f-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w723f-bg);
    color: var(--w723f-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--w723f-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
p { font-size: 1.4rem; margin-bottom: 1rem; }

a {
    color: var(--w723f-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--w723f-primary); }

/* Container */
.w723f-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Header */
.w723f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--w723f-bg) 0%, rgba(14, 22, 33, 0.95) 100%);
    padding: 1rem 1.5rem;
    z-index: 1000;
    border-bottom: 1px solid var(--w723f-border);
    transition: all 0.3s ease;
}

.w723f-header.w723f-scrolled {
    background: rgba(14, 22, 33, 0.98);
    box-shadow: var(--w723f-shadow);
}

.w723f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w723f-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w723f-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.w723f-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w723f-primary);
}

.w723f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w723f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.w723f-btn-primary {
    background: var(--w723f-gradient);
    color: #fff;
}

.w723f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}

.w723f-btn-secondary {
    background: transparent;
    color: var(--w723f-primary);
    border: 2px solid var(--w723f-primary);
}

.w723f-btn-secondary:hover {
    background: var(--w723f-primary);
    color: var(--w723f-bg);
}

.w723f-menu-btn {
    background: transparent;
    border: none;
    color: var(--w723f-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w723f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w723f-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w723f-mobile-menu.x723f-active {
    right: 0;
}

.w723f-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;
}

.w723f-menu-overlay.x723f-active {
    opacity: 1;
    visibility: visible;
}

.w723f-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--w723f-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w723f-menu-links {
    margin-top: 3rem;
    list-style: none;
}

.w723f-menu-links li {
    margin-bottom: 0.5rem;
}

.w723f-menu-links a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--w723f-text);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w723f-menu-links a:hover {
    background: var(--w723f-primary);
    color: var(--w723f-bg);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.w723f-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.w723f-carousel-slide {
    display: none;
    cursor: pointer;
}

.w723f-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.w723f-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w723f-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w723f-carousel-dot.x723f-active {
    background: var(--w723f-primary);
    width: 24px;
    border-radius: 5px;
}

/* Section */
.w723f-section {
    padding: 2rem 1.5rem;
}

.w723f-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.w723f-section-title h2 {
    font-size: 1.8rem;
    color: var(--w723f-primary);
    margin: 0;
}

.w723f-section-title i {
    font-size: 2rem;
    color: var(--w723f-accent);
}

/* Game Grid */
.w723f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.w723f-game-card {
    background: var(--w723f-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w723f-border);
}

.w723f-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(244, 164, 96, 0.2);
    border-color: var(--w723f-primary);
}

.w723f-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w723f-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--w723f-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

/* Category Tabs */
.w723f-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--w723f-primary);
}

.w723f-category-title i {
    font-size: 1.8rem;
    color: var(--w723f-accent);
}

.w723f-category-title span {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w723f-primary);
}

/* Feature Cards */
.w723f-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.w723f-feature-card {
    background: var(--w723f-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--w723f-border);
    transition: all 0.3s ease;
}

.w723f-feature-card:hover {
    border-color: var(--w723f-primary);
    transform: translateY(-3px);
}

.w723f-feature-card i {
    font-size: 2.8rem;
    color: var(--w723f-accent);
    margin-bottom: 0.8rem;
}

.w723f-feature-card h4 {
    font-size: 1.4rem;
    color: var(--w723f-primary);
    margin-bottom: 0.5rem;
}

.w723f-feature-card p {
    font-size: 1.2rem;
    color: var(--w723f-text-muted);
    margin: 0;
}

/* FAQ Section */
.w723f-faq-item {
    background: var(--w723f-bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--w723f-border);
}

.w723f-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w723f-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w723f-faq-question i {
    color: var(--w723f-accent);
}

.w723f-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--w723f-text-muted);
    line-height: 1.6;
}

/* Promo Banner */
.w723f-promo-banner {
    background: var(--w723f-gradient);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}

.w723f-promo-banner h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.w723f-promo-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* RTP Stats */
.w723f-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w723f-rtp-item {
    background: var(--w723f-bg-light);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--w723f-border);
}

.w723f-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w723f-accent);
}

.w723f-rtp-label {
    font-size: 1.2rem;
    color: var(--w723f-text-muted);
}

/* Footer */
.w723f-footer {
    background: var(--w723f-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--w723f-border);
}

.w723f-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.w723f-footer-links a {
    font-size: 1.2rem;
    color: var(--w723f-text-muted);
    text-align: center;
}

.w723f-footer-links a:hover {
    color: var(--w723f-primary);
}

.w723f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.w723f-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w723f-partners img:hover {
    opacity: 1;
}

.w723f-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w723f-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--w723f-border);
}

/* Bottom Navigation */
.w723f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--w723f-bg-light) 0%, var(--w723f-bg) 100%);
    border-top: 1px solid var(--w723f-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    height: 64px;
}

@media (min-width: 769px) {
    .w723f-bottom-nav {
        display: none;
    }
}

.w723f-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--w723f-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.w723f-bottom-nav-item:hover,
.w723f-bottom-nav-item.w723f-active {
    color: var(--w723f-primary);
    transform: scale(1.1);
}

.w723f-bottom-nav-item i {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.w723f-bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Text Links */
.w723f-text-link {
    color: var(--w723f-accent);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w723f-text-link:hover {
    color: var(--w723f-primary);
    text-decoration: underline;
}

/* Promotional Text */
.w723f-promo-text {
    font-weight: 600;
    color: var(--w723f-primary);
}

/* Info Box */
.w723f-info-box {
    background: var(--w723f-bg-light);
    border-left: 4px solid var(--w723f-accent);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}

.w723f-info-box h4 {
    color: var(--w723f-accent);
    margin-bottom: 0.5rem;
}

/* Steps List */
.w723f-steps {
    counter-reset: step;
}

.w723f-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.w723f-step::before {
    counter-increment: step;
    content: counter(step);
    min-width: 28px;
    height: 28px;
    background: var(--w723f-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* Utility Classes */
.w723f-text-center { text-align: center; }
.w723f-mt-2 { margin-top: 2rem; }
.w723f-mb-2 { margin-bottom: 2rem; }
.w723f-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Desktop Styles */
@media (min-width: 769px) {
    body {
        max-width: 100%;
    }

    .w723f-header {
        max-width: 100%;
    }

    .w723f-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w723f-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .w723f-container {
        max-width: 1200px;
    }
}
