/**
 * Playtime App - Main Stylesheet
 * Prefix: sfba-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --sfba-primary: #FFB347;
    --sfba-secondary: #20B2AA;
    --sfba-accent: #FF8000;
    --sfba-bg-dark: #1B263B;
    --sfba-bg-light: #F5F5F5;
    --sfba-text-light: #F5F5F5;
    --sfba-text-dark: #1B263B;
    --sfba-border: #D3D3D3;
    --sfba-gradient: linear-gradient(135deg, #FFB347 0%, #FF8000 100%);
    --sfba-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --sfba-radius: 12px;
    --sfba-radius-sm: 8px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sfba-bg-dark);
    color: var(--sfba-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.sfba-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.sfba-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--sfba-bg-dark) 0%, rgba(27, 38, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 179, 71, 0.2);
}

.sfba-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.sfba-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sfba-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sfba-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sfba-primary);
}

.sfba-header-btns {
    display: flex;
    gap: 0.8rem;
}

.sfba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--sfba-radius-sm);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.sfba-btn-primary {
    background: var(--sfba-gradient);
    color: var(--sfba-text-dark);
}

.sfba-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.sfba-btn-outline {
    background: transparent;
    color: var(--sfba-primary);
    border: 2px solid var(--sfba-primary);
}

.sfba-btn-outline:hover {
    background: var(--sfba-primary);
    color: var(--sfba-text-dark);
}

.sfba-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--sfba-primary);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.sfba-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sfba-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 179, 71, 0.2);
}

.sfba-menu-active {
    right: 0 !important;
}

.sfba-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;
}

.sfba-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sfba-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 179, 71, 0.2);
}

.sfba-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--sfba-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.sfba-menu-nav {
    list-style: none;
}

.sfba-menu-nav li {
    margin-bottom: 0.5rem;
}

.sfba-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--sfba-text-light);
    font-size: 1.4rem;
    border-radius: var(--sfba-radius-sm);
    transition: all 0.3s ease;
}

.sfba-menu-nav a:hover {
    background: rgba(255, 179, 71, 0.1);
    color: var(--sfba-primary);
}

/* Main Content */
.sfba-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Hero Slider */
.sfba-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--sfba-radius);
    margin-bottom: 2rem;
}

.sfba-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.sfba-slide-active {
    opacity: 1;
}

.sfba-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfba-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(27, 38, 59, 0.9));
}

.sfba-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sfba-primary);
    margin-bottom: 0.5rem;
}

.sfba-slide-desc {
    font-size: 1.2rem;
    color: var(--sfba-text-light);
}

/* Section Styles */
.sfba-section {
    margin-bottom: 3rem;
}

.sfba-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sfba-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--sfba-primary);
}

.sfba-section-subtitle {
    font-size: 1.4rem;
    color: var(--sfba-text-light);
    margin-bottom: 1rem;
}

/* Game Grid */
.sfba-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sfba-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sfba-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfba-game-card:hover {
    background: rgba(255, 179, 71, 0.1);
    transform: translateY(-3px);
}

.sfba-game-card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.sfba-game-card span {
    font-size: 1rem;
    text-align: center;
    color: var(--sfba-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Badge */
.sfba-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--sfba-gradient);
    color: var(--sfba-text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Content Box */
.sfba-content-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sfba-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sfba-content-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.sfba-content-box p:last-child {
    margin-bottom: 0;
}

/* Feature List */
.sfba-feature-list {
    list-style: none;
}

.sfba-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sfba-feature-list li:last-child {
    border-bottom: none;
}

.sfba-feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sfba-gradient);
    border-radius: 50%;
    color: var(--sfba-text-dark);
    flex-shrink: 0;
}

/* Promo Link */
.sfba-promo-link {
    color: var(--sfba-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sfba-promo-link:hover {
    color: var(--sfba-accent);
    text-decoration: underline;
}

/* Footer */
.sfba-footer {
    background: rgba(27, 38, 59, 0.95);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 179, 71, 0.2);
}

.sfba-footer-desc {
    font-size: 1.2rem;
    color: var(--sfba-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.sfba-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sfba-footer-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 179, 71, 0.1);
    color: var(--sfba-primary);
    border-radius: var(--sfba-radius-sm);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sfba-footer-link:hover {
    background: var(--sfba-primary);
    color: var(--sfba-text-dark);
}

.sfba-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sfba-footer-nav a {
    color: var(--sfba-text-light);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sfba-footer-nav a:hover {
    opacity: 1;
    color: var(--sfba-primary);
}

.sfba-copyright {
    font-size: 1.1rem;
    color: var(--sfba-text-light);
    opacity: 0.6;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.sfba-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, var(--sfba-bg-dark) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 179, 71, 0.3);
    padding: 0 0.5rem;
}

.sfba-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;
    color: var(--sfba-text-light);
    opacity: 0.7;
}

.sfba-nav-item:hover,
.sfba-nav-item.sfba-nav-active {
    opacity: 1;
    color: var(--sfba-primary);
}

.sfba-nav-item.sfba-nav-active {
    transform: scale(1.1);
}

.sfba-nav-item i,
.sfba-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.sfba-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Testimonial Card */
.sfba-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sfba-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sfba-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sfba-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sfba-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sfba-text-dark);
    font-weight: 700;
}

.sfba-testimonial-name {
    font-weight: 600;
    color: var(--sfba-primary);
}

.sfba-testimonial-rating {
    color: var(--sfba-accent);
    font-size: 1.2rem;
}

/* Payment Methods */
.sfba-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sfba-payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sfba-radius-sm);
}

.sfba-payment-item i {
    font-size: 2.4rem;
    color: var(--sfba-primary);
    margin-bottom: 0.5rem;
}

.sfba-payment-item span {
    font-size: 1.1rem;
    color: var(--sfba-text-light);
}

/* Winner Showcase */
.sfba-winner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 179, 71, 0.1);
    border-radius: var(--sfba-radius-sm);
    margin-bottom: 0.8rem;
}

.sfba-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sfba-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sfba-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sfba-text-light);
}

.sfba-winner-name {
    font-weight: 600;
    color: var(--sfba-text-light);
}

.sfba-winner-game {
    font-size: 1.1rem;
    color: var(--sfba-text-light);
    opacity: 0.7;
}

.sfba-winner-amount {
    font-weight: 700;
    color: var(--sfba-primary);
    font-size: 1.4rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .sfba-bottom-nav {
        display: none;
    }

    .sfba-main {
        padding-bottom: 2rem;
    }

    .sfba-container {
        max-width: 768px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sfba-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.sfba-text-center {
    text-align: center;
}

.sfba-text-primary {
    color: var(--sfba-primary);
}

.sfba-mb-1 {
    margin-bottom: 1rem;
}

.sfba-mb-2 {
    margin-bottom: 2rem;
}

.sfba-mb-3 {
    margin-bottom: 3rem;
}

.sfba-highlight {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 179, 71, 0.2) 50%, transparent 100%);
}
