/**
 * 588jl legit - Layout Styles
 * CSS classes use s6b7- prefix for namespace isolation
 * Color palette: #F5F5F5, #B8860B, #FFCC33, #2D2D2D, #DAA520, #FFEB3B
 */

/* CSS Variables */
:root {
    --s6b7-primary: #B8860B;
    --s6b7-secondary: #DAA520;
    --s6b7-accent: #FFCC33;
    --s6b7-highlight: #FFEB3B;
    --s6b7-dark: #2D2D2D;
    --s6b7-light: #F5F5F5;
    --s6b7-text-primary: #FFFFFF;
    --s6b7-text-secondary: #F5F5F5;
    --s6b7-text-muted: #CCCCCC;
    --s6b7-gradient-primary: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    --s6b7-gradient-accent: linear-gradient(135deg, #FFCC33 0%, #FFEB3B 100%);
    --s6b7-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --s6b7-shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.4);
    --s6b7-border-radius: 8px;
    --s6b7-border-radius-lg: 12px;
    --s6b7-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--s6b7-text-primary);
    background-color: var(--s6b7-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.s6b7-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    position: relative;
}

.s6b7-wrapper {
    padding-bottom: 80px; /* Space for bottom navigation */
}

.s6b7-grid {
    display: grid;
    gap: 1rem;
}

.s6b7-flex {
    display: flex;
}

.s6b7-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.s6b7-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s6b7-flex-column {
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.s6b7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s6b7-dark);
    border-bottom: 1px solid var(--s6b7-primary);
    z-index: 1000;
    transition: var(--s6b7-transition);
}

.s6b7-header-scrolled {
    box-shadow: var(--s6b7-shadow);
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
}

.s6b7-header-hidden {
    transform: translateY(-100%);
}

.s6b7-header-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s6b7-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--s6b7-text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.s6b7-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--s6b7-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.s6b7-header-actions {
    display: flex;
    gap: 0.8rem;
}

.s6b7-menu-toggle {
    background: none;
    border: none;
    color: var(--s6b7-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--s6b7-border-radius);
    transition: var(--s6b7-transition);
    display: none;
}

.s6b7-menu-toggle:hover {
    background: var(--s6b7-primary);
    color: var(--s6b7-text-primary);
}

.s6b7-menu-toggle.s6b7-menu-active {
    background: var(--s6b7-primary);
}

/* Mobile Navigation Menu */
.s6b7-mobile-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--s6b7-dark);
    border-right: 1px solid var(--s6b7-primary);
    z-index: 9999;
    transition: var(--s6b7-transition);
    overflow-y: auto;
}

.s6b7-mobile-menu.s6b7-menu-open {
    left: 0;
}

.s6b7-menu-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--s6b7-primary);
    background: var(--s6b7-gradient-primary);
}

.s6b7-menu-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s6b7-text-primary);
}

.s6b7-menu-items {
    padding: 1rem 0;
}

.s6b7-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--s6b7-text-secondary);
    text-decoration: none;
    transition: var(--s6b7-transition);
    border-left: 3px solid transparent;
}

.s6b7-menu-item:hover {
    background: var(--s6b7-primary);
    color: var(--s6b7-text-primary);
    border-left-color: var(--s6b7-accent);
}

.s6b7-menu-item-active {
    background: var(--s6b7-primary);
    color: var(--s6b7-text-primary);
    border-left-color: var(--s6b7-accent);
}

.s6b7-menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--s6b7-transition);
}

.s6b7-menu-overlay.s6b7-menu-open {
    opacity: 1;
    visibility: visible;
}

/* Button Styles */
.s6b7-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--s6b7-border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s6b7-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* Touch friendly */
}

.s6b7-btn-primary {
    background: var(--s6b7-gradient-primary);
    color: var(--s6b7-text-primary);
    box-shadow: var(--s6b7-shadow);
}

.s6b7-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--s6b7-shadow-lg);
}

