/**
 * Okfun App - Main Stylesheet
 * Website: okfunapp.club
 * Prefix: w5737-
 * Colors: #2C2C2C | #FFEBCD | #CD853F | #8B7355 | #DEB887
 */

/* ===== CSS Variables ===== */
:root {
    --w5737-primary: #CD853F;
    --w5737-secondary: #8B7355;
    --w5737-accent: #DEB887;
    --w5737-bg-dark: #2C2C2C;
    --w5737-bg-light: #FFEBCD;
    --w5737-text-light: #FFEBCD;
    --w5737-text-dark: #2C2C2C;
    --w5737-gradient: linear-gradient(135deg, #CD853F 0%, #8B7355 100%);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--w5737-bg-dark);
    color: var(--w5737-text-light);
    line-height: 1.6;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
.w5737-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--w5737-bg-dark);
    padding: 12px 16px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--w5737-primary);
    transition: all 0.3s ease;
}

.w5737-header.w5737-scrolled {
    background: rgba(44, 44, 44, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.w5737-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5737-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.w5737-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--w5737-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w5737-header-actions {
    display: flex;
    gap: 10px;
}

.w5737-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w5737-btn-login {
    background: transparent;
    border: 2px solid var(--w5737-primary);
    color: var(--w5737-primary);
}

.w5737-btn-login:hover {
    background: var(--w5737-primary);
    color: var(--w5737-text-dark);
}

.w5737-btn-register {
    background: var(--w5737-gradient);
    color: var(--w5737-text-light);
}

.w5737-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.4);
}

.w5737-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w5737-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ===== Carousel ===== */
.w5737-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 65px;
}

.w5737-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.w5737-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w5737-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w5737-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w5737-dot.w5737-active {
    background: var(--w5737-primary);
    transform: scale(1.2);
}

/* ===== Main Content ===== */
.w5737-main {
    padding: 20px 16px 80px;
}

/* ===== Section Titles ===== */
.w5737-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--w5737-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5737-section-title i {
    color: var(--w5737-accent);
}

/* ===== Hero Section ===== */
.w5737-hero {
    text-align: center;
    padding: 30px 0;
}

.w5737-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--w5737-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.w5737-hero p {
    font-size: 15px;
    color: var(--w5737-accent);
    margin-bottom: 20px;
}

.w5737-hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--w5737-gradient);
    color: var(--w5737-text-light);
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w5737-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

/* ===== Game Tabs ===== */
.w5737-tabs {
    margin-bottom: 20px;
}

.w5737-tab-header {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.w5737-tab-header::-webkit-scrollbar {
    display: none;
}

.w5737-tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--w5737-secondary);
    color: var(--w5737-text-light);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w5737-tab-btn.w5737-active {
    background: var(--w5737-primary);
    color: var(--w5737-text-dark);
}

.w5737-tab-content {
    display: none;
}

.w5737-tab-content.w5737-active {
    display: block;
}

/* ===== Game Grid ===== */
.w5737-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.w5737-game-card {
    background: rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w5737-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(205, 133, 63, 0.3);
}

.w5737-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w5737-game-name {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--w5737-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Features Section ===== */
.w5737-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.w5737-feature-card {
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.3), rgba(44, 44, 44, 0.8));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--w5737-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w5737-feature-card:hover {
    border-color: var(--w5737-primary);
    transform: scale(1.02);
}

.w5737-feature-card i {
    font-size: 36px;
    color: var(--w5737-primary);
    margin-bottom: 10px;
}

.w5737-feature-card h3 {
    font-size: 15px;
    color: var(--w5737-text-light);
    margin-bottom: 5px;
}

.w5737-feature-card p {
    font-size: 12px;
    color: var(--w5737-accent);
}

