/* SZ77 Stylesheet - Unique Visual Design */
/* All classes use sa35- prefix for namespace isolation */

/* CSS Variables */
:root {
    --primary-color: #EE82EE;
    --secondary-color: #CD853F;
    --dark-bg: #2D2D2D;
    --light-text: #EEEEEE;
    --accent-color: #F4A460;
    --gradient-1: linear-gradient(135deg, #EE82EE 0%, #CD853F 100%);
    --gradient-2: linear-gradient(45deg, #2D2D2D 0%, #555555 100%);
    --shadow-1: 0 4px 20px rgba(238, 130, 238, 0.3);
    --shadow-2: 0 8px 30px rgba(45, 45, 45, 0.5);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.sa35-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.sa35-header {
    background: var(--gradient-2);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-2);
}

.sa35-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sa35-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa35-logo:hover {
    color: var(--accent-color);
}

.sa35-header-buttons {
    display: flex;
    gap: 10px;
}

.sa35-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sa35-btn-primary {
    background: var(--gradient-1);
    color: white;
}

.sa35-btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.sa35-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}

/* Mobile Menu Toggle */
.sa35-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.sa35-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    box-shadow: var(--shadow-2);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.sa35-menu-open {
    left: 0;
}

.sa35-menu-header {
    padding: 20px;
    background: var(--gradient-1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sa35-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.sa35-menu-nav {
    padding: 20px 0;
}

.sa35-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--light-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.sa35-menu-item:hover {
    background: rgba(238, 130, 238, 0.1);
    color: var(--primary-color);
}

.sa35-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sa35-overlay-show {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.sa35-main {
    margin-top: 80px;
    padding: 20px 0;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .sa35-main {
        padding-bottom: 80px;
    }
}

/* Hero Section */
.sa35-hero {
    background: var(--gradient-1);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.sa35-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: sa35-pulse 4s ease-in-out infinite;
}

@keyframes sa35-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.sa35-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sa35-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    position: relative;
}

/* Game Categories */
.sa35-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.sa35-category-btn {
    padding: 10px 20px;
    background: rgba(238, 130, 238, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--light-text);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sa35-category-btn:hover,
.sa35-category-btn.sa35-active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Game Grid */
.sa35-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.sa35-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.sa35-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-1);
    border-color: var(--primary-color);
}

.sa35-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(45deg, rgba(238, 130, 238, 0.2), rgba(205, 133, 63, 0.2));
}

.sa35-game-name {
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--light-text);
}

/* Bottom Navigation */
.sa35-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-2);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.sa35-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.sa35-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light-text);
    border-radius: 12px;
}

.sa35-nav-item:hover {
    background: rgba(238, 130, 238, 0.2);
    transform: translateY(-2px);
}

.sa35-nav-item.sa35-active {
    background: rgba(238, 130, 238, 0.3);
    color: var(--primary-color);
}

.sa35-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa35-nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* Footer */
.sa35-footer {
    background: var(--dark-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sa35-partners {
    margin-bottom: 20px;
}

.sa35-partner-logo {
    width: 60px;
    height: 30px;
    margin: 0 10px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sa35-partner-logo:hover {
    opacity: 1;
}

.sa35-footer-links {
    margin-bottom: 20px;
}

.sa35-footer-link {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sa35-footer-link:hover {
    color: var(--primary-color);
}

.sa35-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Search Bar */
.sa35-search-container {
    margin-bottom: 20px;
    position: relative;
}

.sa35-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.sa35-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-1);
}

.sa35-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

/* Notification */
.sa35-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--gradient-1);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-2);
    z-index: 10000;
    animation: sa35-slideIn 0.3s ease;
}

@keyframes sa35-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Feature Sections */
.sa35-feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(238, 130, 238, 0.3);
}

.sa35-feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.sa35-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (min-width: 769px) {
    .sa35-bottom-nav {
        display: none;
    }

    .sa35-mobile-menu-toggle {
        display: block;
    }

    .sa35-main {
        margin-top: 70px;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sa35-header-buttons .sa35-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .sa35-hero h1 {
        font-size: 24px;
    }

    .sa35-hero p {
        font-size: 14px;
    }

    .sa35-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sa35-game-image {
        height: 100px;
    }
}

/* Loading Animation */
.sa35-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: sa35-spin 1s linear infinite;
}

@keyframes sa35-spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.sa35-text-center { text-align: center; }
.sa35-text-primary { color: var(--primary-color); }
.sa35-text-secondary { color: var(--secondary-color); }
.sa35-bg-gradient { background: var(--gradient-1); }
.sa35-mb-20 { margin-bottom: 20px; }
.sa35-mt-20 { margin-top: 20px; }