/**
 * Blucky - Main Stylesheet
 * CSS class prefix: g87f-
 * Color palette: #87CEEB | #F5F5F5 | #FFF8DC | #DCDCDC | #2C3E50
 * Mobile-first design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --g87f-primary: #87CEEB;
    --g87f-secondary: #FFF8DC;
    --g87f-accent: #2C3E50;
    --g87f-bg-dark: #2C3E50;
    --g87f-bg-light: #F5F5F5;
    --g87f-bg-card: #FFFFFF;
    --g87f-text-dark: #2C3E50;
    --g87f-text-light: #FFFFFF;
    --g87f-text-muted: #DCDCDC;
    --g87f-border: #DCDCDC;
    --g87f-success: #28a745;
    --g87f-warning: #ffc107;
    --g87f-gradient: linear-gradient(135deg, #87CEEB 0%, #2C3E50 100%);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--g87f-text-dark);
    background-color: var(--g87f-bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g87f-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.g87f-wrapper {
    padding: 1rem;
}

/* Header */
.g87f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g87f-bg-dark);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.g87f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.g87f-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g87f-logo img {
    width: 28px;
    height: 28px;
}

.g87f-logo-text {
    color: var(--g87f-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.g87f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g87f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.g87f-btn-primary {
    background: var(--g87f-primary);
    color: var(--g87f-text-dark);
}

.g87f-btn-primary:hover {
    background: #6bb8d9;
    transform: scale(1.05);
}

.g87f-btn-secondary {
    background: transparent;
    color: var(--g87f-primary);
    border: 1px solid var(--g87f-primary);
}

.g87f-btn-secondary:hover {
    background: var(--g87f-primary);
    color: var(--g87f-text-dark);
}

.g87f-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g87f-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g87f-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g87f-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.pro7fc-menu-active {
    right: 0;
}

.g87f-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pro7fc-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g87f-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--g87f-primary);
    font-size: 2rem;
    cursor: pointer;
}

.g87f-menu-nav {
    margin-top: 3rem;
}

.g87f-menu-link {
    display: block;
    padding: 1rem;
    color: var(--g87f-text-light);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(135,206,235,0.2);
    transition: all 0.3s ease;
}

.g87f-menu-link:hover {
    background: rgba(135,206,235,0.1);
    color: var(--g87f-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.g87f-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.g87f-slider {
    position: relative;
}

.g87f-slide {
    display: none;
    cursor: pointer;
}

.g87f-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.g87f-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g87f-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pro7fc-dot-active {
    background: var(--g87f-primary);
    transform: scale(1.2);
}

/* Section Styles */
.g87f-section {
    padding: 1.5rem 1rem;
    background: var(--g87f-bg-card);
    margin-bottom: 1rem;
}

.g87f-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g87f-text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--g87f-primary);
}

.g87f-section-subtitle {
    font-size: 1.4rem;
    color: var(--g87f-text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Game Grid */
.g87f-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g87f-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g87f-game-item:hover {
    transform: scale(1.05);
}

.g87f-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.3rem;
}

.g87f-game-name {
    font-size: 1rem;
    color: var(--g87f-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.g87f-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.g87f-category-icon {
    font-size: 2rem;
    color: var(--g87f-primary);
}

.g87f-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g87f-text-dark);
}

/* Features Grid */
.g87f-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g87f-feature-card {
    background: var(--g87f-bg-light);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.g87f-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.g87f-feature-icon {
    font-size: 2.4rem;
    color: var(--g87f-primary);
    margin-bottom: 0.5rem;
}

.g87f-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--g87f-text-dark);
    margin-bottom: 0.3rem;
}

.g87f-feature-desc {
    font-size: 1rem;
    color: #666;
}

/* Promo Links */
.g87f-promo-link {
    color: var(--g87f-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g87f-promo-link:hover {
    color: #6bb8d9;
    text-decoration: underline;
}

.g87f-promo-btn {
    display: inline-block;
    background: var(--g87f-gradient);
    color: var(--g87f-text-light);
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.g87f-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(135,206,235,0.4);
}

/* Footer */
.g87f-footer {
    background: var(--g87f-bg-dark);
    color: var(--g87f-text-light);
    padding: 2rem 1rem;
}

.g87f-footer-section {
    margin-bottom: 1.5rem;
}

.g87f-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g87f-primary);
    margin-bottom: 0.8rem;
}

.g87f-footer-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--g87f-text-muted);
}

.g87f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.g87f-footer-link {
    color: var(--g87f-text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g87f-footer-link:hover {
    color: var(--g87f-primary);
}

.g87f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.g87f-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.g87f-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.g87f-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g87f-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(135,206,235,0.2);
}

/* Bottom Navigation - Mobile Only */
.g87f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g87f-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.g87f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--g87f-text-muted);
}

.g87f-nav-item:hover,
.g87f-nav-item.active {
    color: var(--g87f-primary);
}

.g87f-nav-item:hover .g87f-nav-icon,
.g87f-nav-item.active .g87f-nav-icon {
    transform: scale(1.1);
}

.g87f-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.g87f-nav-text {
    font-size: 10px;
    font-weight: 500;
}

@media (min-width: 769px) {
    .g87f-bottom-nav {
        display: none;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .g87f-header-inner {
        max-width: 1200px;
    }

    .g87f-container {
        max-width: 1200px;
    }

    .g87f-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .g87f-menu-toggle {
        display: none;
    }
}

/* Utility Classes */
.g87f-text-center {
    text-align: center;
}

.g87f-mb-1 {
    margin-bottom: 1rem;
}

.g87f-mb-2 {
    margin-bottom: 2rem;
}

.g87f-hidden {
    display: none;
}

/* Animations */
@keyframes g87f-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g87f-animate {
    animation: g87f-fadeIn 0.5s ease forwards;
}
