/**
 * SG77 Layout Stylesheet
 * Prefix: s6a2-
 * Website: sg77.club
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --s6a2-primary: #CD853F;
    --s6a2-secondary: #FF6347;
    --s6a2-accent: #8B0000;
    --s6a2-bg-dark: #0F0F23;
    --s6a2-bg-light: #1a1a2e;
    --s6a2-text-light: #FFFFFF;
    --s6a2-text-muted: #B8B8B8;
    --s6a2-gold: #FFD700;
    --s6a2-gradient: linear-gradient(135deg, #CD853F 0%, #FF6347 100%);
    --s6a2-shadow: 0 4px 15px rgba(205, 133, 63, 0.3);
    --s6a2-radius: 8px;
    --s6a2-transition: all 0.3s ease;
}

/* 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(--s6a2-bg-dark);
    color: var(--s6a2-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.s6a2-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.s6a2-wrapper {
    padding: 1rem;
}

/* Header */
.s6a2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--s6a2-bg-dark) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(205, 133, 63, 0.3);
}

.s6a2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s6a2-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s6a2-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s6a2-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--s6a2-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s6a2-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.s6a2-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--s6a2-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s6a2-transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.s6a2-btn-primary {
    background: var(--s6a2-gradient);
    color: var(--s6a2-text-light);
    box-shadow: var(--s6a2-shadow);
}

.s6a2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

.s6a2-btn-outline {
    background: transparent;
    color: var(--s6a2-primary);
    border: 2px solid var(--s6a2-primary);
}

.s6a2-btn-outline:hover {
    background: var(--s6a2-primary);
    color: var(--s6a2-text-light);
}

.s6a2-menu-toggle {
    background: none;
    border: none;
    color: var(--s6a2-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s6a2-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s6a2-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.s6a2-menu-active {
    right: 0;
}

.s6a2-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(--s6a2-transition);
}

.s6a2-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s6a2-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(205, 133, 63, 0.3);
}

.s6a2-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s6a2-primary);
}

.s6a2-menu-close {
    background: none;
    border: none;
    color: var(--s6a2-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s6a2-nav-list {
    list-style: none;
}

.s6a2-nav-item {
    margin-bottom: 0.5rem;
}

.s6a2-nav-link {
    display: block;
    padding: 1rem;
    color: var(--s6a2-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--s6a2-radius);
    transition: var(--s6a2-transition);
}

.s6a2-nav-link:hover {
    background: rgba(205, 133, 63, 0.2);
    color: var(--s6a2-primary);
}

/* Main Content */
.s6a2-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .s6a2-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s6a2-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--s6a2-radius);
    margin-bottom: 1.5rem;
}

.weba23-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s6a2-slide-active {
    opacity: 1;
}

.weba23-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s6a2-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s6a2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s6a2-transition);
}

.s6a2-dot-active {
    background: var(--s6a2-primary);
}

/* Section Styles */
.s6a2-section {
    padding: 1.5rem 0;
}

.s6a2-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s6a2-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s6a2-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.s6a2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s6a2-game-card {
    background: var(--s6a2-bg-light);
    border-radius: var(--s6a2-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--s6a2-transition);
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.s6a2-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--s6a2-primary);
    box-shadow: var(--s6a2-shadow);
}

.s6a2-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s6a2-game-name {
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--s6a2-text-light);
}

/* Category Badge */
.s6a2-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--s6a2-gradient);
    color: var(--s6a2-text-light);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Info Card */
.s6a2-info-card {
    background: var(--s6a2-bg-light);
    border-radius: var(--s6a2-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.s6a2-info-card h3 {
    color: var(--s6a2-primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.s6a2-info-card p {
    color: var(--s6a2-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Promo Link */
.s6a2-promo-link {
    color: var(--s6a2-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--s6a2-transition);
}

.s6a2-promo-link:hover {
    color: var(--s6a2-secondary);
    text-decoration: underline;
}

/* Footer */
.s6a2-footer {
    background: var(--s6a2-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(205, 133, 63, 0.3);
}

.s6a2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s6a2-footer-link {
    color: var(--s6a2-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--s6a2-transition);
}

.s6a2-footer-link:hover {
    color: var(--s6a2-primary);
}

.s6a2-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s6a2-partner-img {
    width: 40px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--s6a2-transition);
}

.s6a2-partner-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.s6a2-copyright {
    text-align: center;
    color: var(--s6a2-text-muted);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.s6a2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--s6a2-bg-dark) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(205, 133, 63, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (min-width: 769px) {
    .s6a2-bottom-nav {
        display: none;
    }
}

.s6a2-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: none;
    border: none;
    color: var(--s6a2-text-muted);
    cursor: pointer;
    transition: var(--s6a2-transition);
    text-decoration: none;
    padding: 0.3rem;
}

.s6a2-nav-btn:hover,
.s6a2-nav-btn-active {
    color: var(--s6a2-primary);
    transform: scale(1.1);
}

.s6a2-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.s6a2-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.s6a2-text-center { text-align: center; }
.s6a2-text-gold { color: var(--s6a2-gold); }
.s6a2-text-primary { color: var(--s6a2-primary); }
.s6a2-mb-1 { margin-bottom: 1rem; }
.s6a2-mb-2 { margin-bottom: 2rem; }
.s6a2-mt-1 { margin-top: 1rem; }
.s6a2-mt-2 { margin-top: 2rem; }

/* Promo Banner */
.s6a2-promo-banner {
    background: var(--s6a2-gradient);
    border-radius: var(--s6a2-radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.s6a2-promo-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--s6a2-text-light);
}

.s6a2-promo-banner p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Features List */
.s6a2-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s6a2-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--s6a2-bg-light);
    border-radius: var(--s6a2-radius);
}

.s6a2-feature-item i {
    font-size: 2rem;
    color: var(--s6a2-primary);
}

.s6a2-feature-item span {
    font-size: 1.2rem;
    color: var(--s6a2-text-light);
}

/* RTP Stats */
.s6a2-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.s6a2-rtp-item {
    background: var(--s6a2-bg-light);
    padding: 1rem;
    border-radius: var(--s6a2-radius);
    text-align: center;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.s6a2-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s6a2-primary);
}

.s6a2-rtp-label {
    font-size: 1.1rem;
    color: var(--s6a2-text-muted);
}

/* FAQ Accordion */
.s6a2-faq-item {
    background: var(--s6a2-bg-light);
    border-radius: var(--s6a2-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.s6a2-faq-question {
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s6a2-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s6a2-faq-answer {
    padding: 0 1.5rem 1rem;
    font-size: 1.2rem;
    color: var(--s6a2-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 380px) {
    .s6a2-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .s6a2-container {
        max-width: 768px;
    }

    .s6a2-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .s6a2-carousel {
        height: 300px;
    }
}
