/**
 * ACEPH Login - Gaming Platform Styles
 * Version: 1.0.0
 * Prefix: gb8a-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --gb8a-bg: #F5F5F5;
    --gb8a-primary: #2C3E50;
    --gb8a-secondary: #0D1117;
    --gb8a-accent: #BF360C;
    --gb8a-text: #696969;
    --gb8a-white: #FFFFFF;
    --gb8a-light-gray: #E8E8E8;
    --gb8a-dark-gray: #3A3A3A;
    --gb8a-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gb8a-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gb8a-radius: 12px;
    --gb8a-radius-sm: 8px;
    --gb8a-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gb8a-bg);
    color: var(--gb8a-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.gb8a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gb8a-white);
    box-shadow: var(--gb8a-shadow);
    transition: var(--gb8a-transition);
}

.gb8a-header.gb8a-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--gb8a-shadow-hover);
}

.gb8a-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.gb8a-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.gb8a-logo img {
    height: 36px;
    width: auto;
}

.gb8a-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gb8a-primary);
}

.gb8a-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gb8a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--gb8a-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gb8a-transition);
    text-decoration: none;
}

.gb8a-btn-primary {
    background: var(--gb8a-accent);
    color: var(--gb8a-white);
}

.gb8a-btn-primary:hover {
    background: #D6430F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 54, 12, 0.3);
}

.gb8a-btn-secondary {
    background: var(--gb8a-primary);
    color: var(--gb8a-white);
}

.gb8a-btn-secondary:hover {
    background: #34495E;
    transform: translateY(-2px);
}

.gb8a-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gb8a-primary);
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.gb8a-hero {
    background: linear-gradient(135deg, var(--gb8a-primary) 0%, var(--gb8a-secondary) 100%);
    padding: 100px 16px 60px;
    text-align: center;
    color: var(--gb8a-white);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gb8a-hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.gb8a-hero p {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gb8a-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.gb8a-hero .gb8a-btn {
    padding: 14px 32px;
    font-size: 1rem;
}

.gb8a-hero .gb8a-btn-outline {
    background: transparent;
    border: 2px solid var(--gb8a-white);
    color: var(--gb8a-white);
}

.gb8a-hero .gb8a-btn-outline:hover {
    background: var(--gb8a-white);
    color: var(--gb8a-primary);
}

/* Category Section */
.gb8a-categories {
    padding: 40px 16px;
    background: var(--gb8a-white);
}

.gb8a-section-title {
    text-align: center;
    margin-bottom: 24px;
}

.gb8a-section-title h2 {
    font-size: 1.5rem;
    color: var(--gb8a-primary);
    font-weight: 700;
}

.gb8a-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.gb8a-category-btn {
    padding: 10px 20px;
    border: 2px solid var(--gb8a-light-gray);
    border-radius: var(--gb8a-radius-sm);
    background: var(--gb8a-white);
    color: var(--gb8a-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gb8a-transition);
}

.gb8a-category-btn:hover,
.gb8a-category-btn.gb8a-active {
    border-color: var(--gb8a-accent);
    background: var(--gb8a-accent);
    color: var(--gb8a-white);
}

/* Game Grid */
.gb8a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gb8a-game-card {
    background: var(--gb8a-white);
    border-radius: var(--gb8a-radius);
    overflow: hidden;
    box-shadow: var(--gb8a-shadow);
    cursor: pointer;
    transition: var(--gb8a-transition);
}

.gb8a-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gb8a-shadow-hover);
}

.gb8a-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gb8a-game-card-title {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gb8a-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.gb8a-features {
    padding: 40px 16px;
    background: var(--gb8a-bg);
}

.gb8a-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gb8a-feature-card {
    background: var(--gb8a-white);
    padding: 24px;
    border-radius: var(--gb8a-radius);
    box-shadow: var(--gb8a-shadow);
    text-align: center;
}

.gb8a-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gb8a-primary), var(--gb8a-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--gb8a-white);
}

.gb8a-feature-card h3 {
    font-size: 1.1rem;
    color: var(--gb8a-primary);
    margin-bottom: 8px;
}

.gb8a-feature-card p {
    font-size: 0.875rem;
    color: var(--gb8a-text);
}

/* Promo Section */
.gb8a-promo {
    padding: 40px 16px;
    background: linear-gradient(135deg, var(--gb8a-secondary) 0%, var(--gb8a-primary) 100%);
    color: var(--gb8a-white);
    text-align: center;
}

.gb8a-promo h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.gb8a-promo-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--gb8a-white);
    border-radius: var(--gb8a-radius);
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.gb8a-promo-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.gb8a-promo .gb8a-btn {
    margin-top: 12px;
}

