/* BigBunny GCash CSS Design System */
/* Mobile-first responsive design for Philippine gaming market */

/* CSS Variables - Color Palette */
:root {
    --g896-primary-dark: #141414;
    --g896-secondary-dark: #2F2F2F;
    --g896-accent-blue: #2C3E50;
    --g896-light-gray: #F5F5F5;
    --g896-white: #FFFFFF;
    --g896-gold: #FFD700;
    --g896-success: #28A745;
    --g896-danger: #DC3545;
    --g896-warning: #FFC107;
    --g896-info: #17A2B8;
    --g896-gradient-primary: linear-gradient(135deg, #141414 0%, #2F2F2F 100%);
    --g896-gradient-accent: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --g896-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);

    /* Spacing */
    --g896-spacing-xs: 4px;
    --g896-spacing-sm: 8px;
    --g896-spacing-md: 16px;
    --g896-spacing-lg: 24px;
    --g896-spacing-xl: 32px;
    --g896-spacing-xxl: 48px;

    /* Typography */
    --g896-font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --g896-font-secondary: 'Arial', sans-serif;
    --g896-font-size-xs: 12px;
    --g896-font-size-sm: 14px;
    --g896-font-size-base: 16px;
    --g896-font-size-lg: 18px;
    --g896-font-size-xl: 24px;
    --g896-font-size-xxl: 32px;

    /* Border radius */
    --g896-radius-sm: 4px;
    --g896-radius-md: 8px;
    --g896-radius-lg: 12px;
    --g896-radius-xl: 16px;

    /* Shadows */
    --g896-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --g896-shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --g896-shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --g896-shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--g896-font-primary);
    font-size: var(--g896-font-size-base);
    line-height: 1.6;
    color: var(--g896-light-gray);
    background-color: var(--g896-primary-dark);
    overflow-x: hidden;
}

/* Mobile-first responsive container */
.g896-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--g896-spacing-md);
}

/* Header styles */
.g896-header {
    background: var(--g896-gradient-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--g896-shadow-md);
    border-bottom: 2px solid var(--g896-gold);
}

.g896-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--g896-spacing-md);
    max-width: 430px;
    margin: 0 auto;
}

.g896-logo {
    font-size: var(--g896-font-size-xl);
    font-weight: bold;
    color: var(--g896-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--g896-spacing-sm);
}

.g896-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--g896-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--g896-font-size-sm);
    color: var(--g896-primary-dark);
}

.g896-header-actions {
    display: flex;
    gap: var(--g896-spacing-sm);
    align-items: center;
}

.g896-btn {
    padding: var(--g896-spacing-sm) var(--g896-spacing-md);
    border: none;
    border-radius: var(--g896-radius-md);
    font-size: var(--g896-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--g896-spacing-xs);
}

.g896-btn-primary {
    background: var(--g896-gradient-gold);
    color: var(--g896-primary-dark);
    box-shadow: var(--g896-shadow-sm);
}

.g896-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--g896-shadow-md);
}

.g896-btn-secondary {
    background: var(--g896-gradient-accent);
    color: var(--g896-white);
    border: 1px solid var(--g896-gold);
}

.g896-btn-secondary:hover {
    background: var(--g896-gold);
    color: var(--g896-primary-dark);
}

.g896-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g896-gold);
    font-size: var(--g896-font-size-xl);
    cursor: pointer;
    padding: var(--g896-spacing-xs);
}

/* Mobile menu */
.g896-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g896-gradient-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--g896-shadow-xl);
}

.g896-mobile-menu.active {
    right: 0;
}

.g896-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g896-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.g896-menu-header {
    padding: var(--g896-spacing-lg);
    border-bottom: 1px solid var(--g896-secondary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g896-menu-close {
    background: none;
    border: none;
    color: var(--g896-gold);
    font-size: var(--g896-font-size-xl);
    cursor: pointer;
}

.g896-menu-nav {
    padding: var(--g896-spacing-md);
}

.g896-menu-nav ul {
    list-style: none;
}

.g896-menu-nav li {
    border-bottom: 1px solid var(--g896-secondary-dark);
}

.g896-menu-nav a {
    display: block;
    padding: var(--g896-spacing-md);
    color: var(--g896-light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.g896-menu-nav a:hover {
    background: var(--g896-secondary-dark);
    color: var(--g896-gold);
    padding-left: var(--g896-spacing-lg);
}

/* Main content */
.g896-main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Hero carousel */
.g896-hero {
    position: relative;
    margin-bottom: var(--g896-spacing-xxl);
}

.g896-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--g896-radius-lg);
    box-shadow: var(--g896-shadow-lg);
}

.g896-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g896-carousel-slide.active {
    opacity: 1;
    position: relative;
}

.g896-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--g896-radius-lg);
}