.s6b7-btn-accent {
    background: var(--s6b7-gradient-accent);
    color: var(--s6b7-dark);
}

.s6b7-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--s6b7-shadow-lg);
}

.s6b7-btn-outline {
    background: transparent;
    color: var(--s6b7-text-primary);
    border: 2px solid var(--s6b7-primary);
}

.s6b7-btn-outline:hover {
    background: var(--s6b7-primary);
    color: var(--s6b7-text-primary);
}

.s6b7-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}

.s6b7-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.5rem;
}

/* Card Styles */
.s6b7-card {
    background: rgba(245, 245, 245, 0.05);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: var(--s6b7-border-radius);
    padding: 1.5rem;
    transition: var(--s6b7-transition);
}

.s6b7-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--s6b7-shadow);
    border-color: var(--s6b7-primary);
}

.s6b7-card-header {
    margin-bottom: 1rem;
}

.s6b7-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s6b7-text-primary);
    margin-bottom: 0.5rem;
}

.s6b7-card-subtitle {
    font-size: 1.3rem;
    color: var(--s6b7-text-muted);
}

.s6b7-card-body {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s6b7-text-secondary);
}

.s6b7-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}

/* Game Grid Styles */
.s6b7-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.s6b7-game-item {
    background: rgba(245, 245, 245, 0.05);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: var(--s6b7-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--s6b7-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
}

.s6b7-game-item:hover {
    transform: scale(1.05);
    box-shadow: var(--s6b7-shadow);
    border-color: var(--s6b7-primary);
}

.s6b7-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--s6b7-border-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.s6b7-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--s6b7-text-secondary);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Styles */
.s6b7-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--s6b7-border-radius-lg);
    overflow: hidden;
    margin: 2rem 0;
}

.s6b7-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.s6b7-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--s6b7-transition);
    cursor: pointer;
}

.s6b7-carousel-item.active {
    opacity: 1;
}

.s6b7-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s6b7-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s6b7-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s6b7-transition);
}

.s6b7-carousel-indicator.active {
    background: var(--s6b7-accent);
    width: 24px;
    border-radius: 4px;
}

/* Bottom Navigation */
.s6b7-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s6b7-dark);
    border-top: 1px solid var(--s6b7-primary);
    z-index: 1000;
    height: 60px;
    display: none;
}

.s6b7-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.s6b7-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--s6b7-text-muted);
    transition: var(--s6b7-transition);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--s6b7-border-radius);
}

.s6b7-nav-item:hover,
.s6b7-nav-item.active {
    color: var(--s6b7-accent);
    background: rgba(255, 204, 51, 0.1);
}

.s6b7-nav-item-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    transition: var(--s6b7-transition);
}

.s6b7-nav-item:hover .s6b7-nav-item-icon,
.s6b7-nav-item.active .s6b7-nav-item-icon {
    transform: scale(1.1);
}

.s6b7-nav-item-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

.s6b7-nav-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--s6b7-accent);
    color: var(--s6b7-dark);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 80px; /* Space for header */
    padding-bottom: 20px;
}

.s6b7-section {
    margin: 2rem 0;
}

.s6b7-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--s6b7-text-primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.s6b7-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--s6b7-gradient-primary);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.s6b7-section-subtitle {
    font-size: 1.6rem;
    color: var(--s6b7-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--s6b7-text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 600;
}

h5 {
    font-size: 1.6rem;
    font-weight: 500;
}

h6 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--s6b7-text-secondary);
}

a {
    color: var(--s6b7-accent);
    text-decoration: none;
    transition: var(--s6b7-transition);
}

a:hover {
    color: var(--s6b7-highlight);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--s6b7-text-secondary);
}

/* Form Styles */
.s6b7-form-group {
    margin-bottom: 1.5rem;
}

.s6b7-form-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--s6b7-text-primary);
    margin-bottom: 0.5rem;
}

