/**
 * Megabet Theme Stylesheet
 * Version: 1.0.0
 * Prefix: w90fd-
 * Color Palette: #F5DEB3 | #A0522D | #8FBC8F | #0A0A0A | #8B4513
 */

/* CSS Variables */
:root {
    --w90fd-primary: #A0522D;
    --w90fd-secondary: #8B4513;
    --w90fd-accent: #F5DEB3;
    --w90fd-success: #8FBC8F;
    --w90fd-bg-dark: #0A0A0A;
    --w90fd-bg-card: #1a1a1a;
    --w90fd-text-light: #F5DEB3;
    --w90fd-text-muted: #a8a8a8;
    --w90fd-border: #333333;
    --w90fd-gold: #D4AF37;
}

/* Reset and Base */
* {
    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(--w90fd-bg-dark);
    color: var(--w90fd-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.w90fd-container {
    width: 100%;
    padding: 0 1.2rem;
    margin: 0 auto;
}

.w90fd-wrapper {
    padding: 1.2rem;
}

/* Header */
.w90fd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid var(--w90fd-primary);
    z-index: 1000;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.w90fd-header-scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(160, 82, 45, 0.3);
}

.w90fd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w90fd-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.w90fd-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.w90fd-logo-text {
    color: var(--w90fd-accent);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w90fd-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w90fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
}

.w90fd-btn-primary {
    background: linear-gradient(135deg, var(--w90fd-primary) 0%, var(--w90fd-secondary) 100%);
    color: var(--w90fd-accent);
}

.w90fd-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.4);
}

.w90fd-btn-outline {
    background: transparent;
    border: 1px solid var(--w90fd-primary);
    color: var(--w90fd-accent);
}

.w90fd-btn-outline:hover {
    background: var(--w90fd-primary);
}

.w90fd-menu-toggle {
    background: none;
    border: none;
    color: var(--w90fd-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.w90fd-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w90fd-bg-dark);
    border-left: 1px solid var(--w90fd-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.w90fd-menu-active {
    right: 0;
}

.w90fd-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;
}

.w90fd-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w90fd-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w90fd-border);
}

.w90fd-menu-close {
    background: none;
    border: none;
    color: var(--w90fd-accent);
    font-size: 2.4rem;
    cursor: pointer;
}

.w90fd-menu-nav {
    list-style: none;
}

.w90fd-menu-nav li {
    margin-bottom: 0.8rem;
}

.w90fd-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--w90fd-text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1.4rem;
}

.w90fd-menu-nav a:hover {
    background: rgba(160, 82, 45, 0.2);
    color: var(--w90fd-accent);
}

/* Main Content */
.w90fd-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .w90fd-main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.w90fd-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.w90fd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w90fd-slide-active {
    opacity: 1;
}

.w90fd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.w90fd-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w90fd-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.w90fd-dot-active {
    background: var(--w90fd-accent);
    transform: scale(1.2);
}

/* Section */
.w90fd-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.w90fd-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w90fd-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w90fd-primary);
}

/* Game Grid */
.w90fd-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w90fd-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.w90fd-game-item:hover {
    transform: scale(1.05);
}

.w90fd-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--w90fd-border);
    transition: border-color 0.2s ease;
    object-fit: cover;
}

.w90fd-game-item:hover .w90fd-game-img {
    border-color: var(--w90fd-primary);
}

.w90fd-game-name {
    font-size: 1rem;
    color: var(--w90fd-text-muted);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.w90fd-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.w90fd-category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w90fd-primary);
    border-radius: 8px;
    font-size: 1.6rem;
}

/* Cards */
.w90fd-card {
    background: var(--w90fd-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--w90fd-border);
}

.w90fd-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w90fd-accent);
    margin-bottom: 0.8rem;
}

.w90fd-card-text {
    color: var(--w90fd-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Features Grid */
.w90fd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w90fd-feature-item {
    background: var(--w90fd-bg-card);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--w90fd-border);
}

.w90fd-feature-icon {
    font-size: 2.4rem;
    color: var(--w90fd-primary);
    margin-bottom: 0.5rem;
}

.w90fd-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w90fd-accent);
}

/* Footer */
.w90fd-footer {
    background: #0d0d0d;
    padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--w90fd-primary);
}

.w90fd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w90fd-footer-link {
    color: var(--w90fd-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.w90fd-footer-link:hover {
    color: var(--w90fd-accent);
}

.w90fd-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w90fd-partner-logo {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.w90fd-partner-logo:hover {
    opacity: 1;
}

.w90fd-copyright {
    text-align: center;
    color: var(--w90fd-text-muted);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.w90fd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-top: 1px solid var(--w90fd-primary);
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .w90fd-bottom-nav {
        display: none;
    }
}

.w90fd-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(--w90fd-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.w90fd-nav-btn:hover,
.w90fd-nav-btn.active {
    color: var(--w90fd-accent);
    transform: scale(1.1);
}

.w90fd-nav-btn i,
.w90fd-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.w90fd-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promotional Links */
.w90fd-promo-link {
    color: var(--w90fd-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.w90fd-promo-link:hover {
    text-decoration: underline;
    color: var(--w90fd-accent);
}

.w90fd-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w90fd-gold) 0%, var(--w90fd-primary) 100%);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.w90fd-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* FAQ Accordion */
.w90fd-faq-item {
    background: var(--w90fd-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--w90fd-border);
}

.w90fd-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--w90fd-accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w90fd-faq-answer {
    padding: 0 1rem 1rem;
    color: var(--w90fd-text-muted);
    font-size: 1.3rem;
}

/* RTP Stats */
.w90fd-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.w90fd-rtp-item {
    background: var(--w90fd-bg-card);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--w90fd-border);
}

.w90fd-rtp-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w90fd-success);
}

.w90fd-rtp-label {
    font-size: 1rem;
    color: var(--w90fd-text-muted);
}

/* Responsive */
@media (max-width: 380px) {
    .w90fd-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