.g896-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--g896-white);
    padding: var(--g896-spacing-xl) var(--g896-spacing-md) var(--g896-spacing-md);
    border-radius: 0 0 var(--g896-radius-lg) var(--g896-radius-lg);
}

.g896-carousel-title {
    font-size: var(--g896-font-size-xl);
    font-weight: bold;
    margin-bottom: var(--g896-spacing-xs);
    color: var(--g896-gold);
}

.g896-carousel-description {
    font-size: var(--g896-font-size-sm);
    margin-bottom: var(--g896-spacing-md);
    opacity: 0.9;
}

.g896-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--g896-spacing-xs);
    margin-top: var(--g896-spacing-md);
}

.g896-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g896-secondary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g896-carousel-indicator.active {
    background: var(--g896-gold);
    transform: scale(1.2);
}

/* Search section */
.g896-search-section {
    margin-bottom: var(--g896-spacing-xxl);
}

.g896-search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.g896-search-input {
    width: 100%;
    padding: var(--g896-spacing-md) var(--g896-spacing-lg);
    border: 2px solid var(--g896-secondary-dark);
    border-radius: var(--g896-radius-xl);
    background: var(--g896-primary-dark);
    color: var(--g896-light-gray);
    font-size: var(--g896-font-size-base);
    transition: all 0.3s ease;
}

.g896-search-input:focus {
    outline: none;
    border-color: var(--g896-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.g896-search-input::placeholder {
    color: var(--g896-secondary-dark);
}

.g896-search-icon {
    position: absolute;
    right: var(--g896-spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--g896-gold);
    font-size: var(--g896-font-size-lg);
}

.g896-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--g896-primary-dark);
    border: 2px solid var(--g896-gold);
    border-radius: var(--g896-radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.g896-search-results.active {
    display: block;
}

.g896-search-result-item {
    display: flex;
    align-items: center;
    gap: var(--g896-spacing-md);
    padding: var(--g896-spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--g896-secondary-dark);
}

.g896-search-result-item:hover {
    background: var(--g896-secondary-dark);
}

.g896-search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--g896-radius-sm);
}

.g896-search-result-name {
    font-weight: 600;
    color: var(--g896-gold);
    margin-bottom: 2px;
}

.g896-search-result-type {
    font-size: var(--g896-font-size-xs);
    color: var(--g896-light-gray);
    opacity: 0.7;
}

.g896-search-no-results {
    padding: var(--g896-spacing-lg);
    text-align: center;
    color: var(--g896-light-gray);
    opacity: 0.7;
}

/* Game filters */
.g896-game-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--g896-spacing-sm);
    margin-bottom: var(--g896-spacing-xl);
    justify-content: center;
}

.g896-game-filter-btn {
    padding: var(--g896-spacing-sm) var(--g896-spacing-md);
    background: var(--g896-secondary-dark);
    color: var(--g896-light-gray);
    border: 1px solid var(--g896-secondary-dark);
    border-radius: var(--g896-radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--g896-font-size-sm);
    font-weight: 500;
}

.g896-game-filter-btn:hover,
.g896-game-filter-btn.active {
    background: var(--g896-gold);
    color: var(--g896-primary-dark);
    border-color: var(--g896-gold);
    transform: translateY(-2px);
}

/* Game grid */
.g896-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--g896-spacing-md);
    margin-bottom: var(--g896-spacing-xxl);
}

.g896-game-card {
    background: var(--g896-secondary-dark);
    border-radius: var(--g896-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.g896-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g896-shadow-lg);
    border-color: var(--g896-gold);
}

.g896-game-card.highlight {
    animation: g896-highlight-pulse 2s ease-in-out;
}

@keyframes g896-highlight-pulse {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--g896-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
}

.g896-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.g896-game-card:hover .g896-game-image {
    transform: scale(1.05);
}

.g896-game-info {
    padding: var(--g896-spacing-md);
}

.g896-game-name {
    font-size: var(--g896-font-size-sm);
    font-weight: 600;
    color: var(--g896-gold);
    margin-bottom: var(--g896-spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g896-game-type {
    font-size: var(--g896-font-size-xs);
    color: var(--g896-light-gray);
    opacity: 0.7;
    text-transform: capitalize;
}

.g896-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g896-game-card:hover .g896-play-overlay {
    opacity: 1;
}

.g896-play-btn {
    background: var(--g896-gradient-gold);
    color: var(--g896-primary-dark);
    border: none;
    padding: var(--g896-spacing-sm) var(--g896-spacing-md);
    border-radius: var(--g896-radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--g896-spacing-xs);
}

.g896-play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--g896-shadow-md);
}

/* Bottom navigation */
.g896-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--g896-gradient-primary);
    border-top: 2px solid var(--g896-gold);
    z-index: 1000;
    padding: var(--g896-spacing-sm) 0;
    box-shadow: var(--g896-shadow-lg);
}

