/**
 * okfun app - Main Stylesheet
 * Prefix: sd9c-
 * Website: okfunapp.click
 */

/* CSS Variables */
:root {
    --sd9c-primary: #36454F;
    --sd9c-secondary: #2C3E50;
    --sd9c-accent: #E74C3C;
    --sd9c-bg-dark: #333333;
    --sd9c-bg-darker: #1a1a1a;
    --sd9c-text-light: #ffffff;
    --sd9c-text-muted: #5D5D5D;
    --sd9c-gold: #F1C40F;
    --sd9c-success: #27AE60;
    --sd9c-gradient: linear-gradient(135deg, #36454F 0%, #2C3E50 100%);
    --sd9c-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --sd9c-radius: 8px;
    --sd9c-radius-lg: 12px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sd9c-bg-dark);
    color: var(--sd9c-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

a {
    color: var(--sd9c-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* Container */
.sd9c-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.sd9c-wrapper {
    padding-top: 6rem;
}

/* Header */
.sd9c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 6rem;
    background: var(--sd9c-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--sd9c-shadow);
    transition: all 0.3s ease;
}

.sd9c-header-scrolled {
    background: rgba(44, 62, 80, 0.98);
}

.sd9c-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sd9c-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.5rem;
}

.sd9c-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sd9c-text-light);
}

.sd9c-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.sd9c-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--sd9c-radius);
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.sd9c-btn-primary {
    background: var(--sd9c-accent);
    color: var(--sd9c-text-light);
}

.sd9c-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.sd9c-btn-secondary {
    background: transparent;
    color: var(--sd9c-text-light);
    border: 2px solid var(--sd9c-gold);
}

.sd9c-btn-secondary:hover {
    background: var(--sd9c-gold);
    color: var(--sd9c-bg-dark);
}

.sd9c-menu-toggle {
    background: transparent;
    border: none;
    color: var(--sd9c-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sd9c-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--sd9c-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sd9c-menu-active {
    right: 0;
}

.sd9c-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;
}

.sd9c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sd9c-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sd9c-primary);
}

.sd9c-menu-close {
    background: transparent;
    border: none;
    color: var(--sd9c-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.sd9c-nav-links {
    list-style: none;
}

.sd9c-nav-links li {
    margin-bottom: 1rem;
}

.sd9c-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--sd9c-text-light);
    font-size: 1.5rem;
    border-radius: var(--sd9c-radius);
    transition: all 0.3s ease;
}

.sd9c-nav-links a:hover {
    background: var(--sd9c-primary);
    color: var(--sd9c-gold);
}

/* Carousel */
.sd9c-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    margin-top: 0;
}

.sd9c-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.sd9c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    cursor: pointer;
}

.sd9c-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd9c-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.sd9c-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd9c-dot-active {
    background: var(--sd9c-gold);
    transform: scale(1.2);
}

/* Sections */
.sd9c-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
}

.sd9c-section-title {
    font-size: 2rem;
    color: var(--sd9c-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.sd9c-section-title::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.3rem;
    background: var(--sd9c-accent);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.sd9c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sd9c-game-card {
    background: var(--sd9c-secondary);
    border-radius: var(--sd9c-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd9c-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.sd9c-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.sd9c-game-name {
    font-size: 1.1rem;
    color: var(--sd9c-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.sd9c-category {
    margin-bottom: 2rem;
}

.sd9c-category-title {
    font-size: 1.6rem;
    color: var(--sd9c-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sd9c-category-title i {
    font-size: 2rem;
}

/* Features Grid */
.sd9c-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sd9c-feature-item {
    background: var(--sd9c-secondary);
    padding: 1.5rem;
    border-radius: var(--sd9c-radius-lg);
    text-align: center;
}

.sd9c-feature-item i {
    font-size: 3rem;
    color: var(--sd9c-gold);
    margin-bottom: 1rem;
}

.sd9c-feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sd9c-feature-item p {
    font-size: 1.2rem;
    color: #999;
}

/* Promo Links */
.sd9c-promo-link {
    color: var(--sd9c-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd9c-promo-link:hover {
    color: var(--sd9c-accent);
    text-decoration: underline;
}

.sd9c-promo-btn {
    display: inline-block;
    background: var(--sd9c-accent);
    color: var(--sd9c-text-light);
    padding: 1rem 2rem;
    border-radius: var(--sd9c-radius);
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sd9c-promo-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Bottom Navigation */
.sd9c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 6rem;
    background: var(--sd9c-gradient);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.sd9c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    background: transparent;
    border: none;
    color: var(--sd9c-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd9c-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.sd9c-nav-btn span {
    font-size: 1rem;
}

.sd9c-nav-btn:hover,
.sd9c-nav-btn.sd9c-active {
    color: var(--sd9c-gold);
    transform: scale(1.1);
}

/* Footer */
.sd9c-footer {
    background: var(--sd9c-bg-darker);
    padding: 2rem 1.5rem 8rem;
    margin-top: 2rem;
}

.sd9c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sd9c-footer-links a {
    color: #999;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sd9c-footer-links a:hover {
    color: var(--sd9c-gold);
}

.sd9c-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sd9c-partners img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sd9c-partners img:hover {
    opacity: 1;
}

.sd9c-copyright {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
}

/* Mobile Padding */
@media (max-width: 768px) {
    main, .sd9c-main-content {
        padding-bottom: 8rem;
    }
}

/* Desktop - Hide bottom nav */
@media (min-width: 769px) {
    .sd9c-bottom-nav {
        display: none;
    }
}

/* FAQ Section */
.sd9c-faq-item {
    background: var(--sd9c-secondary);
    border-radius: var(--sd9c-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sd9c-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--sd9c-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sd9c-faq-question i {
    color: var(--sd9c-gold);
}

.sd9c-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: #999;
    font-size: 1.3rem;
}

/* RTP Table */
.sd9c-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.sd9c-rtp-table th,
.sd9c-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sd9c-primary);
}

.sd9c-rtp-table th {
    background: var(--sd9c-secondary);
    color: var(--sd9c-gold);
}

.sd9c-rtp-table td {
    color: #ccc;
}

/* Utility Classes */
.sd9c-text-center { text-align: center; }
.sd9c-text-gold { color: var(--sd9c-gold); }
.sd9c-text-accent { color: var(--sd9c-accent); }
.sd9c-mb-1 { margin-bottom: 1rem; }
.sd9c-mb-2 { margin-bottom: 2rem; }
.sd9c-mt-2 { margin-top: 2rem; }

/* Animation */
@keyframes sd9c-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sd9c-animate-pulse {
    animation: sd9c-pulse 2s infinite;
}
