/* JL33 CSS Stylesheet */
/* Prefix: s1aa- */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --s1aa-primary: #FF4500;
    --s1aa-secondary: #DC143C;
    --s1aa-bg: #1C2833;
    --s1aa-text: #FFFFFF;
    --s1aa-accent: #FF6347;
    --s1aa-highlight: #FFA500;
    --s1aa-card-bg: rgba(255, 255, 255, 0.1);
    --s1aa-border-color: rgba(255, 255, 255, 0.2);
    --s1aa-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --s1aa-transition: all 0.3s ease;
}

/* Base styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--s1aa-text);
    background-color: var(--s1aa-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Container and layout */
.s1aa-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.s1aa-section {
    margin-bottom: 2rem;
}

.s1aa-card {
    background: var(--s1aa-card-bg);
    border: 1px solid var(--s1aa-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--s1aa-shadow);
}

.s1aa-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s1aa-border-color);
}

.s1aa-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s1aa-text);
}

/* Header styles */
.s1aa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--s1aa-border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.s1aa-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.s1aa-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s1aa-text);
    text-decoration: none;
}

.s1aa-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.s1aa-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.s1aa-btn {
    background: var(--s1aa-primary);
    color: var(--s1aa-text);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s1aa-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.s1aa-btn:hover {
    background: var(--s1aa-secondary);
    transform: translateY(-2px);
}

.s1aa-menu-toggle {
    background: none;
    border: none;
    color: var(--s1aa-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--s1aa-transition);
}

.s1aa-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.s1aa-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile menu */
.s1aa-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 40, 51, 0.98);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
}

.s1aa-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s1aa-border-color);
}

.s1aa-mobile-nav-list {
    list-style: none;
}

.s1aa-mobile-nav-item {
    margin-bottom: 0.5rem;
}

.s1aa-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--s1aa-text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--s1aa-transition);
}

.s1aa-mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.s1aa-mobile-nav-icon {
    width: 24px;
    height: 24px;
}

.s1aa-menu-close {
    background: none;
    border: none;
    color: var(--s1aa-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--s1aa-transition);
}

.s1aa-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.s1aa-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Main content */
main {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

/* Game grid */
.s1aa-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.s1aa-game-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--s1aa-transition);
    border-radius: 8px;
    padding: 0.5rem;
}

.s1aa-game-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.s1aa-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--s1aa-transition);
}

.s1aa-game-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--s1aa-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Feature grid */
.s1aa-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.s1aa-feature-card {
    background: linear-gradient(135deg, var(--s1aa-primary) 0%, var(--s1aa-secondary) 100%);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--s1aa-text);
    transition: var(--s1aa-transition);
}

.s1aa-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--s1aa-shadow);
}

/* Buttons */
.s1aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 100px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--s1aa-transition);
    border: none;
}

.s1aa-btn-primary {
    background: var(--s1aa-primary);
    color: var(--s1aa-text);
}

.s1aa-btn-secondary {
    background: var(--s1aa-secondary);
    color: var(--s1aa-text);
}

.s1aa-btn-outline {
    background: transparent;
    color: var(--s1aa-text);
    border: 1px solid var(--s1aa-border-color);
}

/* Flexbox utilities */
.s1aa-flex {
    display: flex;
}

.s1aa-flex-col {
    flex-direction: column;
}

.s1aa-justify-center {
    justify-content: center;
}

.s1aa-align-center {
    align-items: center;
}

.s1aa-gap-1 {
    gap: 1rem;
}

.s1aa-gap-2 {
    gap: 2rem;
}

.s1aa-mt-2 {
    margin-top: 2rem;
}

/* Footer */
.s1aa-footer {
    background: var(--s1aa-bg);
    border-top: 1px solid var(--s1aa-border-color);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.s1aa-footer-content {
    text-align: center;
}

.s1aa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s1aa-footer-link {
    color: var(--s1aa-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--s1aa-transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.s1aa-footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--s1aa-highlight);
}

.s1aa-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s1aa-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.s1aa-copyright {
    color: var(--s1aa-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.s1aa-text-sm {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bottom navigation */
.s1aa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--s1aa-border-color);
    z-index: 1000;
    padding: 0.5rem 0;
}

.s1aa-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s1aa-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--s1aa-text);
    text-decoration: none;
    transition: var(--s1aa-transition);
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    border-radius: 8px;
}

.s1aa-nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--s1aa-highlight);
}

.s1aa-nav-button.active {
    color: var(--s1aa-primary);
}

.s1aa-nav-button i {
    font-size: 20px;
}

.s1aa-nav-button span {
    font-size: 10px;
    font-weight: 600;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .s1aa-nav-button {
        min-width: 60px;
        min-height: 60px;
    }

    .s1aa-nav-button i {
        font-size: 24px;
    }

    .s1aa-nav-button span {
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    .s1aa-bottom-nav {
        display: none;
    }
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.s1aa-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility classes */
.s1aa-hidden {
    display: none !important;
}

.s1aa-visible {
    display: block !important;
}

.s1aa-opacity-0 {
    opacity: 0 !important;
}

.s1aa-opacity-100 {
    opacity: 1 !important;
}