/**
 * 4JL PH - Theme Stylesheet
 * Prefix: s27f-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --s27f-bg: #1A1A2E;
    --s27f-bg-light: #16213E;
    --s27f-primary: #00B8D4;
    --s27f-secondary: #FFEFD5;
    --s27f-text: #F8F8FF;
    --s27f-text-muted: #B8B8D0;
    --s27f-accent: #FF6B6B;
    --s27f-success: #4CAF50;
    --s27f-gradient: linear-gradient(135deg, #00B8D4 0%, #0097A7 100%);
    --s27f-shadow: 0 4px 20px rgba(0, 184, 212, 0.3);
}

/* Reset & Base */
* {
    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(--s27f-bg);
    color: var(--s27f-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.s27f-container {
    width: 100%;
    padding: 0 1.2rem;
    margin: 0 auto;
}

.s27f-wrapper {
    padding: 1rem 1.2rem;
}

/* Header */
.s27f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--s27f-bg-light);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 184, 212, 0.2);
}

.s27f-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.s27f-logo img {
    width: 28px;
    height: 28px;
}

.s27f-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s27f-primary);
}

.s27f-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.s27f-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.s27f-btn-primary {
    background: var(--s27f-gradient);
    color: var(--s27f-text);
}

.s27f-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--s27f-shadow);
}

.s27f-btn-outline {
    background: transparent;
    color: var(--s27f-primary);
    border: 1px solid var(--s27f-primary);
}

.s27f-btn-outline:hover {
    background: var(--s27f-primary);
    color: var(--s27f-bg);
}

.s27f-menu-toggle {
    background: none;
    border: none;
    color: var(--s27f-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.s27f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s27f-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.s27f-mobile-menu.s27f-menu-active {
    right: 0;
}

.s27f-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;
}

.s27f-menu-overlay.s27f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s27f-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 184, 212, 0.2);
}

.s27f-menu-title {
    font-size: 1.8rem;
    color: var(--s27f-primary);
    font-weight: 700;
}

.s27f-menu-close {
    background: none;
    border: none;
    color: var(--s27f-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.s27f-menu-nav {
    list-style: none;
}

.s27f-menu-item {
    margin-bottom: 0.8rem;
}

.s27f-menu-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--s27f-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.s27f-menu-link:hover {
    background: rgba(0, 184, 212, 0.1);
    color: var(--s27f-primary);
}

/* Main Content */
.s27f-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.s27f-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.s27f-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s27f-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.s27f-slide.s27f-slide-active {
    opacity: 1;
    position: relative;
}

.s27f-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
}

.s27f-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.s27f-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.s27f-dot.s27f-dot-active {
    background: var(--s27f-primary);
}

/* Section */
.s27f-section {
    padding: 1.5rem 0;
}

.s27f-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s27f-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s27f-primary);
}

/* Game Grid */
.s27f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s27f-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s27f-game-item:hover {
    transform: scale(1.05);
}

.s27f-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.s27f-game-item:hover .s27f-game-img {
    border-color: var(--s27f-primary);
}

.s27f-game-name {
    font-size: 1.1rem;
    color: var(--s27f-text);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.s27f-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s27f-secondary);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s27f-category-title i {
    color: var(--s27f-primary);
}

/* Content Card */
.s27f-card {
    background: var(--s27f-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 212, 0.1);
}

.s27f-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s27f-primary);
    margin-bottom: 0.8rem;
}

.s27f-card-text {
    font-size: 1.3rem;
    color: var(--s27f-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.s27f-promo-link {
    color: var(--s27f-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.s27f-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.s27f-footer {
    background: var(--s27f-bg-light);
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(0, 184, 212, 0.2);
}

.s27f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.s27f-footer-link {
    color: var(--s27f-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
}

.s27f-footer-link:hover {
    color: var(--s27f-primary);
}

.s27f-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.s27f-partner-logo {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s27f-partner-logo:hover {
    opacity: 1;
}

.s27f-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s27f-text-muted);
}

/* Bottom Navigation */
.s27f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--s27f-bg-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    border-top: 1px solid rgba(0, 184, 212, 0.2);
}

.s27f-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;
}

.s27f-nav-item:hover {
    transform: scale(1.1);
}

.s27f-nav-item i {
    font-size: 22px;
    color: var(--s27f-text-muted);
    margin-bottom: 2px;
}

.s27f-nav-item span {
    font-size: 10px;
    color: var(--s27f-text-muted);
}

.s27f-nav-item:hover i,
.s27f-nav-item:hover span,
.s27f-nav-item.s27f-nav-active i,
.s27f-nav-item.s27f-nav-active span {
    color: var(--s27f-primary);
}

/* List Styles */
.s27f-list {
    list-style: none;
}

.s27f-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.s27f-list-item:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.s27f-faq-item {
    margin-bottom: 1rem;
}

.s27f-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s27f-primary);
    margin-bottom: 0.5rem;
}

.s27f-faq-answer {
    font-size: 1.3rem;
    color: var(--s27f-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 769px) {
    .s27f-bottom-nav {
        display: none;
    }

    .s27f-main {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .s27f-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.s27f-text-center {
    text-align: center;
}

.s27f-mt-1 {
    margin-top: 0.5rem;
}

.s27f-mt-2 {
    margin-top: 1rem;
}

.s27f-mb-1 {
    margin-bottom: 0.5rem;
}

.s27f-mb-2 {
    margin-bottom: 1rem;
}

.s27f-hidden {
    display: none !important;
}

.s27f-flex {
    display: flex;
}

.s27f-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