.g896-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.g896-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--g896-spacing-xs);
    min-width: 60px;
    padding: var(--g896-spacing-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--g896-light-gray);
    border-radius: var(--g896-radius-md);
}

.g896-bottom-nav-item:hover,
.g896-bottom-nav-item.active {
    color: var(--g896-gold);
    background: var(--g896-secondary-dark);
    transform: translateY(-2px);
}

.g896-bottom-nav-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.g896-bottom-nav-item:hover .g896-bottom-nav-icon {
    transform: scale(1.2);
}

.g896-bottom-nav-label {
    font-size: var(--g896-font-size-xs);
    font-weight: 500;
    text-align: center;
}

/* Footer */
.g896-footer {
    background: var(--g896-gradient-primary);
    border-top: 2px solid var(--g896-gold);
    padding: var(--g896-spacing-xxl) 0 var(--g896-spacing-xl);
    margin-top: var(--g896-spacing-xxl);
}

.g896-footer-content {
    text-align: center;
}

.g896-footer-logo {
    font-size: var(--g896-font-size-xl);
    font-weight: bold;
    color: var(--g896-gold);
    margin-bottom: var(--g896-spacing-md);
}

.g896-footer-description {
    color: var(--g896-light-gray);
    opacity: 0.8;
    margin-bottom: var(--g896-spacing-lg);
    font-size: var(--g896-font-size-sm);
    line-height: 1.6;
}

.g896-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--g896-spacing-md);
    margin-bottom: var(--g896-spacing-lg);
}

.g896-footer-links a {
    color: var(--g896-light-gray);
    text-decoration: none;
    font-size: var(--g896-font-size-sm);
    transition: color 0.3s ease;
}

.g896-footer-links a:hover {
    color: var(--g896-gold);
}

.g896-footer-bottom {
    border-top: 1px solid var(--g896-secondary-dark);
    padding-top: var(--g896-spacing-md);
    color: var(--g896-light-gray);
    opacity: 0.6;
    font-size: var(--g896-font-size-xs);
}

/* Utility classes */
.g896-text-center { text-align: center; }
.g896-text-left { text-align: left; }
.g896-text-right { text-align: right; }

.g896-mb-sm { margin-bottom: var(--g896-spacing-sm); }
.g896-mb-md { margin-bottom: var(--g896-spacing-md); }
.g896-mb-lg { margin-bottom: var(--g896-spacing-lg); }
.g896-mb-xl { margin-bottom: var(--g896-spacing-xl); }

.g896-mt-sm { margin-top: var(--g896-spacing-sm); }
.g896-mt-md { margin-top: var(--g896-spacing-md); }
.g896-mt-lg { margin-top: var(--g896-spacing-lg); }
.g896-mt-xl { margin-top: var(--g896-spacing-xl); }

.g896-p-sm { padding: var(--g896-spacing-sm); }
.g896-p-md { padding: var(--g896-spacing-md); }
.g896-p-lg { padding: var(--g896-spacing-lg); }

.g896-fade-in {
    animation: g896-fade-in 0.5s ease-in-out;
}

@keyframes g896-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.g896-skeleton {
    background: linear-gradient(90deg, var(--g896-secondary-dark) 25%, var(--g896-primary-dark) 50%, var(--g896-secondary-dark) 75%);
    background-size: 200% 100%;
    animation: g896-skeleton-loading 1.5s infinite;
}

@keyframes g896-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive design */
@media (max-width: 768px) {
    .g896-mobile-menu-toggle {
        display: block;
    }

    .g896-main {
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .g896-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--g896-spacing-sm);
    }

    .g896-game-image {
        height: 100px;
    }

    .g896-carousel-slide img {
        height: 150px;
    }

    .g896-carousel-title {
        font-size: var(--g896-font-size-lg);
    }

    .g896-bottom-nav {
        display: block;
    }
}

@media (min-width: 769px) {
    .g896-bottom-nav {
        display: none;
    }

    .g896-main {
        padding-bottom: 0;
    }

    .g896-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .g896-container {
        padding: 0 var(--g896-spacing-sm);
    }

    .g896-header-content {
        padding: var(--g896-spacing-sm);
    }

    .g896-games-grid {
        grid-template-columns: 1fr;
    }

    .g896-game-filters {
        gap: var(--g896-spacing-xs);
    }

    .g896-game-filter-btn {
        padding: var(--g896-spacing-xs) var(--g896-spacing-sm);
        font-size: var(--g896-font-size-xs);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --g896-primary-dark: #0a0a0a;
        --g896-secondary-dark: #1a1a1a;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --g896-gold: #FFFF00;
        --g896-light-gray: #FFFFFF;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .g896-header,
    .g896-bottom-nav,
    .g896-footer {
        display: none;
    }

    .g896-main {
        margin-top: 0;
        padding: 0;
    }
}