.s6b7-form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(184, 134, 11, 0.3);
    border-radius: var(--s6b7-border-radius);
    background: rgba(245, 245, 245, 0.05);
    color: var(--s6b7-text-primary);
    font-size: 1.4rem;
    transition: var(--s6b7-transition);
}

.s6b7-form-input:focus {
    outline: none;
    border-color: var(--s6b7-primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.s6b7-form-input::placeholder {
    color: var(--s6b7-text-muted);
}

/* Notification Styles */
.s6b7-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: var(--s6b7-border-radius);
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: var(--s6b7-transition);
    box-shadow: var(--s6b7-shadow-lg);
}

.s6b7-notification-show {
    transform: translateX(0);
}

.s6b7-notification-success {
    background: #4CAF50;
    color: white;
}

.s6b7-notification-warning {
    background: #FF9800;
    color: white;
}

.s6b7-notification-error {
    background: #F44336;
    color: white;
}

.s6b7-notification-info {
    background: var(--s6b7-primary);
    color: white;
}

/* Footer Styles */
.s6b7-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--s6b7-primary);
    padding: 2rem 0;
    margin-top: 3rem;
}

.s6b7-footer-content {
    text-align: center;
}

.s6b7-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--s6b7-text-primary);
    margin-bottom: 1rem;
}

.s6b7-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.s6b7-footer-link {
    color: var(--s6b7-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--s6b7-transition);
}

.s6b7-footer-link:hover {
    color: var(--s6b7-accent);
}

.s6b7-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.s6b7-partner-logo {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: var(--s6b7-transition);
}

.s6b7-partner-logo:hover {
    opacity: 1;
}

.s6b7-copyright {
    font-size: 1.2rem;
    color: var(--s6b7-text-muted);
    margin-top: 1rem;
}

/* Utility Classes */
.s6b7-text-center {
    text-align: center;
}

.s6b7-text-left {
    text-align: left;
}

.s6b7-text-right {
    text-align: right;
}

.s6b7-mt-1 {
    margin-top: 1rem;
}

.s6b7-mt-2 {
    margin-top: 2rem;
}

.s6b7-mt-3 {
    margin-top: 3rem;
}

.s6b7-mb-1 {
    margin-bottom: 1rem;
}

.s6b7-mb-2 {
    margin-bottom: 2rem;
}

.s6b7-mb-3 {
    margin-bottom: 3rem;
}

.s6b7-p-1 {
    padding: 1rem;
}

.s6b7-p-2 {
    padding: 2rem;
}

.s6b7-p-3 {
    padding: 3rem;
}

.s6b7-hidden {
    display: none;
}

.s6b7-visible {
    display: block;
}

/* Image Loading States */
.s6b7-image-loading {
    filter: blur(5px);
    opacity: 0.7;
}

.s6b7-image-loaded {
    filter: none;
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .s6b7-bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }

    .s6b7-menu-toggle {
        display: block;
    }

    .s6b7-header-actions {
        gap: 0.5rem;
    }

    .s6b7-section-title {
        font-size: 2rem;
    }

    .s6b7-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .s6b7-game-icon {
        width: 50px;
        height: 50px;
    }

    .s6b7-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .s6b7-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 20px;
    }

    .s6b7-container {
        padding: 0 2rem;
    }
}

/* Animation Classes */
@keyframes s6b7-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s6b7-fade-in {
    animation: s6b7-fadeIn 0.6s ease-out;
}

@keyframes s6b7-slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.s6b7-slide-in-left {
    animation: s6b7-slideInLeft 0.3s ease-out;
}

@keyframes s6b7-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.s6b7-pulse {
    animation: s6b7-pulse 2s infinite;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--s6b7-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--s6b7-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--s6b7-secondary);
}

/* Accessibility */
.s6b7-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.s6b7-btn:focus,
.s6b7-form-input:focus,
.s6b7-nav-item:focus {
    outline: 2px solid var(--s6b7-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .s6b7-header,
    .s6b7-bottom-nav,
    .s6b7-carousel,
    .s6b7-notification {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .s6b7-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}