/* ===== Promo Section ===== */
.w5737-promo {
    background: var(--w5737-gradient);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.w5737-promo h2 {
    font-size: 22px;
    color: var(--w5737-text-light);
    margin-bottom: 10px;
}

.w5737-promo p {
    font-size: 14px;
    color: var(--w5737-bg-light);
    margin-bottom: 15px;
}

/* ===== Why Choose Section ===== */
.w5737-why-choose {
    margin: 30px 0;
}

.w5737-reason {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 12px;
    border-left: 4px solid var(--w5737-primary);
}

.w5737-reason-icon {
    width: 50px;
    height: 50px;
    background: var(--w5737-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w5737-reason-icon i {
    font-size: 24px;
    color: var(--w5737-text-light);
}

.w5737-reason-text h4 {
    font-size: 16px;
    color: var(--w5737-primary);
    margin-bottom: 5px;
}

.w5737-reason-text p {
    font-size: 13px;
    color: var(--w5737-accent);
}

/* ===== Stats Section ===== */
.w5737-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.w5737-stat-item {
    text-align: center;
    padding: 20px 10px;
    background: rgba(205, 133, 63, 0.1);
    border-radius: 12px;
}

.w5737-stat-item .w5737-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--w5737-primary);
}

.w5737-stat-item .w5737-label {
    font-size: 12px;
    color: var(--w5737-accent);
    margin-top: 5px;
}

/* ===== Footer ===== */
.w5737-footer {
    background: rgba(44, 44, 44, 0.95);
    padding: 30px 16px;
    border-top: 1px solid var(--w5737-secondary);
}

.w5737-footer-partners {
    text-align: center;
    margin-bottom: 25px;
}

.w5737-footer-partners h4 {
    font-size: 14px;
    color: var(--w5737-accent);
    margin-bottom: 15px;
}

.w5737-partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.w5737-partner-logos img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w5737-partner-logos img:hover {
    opacity: 1;
}

.w5737-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.w5737-footer-col h5 {
    font-size: 14px;
    color: var(--w5737-primary);
    margin-bottom: 12px;
}

.w5737-footer-col a {
    display: block;
    font-size: 12px;
    color: var(--w5737-accent);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.w5737-footer-col a:hover {
    color: var(--w5737-primary);
}

.w5737-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--w5737-secondary);
    padding-top: 20px;
    border-top: 1px solid rgba(139, 115, 85, 0.3);
}

/* ===== Mobile Menu ===== */
.w5737-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--w5737-bg-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.w5737-mobile-menu.w5737-active {
    left: 0;
}

.w5737-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;
}

.w5737-menu-overlay.w5737-active {
    opacity: 1;
    visibility: visible;
}

.w5737-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--w5737-secondary);
}

.w5737-menu-close {
    background: none;
    border: none;
    color: var(--w5737-primary);
    font-size: 28px;
    cursor: pointer;
}

.w5737-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 15px;
    color: var(--w5737-text-light);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    transition: all 0.3s ease;
}

.w5737-menu-links a:hover {
    color: var(--w5737-primary);
    padding-left: 10px;
}

.w5737-menu-links a i {
    width: 24px;
    color: var(--w5737-accent);
}

/* ===== Bottom Navigation ===== */
.w5737-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 64px;
    background: var(--w5737-bg-dark);
    border-top: 2px solid var(--w5737-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 5px 0;
}

.w5737-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 5px;
}

.w5737-nav-item:hover {
    background: rgba(205, 133, 63, 0.15);
}

.w5737-nav-item i {
    font-size: 24px;
    color: var(--w5737-accent);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.w5737-nav-item:hover i,
.w5737-nav-item.w5737-active i {
    color: var(--w5737-primary);
    transform: scale(1.1);
}

.w5737-nav-item span {
    font-size: 10px;
    color: var(--w5737-accent);
    font-weight: 500;
}

.w5737-nav-item:hover span,
.w5737-nav-item.w5737-active span {
    color: var(--w5737-primary);
}

/* ===== Desktop Styles ===== */
@media (min-width: 769px) {
    .w5737-bottom-nav {
        display: none;
    }

    .w5737-main {
        padding-bottom: 30px;
    }
}

/* ===== Internal Links ===== */
.w5737-internal-link {
    color: var(--w5737-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.w5737-internal-link:hover {
    color: var(--w5737-accent);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.w5737-animate {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== Page Content Styles ===== */
.w5737-page-content {
    padding: 80px 16px 20px;
}

.w5737-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--w5737-primary);
    margin-bottom: 20px;
    text-align: center;
}

.w5737-content-section {
    margin-bottom: 25px;
}

.w5737-content-section h2 {
    font-size: 18px;
    color: var(--w5737-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5737-content-section p {
    font-size: 14px;
    color: var(--w5737-accent);
    line-height: 1.8;
    margin-bottom: 15px;
}

.w5737-content-section ul,
.w5737-content-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.w5737-content-section li {
    font-size: 14px;
    color: var(--w5737-accent);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== FAQ Styles ===== */
.w5737-faq-item {
    background: rgba(139, 115, 85, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.w5737-faq-question {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--w5737-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w5737-faq-answer {
    padding: 0 15px 15px;
    font-size: 13px;
    color: var(--w5737-accent);
    line-height: 1.7;
}