/* FAQ Section */
.gb8a-faq {
    padding: 40px 16px;
    background: var(--gb8a-white);
}

.gb8a-faq-list {
    max-width: 600px;
    margin: 0 auto;
}

.gb8a-faq-item {
    border: 1px solid var(--gb8a-light-gray);
    border-radius: var(--gb8a-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.gb8a-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gb8a-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--gb8a-primary);
    transition: var(--gb8a-transition);
}

.gb8a-faq-question:hover {
    background: var(--gb8a-light-gray);
}

.gb8a-faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.gb8a-faq-item.gb8a-active .gb8a-faq-icon {
    transform: rotate(180deg);
}

.gb8a-faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gb8a-faq-item.gb8a-active .gb8a-faq-answer {
    padding: 16px;
    max-height: 500px;
}

.gb8a-faq-answer p {
    font-size: 0.9rem;
    color: var(--gb8a-text);
}

/* Footer */
.gb8a-footer {
    background: var(--gb8a-secondary);
    color: var(--gb8a-white);
    padding: 40px 16px 100px;
}

.gb8a-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.gb8a-footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--gb8a-white);
}

.gb8a-footer-links {
    list-style: none;
}

.gb8a-footer-links li {
    margin-bottom: 8px;
}

.gb8a-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--gb8a-transition);
}

.gb8a-footer-links a:hover {
    color: var(--gb8a-white);
}

.gb8a-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.gb8a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gb8a-partners img {
    height: 24px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--gb8a-transition);
}

.gb8a-partners img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Mobile Bottom Navigation */
.gb8a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gb8a-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 8px;
}

.gb8a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    border: none;
    background: none;
    color: var(--gb8a-text);
    cursor: pointer;
    transition: var(--gb8a-transition);
    text-decoration: none;
}

.gb8a-nav-btn:hover,
.gb8a-nav-btn.gb8a-active {
    color: var(--gb8a-accent);
}

.gb8a-nav-btn i,
.gb8a-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.gb8a-nav-btn span {
    font-size: 10px;
    font-weight: 600;
}

.gb8a-nav-btn.gb8a-highlight {
    background: var(--gb8a-accent);
    color: var(--gb8a-white);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-top: -20px;
}

.gb8a-nav-btn.gb8a-highlight i {
    font-size: 24px;
}

/* Mobile Menu */
.gb8a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--gb8a-white);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.gb8a-mobile-menu.gb8a-active {
    right: 0;
}

.gb8a-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;
}

.gb8a-menu-overlay.gb8a-active {
    opacity: 1;
    visibility: visible;
}

.gb8a-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gb8a-primary);
}

.gb8a-menu-links {
    list-style: none;
}

.gb8a-menu-links li {
    margin-bottom: 8px;
}

.gb8a-menu-links a {
    display: block;
    padding: 12px 16px;
    color: var(--gb8a-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--gb8a-radius-sm);
    transition: var(--gb8a-transition);
}

.gb8a-menu-links a:hover {
    background: var(--gb8a-bg);
    color: var(--gb8a-accent);
}

/* Toast Notification */
.gb8a-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gb8a-secondary);
    color: var(--gb8a-white);
    padding: 12px 24px;
    border-radius: var(--gb8a-radius);
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gb8a-toast.gb8a-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
.gb8a-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gb8a-animate-on-scroll.gb8a-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .gb8a-bottom-nav {
        display: none;
    }

    .gb8a-header-inner {
        padding: 16px 24px;
    }

    .gb8a-menu-toggle {
        display: none;
    }

    .gb8a-hero {
        padding: 120px 24px 80px;
    }

    .gb8a-hero h1 {
        font-size: 3rem;
    }

    .gb8a-hero p {
        font-size: 1.25rem;
    }

    .gb8a-hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .gb8a-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .gb8a-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .gb8a-footer-top {
        grid-template-columns: repeat(4, 1fr);
    }

    .gb8a-footer {
        padding-bottom: 40px;
    }

    .gb8a-categories,
    .gb8a-features,
    .gb8a-promo,
    .gb8a-faq {
        padding: 60px 24px;
    }

    main {
        padding-bottom: 0 !important;
    }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }

    .gb8a-menu-toggle {
        display: block;
    }

    .gb8a-header-actions .gb8a-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.gb8a-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.gb8a-text-center {
    text-align: center;
}

.gb8a-mt-20 {
    margin-top: 20px;
}

.gb8a-mb-20 {
    margin-bottom: 20px;
}
