/**
 * Bee PH - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: s8a3-
 * Color Palette: #B0E0E6 | #F8F9FA | #8B4513 | #000080 | #ADD8E6 | #0E1621
 */

/* CSS Variables */
:root {
    --s8a3-primary: #000080;
    --s8a3-secondary: #B0E0E6;
    --s8a3-accent: #8B4513;
    --s8a3-bg-dark: #0E1621;
    --s8a3-bg-light: #F8F9FA;
    --s8a3-bg-medium: #ADD8E6;
    --s8a3-text-light: #F8F9FA;
    --s8a3-text-dark: #0E1621;
    --s8a3-border: rgba(176, 224, 230, 0.3);
    --s8a3-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --s8a3-radius: 8px;
    --s8a3-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s8a3-text-light);
    background-color: var(--s8a3-bg-dark);
    overflow-x: hidden;
}

/* Container */
.s8a3-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.s8a3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--s8a3-bg-dark) 0%, #1a2936 100%);
    box-shadow: var(--s8a3-shadow);
    transition: var(--s8a3-transition);
}

.s8a3-header-scrolled {
    background: rgba(14, 22, 33, 0.98);
    backdrop-filter: blur(10px);
}

.s8a3-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.s8a3-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s8a3-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s8a3-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s8a3-secondary);
    letter-spacing: 0.5px;
}

.s8a3-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.s8a3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--s8a3-radius);
    cursor: pointer;
    transition: var(--s8a3-transition);
    min-height: 44px;
    min-width: 44px;
}

.s8a3-btn-primary {
    background: linear-gradient(135deg, var(--s8a3-primary) 0%, #0000cd 100%);
    color: var(--s8a3-text-light);
}

.s8a3-btn-primary:hover {
    background: linear-gradient(135deg, #0000cd 0%, var(--s8a3-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.4);
}

.s8a3-btn-secondary {
    background: linear-gradient(135deg, var(--s8a3-accent) 0%, #a0522d 100%);
    color: var(--s8a3-text-light);
}

.s8a3-btn-secondary:hover {
    background: linear-gradient(135deg, #a0522d 0%, var(--s8a3-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.s8a3-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.s8a3-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--s8a3-secondary);
    transition: var(--s8a3-transition);
}

/* Mobile Menu */
.s8a3-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--s8a3-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.s8a3-menu-active {
    right: 0;
}

.s8a3-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--s8a3-border);
}

.s8a3-menu-close {
    background: none;
    border: none;
    color: var(--s8a3-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.s8a3-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.s8a3-nav-item {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--s8a3-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--s8a3-border);
    transition: var(--s8a3-transition);
}

.s8a3-nav-item:hover {
    background: rgba(176, 224, 230, 0.1);
    color: var(--s8a3-secondary);
}

.s8a3-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: var(--s8a3-transition);
}

.s8a3-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s8a3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.s8a3-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.s8a3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s8a3-slide-active {
    opacity: 1;
}

.s8a3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s8a3-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.s8a3-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(248, 249, 250, 0.5);
    cursor: pointer;
    transition: var(--s8a3-transition);
}

.s8a3-dot-active {
    background: var(--s8a3-secondary);
    transform: scale(1.2);
}

/* Sections */
.s8a3-section {
    padding: 2.5rem 1.5rem;
}

.s8a3-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--s8a3-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.s8a3-section-subtitle {
    font-size: 1.4rem;
    color: var(--s8a3-text-light);
    opacity: 0.9;
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.s8a3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s8a3-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(176, 224, 230, 0.05);
    border-radius: var(--s8a3-radius);
    border: 1px solid var(--s8a3-border);
    cursor: pointer;
    transition: var(--s8a3-transition);
    text-decoration: none;
}

.s8a3-game-card:hover {
    background: rgba(176, 224, 230, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--s8a3-shadow);
}

.s8a3-game-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.s8a3-game-name {
    font-size: 1.1rem;
    color: var(--s8a3-text-light);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.s8a3-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s8a3-accent);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--s8a3-primary);
}

/* Content Box */
.s8a3-content-box {
    background: rgba(176, 224, 230, 0.08);
    border-radius: var(--s8a3-radius);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s8a3-border);
}

.s8a3-content-box h3 {
    font-size: 1.6rem;
    color: var(--s8a3-secondary);
    margin-bottom: 1rem;
}

.s8a3-content-box p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s8a3-text-light);
    margin-bottom: 1rem;
}

.s8a3-content-box p:last-child {
    margin-bottom: 0;
}

/* Promo Link */
.s8a3-promo-link {
    color: var(--s8a3-secondary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--s8a3-secondary);
    transition: var(--s8a3-transition);
    cursor: pointer;
}

.s8a3-promo-link:hover {
    color: var(--s8a3-accent);
    border-bottom-color: var(--s8a3-accent);
}

/* Footer */
.s8a3-footer {
    background: linear-gradient(135deg, #0a1018 0%, var(--s8a3-bg-dark) 100%);
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid var(--s8a3-border);
}

.s8a3-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s8a3-partner-logo {
    width: 48px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.7;
    transition: var(--s8a3-transition);
}

.s8a3-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.s8a3-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.s8a3-footer-link {
    color: var(--s8a3-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--s8a3-transition);
}

.s8a3-footer-link:hover {
    color: var(--s8a3-secondary);
}

.s8a3-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(248, 249, 250, 0.6);
}

/* Bottom Navigation */
.s8a3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, var(--s8a3-bg-dark) 0%, #1a2936 100%);
    border-top: 1px solid var(--s8a3-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.s8a3-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(--s8a3-text-light);
    cursor: pointer;
    transition: var(--s8a3-transition);
    text-decoration: none;
}

.s8a3-nav-btn:hover,
.s8a3-nav-btn-active {
    color: var(--s8a3-secondary);
    transform: scale(1.1);
}

.s8a3-nav-btn i,
.s8a3-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.s8a3-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

@media (min-width: 769px) {
    .s8a3-bottom-nav {
        display: none;
    }
}

/* Utilities */
.s8a3-text-center {
    text-align: center;
}

.s8a3-mt-2 {
    margin-top: 2rem;
}

.s8a3-mb-2 {
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .s8a3-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s8a3-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1.2rem;
    }
}

/* H1 Title */
.s8a3-main-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--s8a3-secondary);
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    line-height: 1.3;
}

/* List styles */
.s8a3-list {
    list-style: none;
    padding: 0;
}

.s8a3-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
    color: var(--s8a3-text-light);
}

.s8a3-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--s8a3-accent);
    font-weight: bold;
}

/* Card styles */
.s8a3-card {
    background: rgba(176, 224, 230, 0.08);
    border-radius: var(--s8a3-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s8a3-border);
    transition: var(--s8a3-transition);
}

.s8a3-card:hover {
    box-shadow: var(--s8a3-shadow);
}

/* Highlight box */
.s8a3-highlight {
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
    border-left: 4px solid var(--s8a3-primary);
    padding: 1.5rem;
    border-radius: 0 var(--s8a3-radius) var(--s8a3-radius) 0;
    margin: 1.5rem 0;
}

/* Badge */
.s8a3-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--s8a3-primary);
    color: var(--s8a3-text-light);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Divider */
.s8a3-divider {
    height: 1px;
    background: var(--s8a3-border);
    margin: 2rem 0;
}
