/* PH958 CSS Stylesheet */
/* All classes use sb76- prefix for namespace isolation */

/* CSS Variables for Color Palette */
:root {
    --sb76-primary-light: #ADD8E6;
    --sb76-primary-blue: #1E90FF;
    --sb76-primary-cyan: #00B8D4;
    --sb76-dark-gray: #2C2C2C;
    --sb76-medium-gray: #3C3C3C;
    --sb76-light-gray: #f5f5f5;
    --sb76-white: #ffffff;
    --sb76-black: #000000;
    --sb76-success: #4CAF50;
    --sb76-warning: #FF9800;
    --sb76-danger: #F44336;
    --sb76-shadow: rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--sb76-dark-gray) 0%, var(--sb76-medium-gray) 100%);
    color: var(--sb76-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.sb76-container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Header Styles */
.sb76-header {
    background: var(--sb76-medium-gray);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sb76-shadow);
    backdrop-filter: blur(10px);
    background: rgba(60, 60, 60, 0.95);
}

.sb76-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.sb76-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--sb76-primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb76-header-buttons {
    display: flex;
    gap: 10px;
}

.sb76-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sb76-btn-register {
    background: var(--sb76-primary-blue);
    color: var(--sb76-white);
}

.sb76-btn-register:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.sb76-btn-login {
    background: transparent;
    color: var(--sb76-primary-light);
    border: 2px solid var(--sb76-primary-light);
}

.sb76-btn-login:hover {
    background: var(--sb76-primary-light);
    color: var(--sb76-dark-gray);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.sb76-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--sb76-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu Overlay */
.sb76-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.sb76-mobile-menu-content {
    background: var(--sb76-medium-gray);
    padding: 30px;
    border-radius: 15px;
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.sb76-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--sb76-white);
    font-size: 30px;
    cursor: pointer;
}

.sb76-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sb76-mobile-menu-link {
    color: var(--sb76-white);
    text-decoration: none;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb76-mobile-menu-link:hover {
    background: var(--sb76-primary-blue);
}

/* Main Content */
main {
    margin-top: 70px;
    padding-bottom: 80px;
}

/* Hero Section */
.sb76-hero {
    background: linear-gradient(135deg, var(--sb76-primary-blue) 0%, var(--sb76-primary-cyan) 100%);
    padding: 40px 15px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.sb76-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: sb76-pulse 4s ease-in-out infinite;
}

@keyframes sb76-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.sb76-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.sb76-hero p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Game Cards */
.sb76-games-section {
    padding: 30px 0;
}

.sb76-section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--sb76-primary-light);
}

.sb76-game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.sb76-tab-btn {
    padding: 10px 20px;
    background: var(--sb76-dark-gray);
    color: var(--sb76-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sb76-tab-btn.sb76-active {
    background: var(--sb76-primary-blue);
    transform: scale(1.05);
}

.sb76-tab-btn:hover {
    background: var(--sb76-primary-cyan);
    transform: scale(1.05);
}

.sb76-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sb76-game-card {
    background: var(--sb76-medium-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sb76-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.sb76-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--sb76-dark-gray);
}

.sb76-game-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--sb76-white);
}

/* Bottom Navigation */
.sb76-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--sb76-medium-gray);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--sb76-shadow);
    backdrop-filter: blur(10px);
    background: rgba(60, 60, 60, 0.98);
}

.sb76-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--sb76-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    border-radius: 12px;
}

.sb76-nav-btn:hover {
    background: rgba(173, 216, 230, 0.1);
    transform: translateY(-2px);
}

.sb76-nav-btn.sb76-active {
    color: var(--sb76-primary-blue);
    background: rgba(30, 144, 255, 0.1);
}

.sb76-nav-icon {
    font-size: 24px;
}

.sb76-nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* Features Section */
.sb76-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.sb76-feature-card {
    background: var(--sb76-medium-gray);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sb76-feature-card:hover {
    border-color: var(--sb76-primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.2);
}

.sb76-feature-icon {
    font-size: 48px;
    color: var(--sb76-primary-cyan);
    margin-bottom: 15px;
}

.sb76-feature-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--sb76-primary-light);
}

.sb76-feature-description {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.sb76-footer {
    background: var(--sb76-dark-gray);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 3px solid var(--sb76-primary-blue);
}

.sb76-footer-content {
    text-align: center;
}

.sb76-footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--sb76-primary-blue);
    margin-bottom: 20px;
}

.sb76-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sb76-footer-link {
    color: var(--sb76-primary-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sb76-footer-link:hover {
    color: var(--sb76-primary-blue);
}

.sb76-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sb76-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sb76-medium-gray);
    color: var(--sb76-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sb76-social-link:hover {
    background: var(--sb76-primary-blue);
    transform: translateY(-3px);
}

.sb76-copyright {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 20px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .sb76-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .sb76-mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .sb76-mobile-menu-btn {
        display: block;
    }
}

/* Utility Classes */
.sb76-text-center { text-align: center; }
.sb76-text-left { text-align: left; }
.sb76-text-right { text-align: right; }

.sb76-mb-10 { margin-bottom: 10px; }
.sb76-mb-20 { margin-bottom: 20px; }
.sb76-mb-30 { margin-bottom: 30px; }

.sb76-mt-10 { margin-top: 10px; }
.sb76-mt-20 { margin-top: 20px; }
.sb76-mt-30 { margin-top: 30px; }

/* Animations */
@keyframes sb76-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sb76-animate-fade-in {
    animation: sb76-fadeIn 0.6s ease forwards;
}

@keyframes sb76-slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes sb76-slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* Scroll to Top Button */
.sb76-scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--sb76-primary-blue);
    color: var(--sb76-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.sb76-scroll-top:hover {
    background: var(--sb76-primary-cyan);
    transform: scale(1.1);
}