/**
 * Nusta Website CSS Theme
 * Prefix: wfbf1-
 * Colors: #1A1A2E | #BAFFC9 | #DA70D6 | #BA55D3 | #9370DB
 */

/* CSS Variables */
:root {
    --wfbf1-primary: #DA70D6;
    --wfbf1-secondary: #BA55D3;
    --wfbf1-accent: #9370DB;
    --wfbf1-bg-dark: #1A1A2E;
    --wfbf1-bg-light: #252542;
    --wfbf1-text-light: #BAFFC9;
    --wfbf1-text-white: #FFFFFF;
    --wfbf1-gradient: linear-gradient(135deg, #DA70D6 0%, #BA55D3 50%, #9370DB 100%);
    --wfbf1-shadow: 0 4px 20px rgba(218, 112, 214, 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: var(--wfbf1-bg-dark);
    color: var(--wfbf1-text-white);
    line-height: 1.5rem;
    overflow-x: hidden;
}

/* Container */
.wfbf1-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.wfbf1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.wfbf1-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--wfbf1-shadow);
}

.wfbf1-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.wfbf1-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.wfbf1-logo img {
    width: 28px;
    height: 28px;
}

.wfbf1-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--wfbf1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wfbf1-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wfbf1-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.wfbf1-btn-login {
    background: transparent;
    color: var(--wfbf1-text-light);
    border: 1px solid var(--wfbf1-primary);
}

.wfbf1-btn-login:hover {
    background: var(--wfbf1-primary);
    color: var(--wfbf1-text-white);
}

.wfbf1-btn-register {
    background: var(--wfbf1-gradient);
    color: var(--wfbf1-text-white);
}

.wfbf1-btn-register:hover {
    transform: scale(1.05);
    box-shadow: var(--wfbf1-shadow);
}

.wfbf1-menu-btn {
    background: transparent;
    border: none;
    color: var(--wfbf1-text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.wfbf1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wfbf1-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.wfbf1-menu-active {
    right: 0;
}

.wfbf1-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;
}

.wfbf1-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wfbf1-close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--wfbf1-text-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.wfbf1-menu-links {
    margin-top: 3rem;
    list-style: none;
}

.wfbf1-menu-links li {
    margin-bottom: 1.5rem;
}

.wfbf1-menu-links a {
    color: var(--wfbf1-text-white);
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.wfbf1-menu-links a:hover {
    background: var(--wfbf1-bg-light);
    color: var(--wfbf1-primary);
}

/* Main Content */
.wfbf1-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Hero Carousel */
.wfbf1-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.wfbf1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.wfbf1-slide-active {
    opacity: 1;
}

.wfbf1-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.wfbf1-section {
    padding: 2rem 0;
}

.wfbf1-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--wfbf1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wfbf1-section-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--wfbf1-text-light);
}

/* Game Grid */
.wfbf1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.wfbf1-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wfbf1-game-item:hover {
    transform: scale(1.05);
}

.wfbf1-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
}

.wfbf1-game-name {
    font-size: 1.1rem;
    color: var(--wfbf1-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.wfbf1-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--wfbf1-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Cards */
.wfbf1-card {
    background: var(--wfbf1-bg-light);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wfbf1-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wfbf1-primary);
}

/* Promo Link */
.wfbf1-promo-link {
    color: var(--wfbf1-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.wfbf1-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.wfbf1-footer {
    background: var(--wfbf1-bg-light);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.wfbf1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wfbf1-footer-links a {
    color: var(--wfbf1-text-light);
    text-decoration: none;
    font-size: 1.2rem;
}

.wfbf1-footer-links a:hover {
    color: var(--wfbf1-primary);
}

.wfbf1-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.wfbf1-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(30%);
}

.wfbf1-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--wfbf1-text-light);
}

/* Bottom Navigation */
.wfbf1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--wfbf1-bg-dark);
    border-top: 1px solid rgba(218, 112, 214, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.wfbf1-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;
    text-decoration: none;
}

.wfbf1-nav-item:hover {
    transform: scale(1.1);
}

.wfbf1-nav-item.active {
    color: var(--wfbf1-primary);
}

.wfbf1-nav-item i,
.wfbf1-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.wfbf1-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.wfbf1-nav-item span {
    font-size: 10px;
    color: var(--wfbf1-text-light);
}

.wfbf1-nav-item.active span {
    color: var(--wfbf1-primary);
}

/* Responsive */
@media (min-width: 769px) {
    .wfbf1-bottom-nav {
        display: none;
    }

    .wfbf1-footer {
        padding-bottom: 2rem;
    }

    .wfbf1-container {
        max-width: 768px;
    }

    .wfbf1-header-inner {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .wfbf1-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.wfbf1-text-center {
    text-align: center;
}

.wfbf1-mb-1 {
    margin-bottom: 1rem;
}

.wfbf1-mb-2 {
    margin-bottom: 2rem;
}

.wfbf1-mt-2 {
    margin-top: 2rem;
}

/* List Styles */
.wfbf1-list {
    list-style: none;
    padding: 0;
}

.wfbf1-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
}

.wfbf1-list li:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.wfbf1-faq-item {
    margin-bottom: 1rem;
}

.wfbf1-faq-question {
    font-weight: 600;
    color: var(--wfbf1-primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.wfbf1-faq-answer {
    color: var(--wfbf1-text-light);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Steps List */
.wfbf1-steps {
    counter-reset: step;
    list-style: none;
}

.wfbf1-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.wfbf1-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--wfbf1-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
