/**
 * Bouncy Balls Game - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: g45a-
 * Color Palette: #B0E0E6 (Powder Blue) | #3A3A3A (Dark Gray) | #5F9EA0 (Cadet Blue)
 */

/* CSS Variables */
:root {
    --g45a-primary: #5F9EA0;
    --g45a-secondary: #B0E0E6;
    --g45a-bg: #3A3A3A;
    --g45a-bg-dark: #2a2a2a;
    --g45a-bg-light: #4a4a4a;
    --g45a-text: #ffffff;
    --g45a-text-muted: #cccccc;
    --g45a-accent: #5F9EA0;
    --g45a-accent-hover: #4a8a8c;
    --g45a-border: rgba(176, 224, 230, 0.3);
    --g45a-shadow: rgba(0, 0, 0, 0.3);
    --g45a-gradient: linear-gradient(135deg, #5F9EA0 0%, #B0E0E6 100%);
    --g45a-radius: 8px;
    --g45a-radius-lg: 12px;
    --g45a-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background-color: var(--g45a-bg);
    color: var(--g45a-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--g45a-text-muted);
}

a {
    color: var(--g45a-secondary);
    text-decoration: none;
    transition: var(--g45a-transition);
}

a:hover {
    color: var(--g45a-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.g45a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g45a-wrapper {
    width: 100%;
    padding: 1rem 0;
}

/* Header */
.g45a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g45a-bg-dark) 0%, rgba(58, 58, 58, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g45a-border);
    transition: var(--g45a-transition);
}

.g45a-header-scrolled {
    background: rgba(42, 42, 42, 0.98);
    box-shadow: 0 2px 20px var(--g45a-shadow);
}

.g45a-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.g45a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g45a-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g45a-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g45a-secondary);
}

.g45a-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g45a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--g45a-radius);
    border: none;
    cursor: pointer;
    transition: var(--g45a-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g45a-btn-primary {
    background: var(--g45a-gradient);
    color: var(--g45a-bg-dark);
}

.g45a-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 158, 160, 0.4);
}

.g45a-btn-secondary {
    background: transparent;
    color: var(--g45a-secondary);
    border: 1px solid var(--g45a-secondary);
}

.g45a-btn-secondary:hover {
    background: var(--g45a-secondary);
    color: var(--g45a-bg-dark);
}

.g45a-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--g45a-secondary);
    cursor: pointer;
    font-size: 1.8rem;
}

/* Mobile Menu */
.g45a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g45a-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.g45a-menu-active {
    right: 0;
}

.g45a-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(--g45a-transition);
}

.g45a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g45a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g45a-border);
}

.g45a-menu-title {
    font-size: 1.6rem;
    color: var(--g45a-secondary);
    font-weight: 700;
}

.g45a-menu-close {
    background: none;
    border: none;
    color: var(--g45a-text);
    font-size: 2rem;
    cursor: pointer;
}

.g45a-nav-list {
    list-style: none;
}

.g45a-nav-item {
    margin-bottom: 0.5rem;
}

.g45a-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--g45a-text);
    font-size: 1.3rem;
    border-radius: var(--g45a-radius);
    transition: var(--g45a-transition);
}

.g45a-nav-link:hover {
    background: var(--g45a-bg-light);
    color: var(--g45a-secondary);
}

/* Main Content */
.g45a-main {
    padding-top: 60px;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .g45a-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g45a-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--g45a-radius-lg) var(--g45a-radius-lg);
}

.g45a-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.g45a-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g45a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g45a-slide-active {
    opacity: 1;
}

.g45a-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g45a-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--g45a-transition);
}

.g45a-indicator-active {
    background: var(--g45a-secondary);
    transform: scale(1.2);
}

/* Section Styles */
.g45a-section {
    padding: 2rem 1rem;
}

.g45a-section-title {
    font-size: 1.8rem;
    color: var(--g45a-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.g45a-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--g45a-gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.g45a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0 0.5rem;
}

.g45a-game-card {
    background: var(--g45a-bg-light);
    border-radius: var(--g45a-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--g45a-transition);
    border: 1px solid var(--g45a-border);
}

.g45a-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--g45a-shadow);
    border-color: var(--g45a-primary);
}

.g45a-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g45a-game-name {
    font-size: 1rem;
    color: var(--g45a-text);
    text-align: center;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.g45a-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.g45a-category-title {
    font-size: 1.4rem;
    color: var(--g45a-secondary);
    font-weight: 600;
}

.g45a-category-more {
    font-size: 1.2rem;
    color: var(--g45a-primary);
}

/* Info Cards */
.g45a-info-card {
    background: linear-gradient(135deg, var(--g45a-bg-light) 0%, var(--g45a-bg) 100%);
    border-radius: var(--g45a-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--g45a-border);
}

.g45a-info-card h3 {
    color: var(--g45a-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.g45a-info-card p {
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Features List */
.g45a-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g45a-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--g45a-bg-light);
    border-radius: var(--g45a-radius);
    border: 1px solid var(--g45a-border);
}

.g45a-feature-icon {
    font-size: 2rem;
    color: var(--g45a-primary);
}

.g45a-feature-text {
    font-size: 1.2rem;
    color: var(--g45a-text);
}

/* Promotional Links */
.g45a-promo-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--g45a-gradient);
    color: var(--g45a-bg-dark);
    font-weight: 600;
    border-radius: var(--g45a-radius);
    cursor: pointer;
    transition: var(--g45a-transition);
    text-decoration: none;
}

.g45a-promo-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(95, 158, 160, 0.4);
    color: var(--g45a-bg-dark);
}

.g45a-text-link {
    color: var(--g45a-secondary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.g45a-text-link:hover {
    color: var(--g45a-primary);
}

/* Footer */
.g45a-footer {
    background: var(--g45a-bg-dark);
    padding: 2rem 1rem;
    border-top: 1px solid var(--g45a-border);
}

.g45a-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.g45a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.g45a-footer-link {
    font-size: 1.2rem;
    color: var(--g45a-text-muted);
    transition: var(--g45a-transition);
}

.g45a-footer-link:hover {
    color: var(--g45a-secondary);
}

.g45a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--g45a-border);
    border-bottom: 1px solid var(--g45a-border);
}

.g45a-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--g45a-transition);
}

.g45a-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.g45a-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g45a-text-muted);
}

/* Bottom Navigation */
.g45a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, var(--g45a-bg-dark) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--g45a-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .g45a-bottom-nav {
        display: none;
    }
}

.g45a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--g45a-text-muted);
    cursor: pointer;
    transition: var(--g45a-transition);
    padding: 0.5rem;
}

.g45a-nav-btn:hover,
.g45a-nav-btn-active {
    color: var(--g45a-secondary);
    transform: scale(1.1);
}

.g45a-nav-btn-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.g45a-nav-btn-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.g45a-text-center { text-align: center; }
.g45a-text-left { text-align: left; }
.g45a-text-right { text-align: right; }
.g45a-mb-1 { margin-bottom: 1rem; }
.g45a-mb-2 { margin-bottom: 2rem; }
.g45a-mt-1 { margin-top: 1rem; }
.g45a-mt-2 { margin-top: 2rem; }
.g45a-hidden { display: none; }
.g45a-flex { display: flex; }
.g45a-flex-center { display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 380px) {
    .g45a-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g45a-features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .g45a-container {
        max-width: 600px;
    }

    .g45a-slides {
        height: 280px;
    }
}
