/**
 * Playtime APK - Theme Stylesheet
 * Class Prefix: s7ba-
 * Mobile-first responsive design
 * Color Palette: #F5DEB3 (wheat) | #FDF5E6 (old lace) | #BDB76B (dark khaki) | #333333 (dark) | #FFEBCD (blanched almond)
 */

/* CSS Variables */
:root {
    --s7ba-primary: #F5DEB3;
    --s7ba-secondary: #BDB76B;
    --s7ba-accent: #FFEBCD;
    --s7ba-bg-dark: #333333;
    --s7ba-bg-light: #FDF5E6;
    --s7ba-text-dark: #333333;
    --s7ba-text-light: #FDF5E6;
    --s7ba-border: #BDB76B;
    --s7ba-shadow: rgba(0, 0, 0, 0.2);
    --s7ba-gradient: linear-gradient(135deg, #F5DEB3 0%, #FFEBCD 100%);
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s7ba-text-dark);
    background-color: var(--s7ba-bg-light);
    min-height: 100vh;
}

/* Container */
.s7ba-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s7ba-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
.s7ba-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--s7ba-bg-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.s7ba-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--s7ba-bg-dark);
    margin-bottom: 1.2rem;
}

.s7ba-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s7ba-bg-dark);
    margin-bottom: 1rem;
}

.s7ba-text {
    font-size: 1.4rem;
    color: var(--s7ba-text-dark);
    margin-bottom: 1rem;
}

/* Header */
.s7ba-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--s7ba-bg-dark) 0%, #4a4a4a 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--s7ba-shadow);
    transition: all 0.3s ease;
}

.s7ba-header-scrolled {
    padding: 0.8rem 1.5rem;
    background: rgba(51, 51, 51, 0.98);
}

.s7ba-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s7ba-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s7ba-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s7ba-primary);
}

.s7ba-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.s7ba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.s7ba-btn-primary {
    background: var(--s7ba-secondary);
    color: var(--s7ba-bg-dark);
}

.s7ba-btn-primary:hover {
    background: #c7c45e;
    transform: translateY(-2px);
}

.s7ba-btn-secondary {
    background: var(--s7ba-primary);
    color: var(--s7ba-bg-dark);
}

.s7ba-btn-secondary:hover {
    background: #e8d4a6;
    transform: translateY(-2px);
}

.s7ba-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--s7ba-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s7ba-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s7ba-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.s7ba-menu-open {
    right: 0;
}

.s7ba-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s7ba-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.s7ba-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s7ba-border);
}

.s7ba-menu-close {
    background: transparent;
    border: none;
    color: var(--s7ba-primary);
    font-size: 2rem;
    cursor: pointer;
}

.s7ba-nav-list {
    list-style: none;
}

.s7ba-nav-item {
    margin-bottom: 0.5rem;
}

.s7ba-nav-link {
    display: block;
    padding: 1rem;
    color: var(--s7ba-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.s7ba-nav-link:hover {
    background: rgba(245, 222, 179, 0.1);
    color: var(--s7ba-primary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s7ba-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.s7ba-slides {
    position: relative;
    width: 100%;
}

.s7ba-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.s7ba-slide.s7ba-active {
    display: block;
}

.s7ba-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.s7ba-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s7ba-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s7ba-dot.s7ba-active {
    background: var(--s7ba-primary);
    transform: scale(1.2);
}

/* Game Section */
.s7ba-section {
    padding: 2rem 1.5rem;
}

.s7ba-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s7ba-bg-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--s7ba-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s7ba-section-title i {
    color: var(--s7ba-secondary);
}

/* Game Grid */
.s7ba-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s7ba-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s7ba-game-item:hover {
    transform: translateY(-5px);
}

.s7ba-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 8px var(--s7ba-shadow);
    background: var(--s7ba-accent);
}

.s7ba-game-name {
    font-size: 1.1rem;
    color: var(--s7ba-text-dark);
    margin-top: 0.5rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Card */
.s7ba-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--s7ba-shadow);
}

.s7ba-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s7ba-bg-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s7ba-card-content {
    font-size: 1.4rem;
    color: var(--s7ba-text-dark);
    line-height: 1.6;
}

/* Promo Link Styles */
.s7ba-promo-link {
    color: var(--s7ba-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s7ba-promo-link:hover {
    color: #a8a540;
    text-decoration: underline;
}

.s7ba-promo-btn {
    display: inline-block;
    background: var(--s7ba-secondary);
    color: var(--s7ba-bg-dark);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.s7ba-promo-btn:hover {
    background: #c7c45e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--s7ba-shadow);
}

/* Footer */
.s7ba-footer {
    background: var(--s7ba-bg-dark);
    color: var(--s7ba-text-light);
    padding: 2rem 1.5rem 3rem;
}

.s7ba-footer-desc {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.s7ba-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s7ba-footer-link {
    color: var(--s7ba-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.s7ba-footer-link:hover {
    color: var(--s7ba-secondary);
}

.s7ba-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.s7ba-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s7ba-partner-logo:hover {
    opacity: 1;
}

.s7ba-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(253, 245, 230, 0.7);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(189, 183, 107, 0.3);
}

/* Bottom Navigation */
.s7ba-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #4a4a4a 0%, var(--s7ba-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--s7ba-shadow);
}

.s7ba-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--s7ba-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.s7ba-nav-btn i,
.s7ba-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.s7ba-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.s7ba-nav-btn:hover,
.s7ba-nav-btn.active {
    color: var(--s7ba-primary);
    transform: scale(1.1);
}

.s7ba-nav-btn:hover i,
.s7ba-nav-btn.active i {
    transform: translateY(-2px);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s7ba-bottom-nav {
        display: none;
    }

    .s7ba-menu-toggle {
        display: block;
    }
}

/* Utility Classes */
.s7ba-text-center {
    text-align: center;
}

.s7ba-mt-1 {
    margin-top: 1rem;
}

.s7ba-mt-2 {
    margin-top: 2rem;
}

.s7ba-mb-1 {
    margin-bottom: 1rem;
}

.s7ba-mb-2 {
    margin-bottom: 2rem;
}

.s7ba-hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 430px) {
    .s7ba-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .s7ba-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .s7ba-container {
        max-width: 100%;
    }

    .s7ba-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Animation */
@keyframes s7ba-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s7ba-animate {
    animation: s7ba-fade-in 0.5s ease forwards;
}

/* RTP Stats Component */
.s7ba-rtp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.s7ba-rtp-item {
    text-align: center;
    padding: 1rem;
    background: var(--s7ba-accent);
    border-radius: 8px;
}

.s7ba-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s7ba-secondary);
}

.s7ba-rtp-label {
    font-size: 1.1rem;
    color: var(--s7ba-text-dark);
    margin-top: 0.3rem;
}

/* Features List */
.s7ba-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.s7ba-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.s7ba-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--s7ba-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s7ba-feature-icon i {
    font-size: 20px;
    color: var(--s7ba-bg-dark);
}

.s7ba-feature-text h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.s7ba-feature-text p {
    font-size: 1.2rem;
    color: #666;
}

/* FAQ Styles */
.s7ba-faq-item {
    border-bottom: 1px solid var(--s7ba-border);
    padding: 1.2rem 0;
}

.s7ba-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s7ba-bg-dark);
    margin-bottom: 0.5rem;
}

.s7ba-faq-answer {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.6;
}
