/**
 * iBeth - Main Stylesheet
 * Prefix: gf5b-
 * Color Palette: #4B0082 | #E0FFFF | #004D40 | #2E4057
 */

/* CSS Variables */
:root {
    --gf5b-primary: #4B0082;
    --gf5b-secondary: #004D40;
    --gf5b-accent: #E0FFFF;
    --gf5b-dark: #2E4057;
    --gf5b-bg: #1a1a2e;
    --gf5b-bg-light: #16213e;
    --gf5b-text: #E0FFFF;
    --gf5b-text-dark: #004D40;
    --gf5b-gold: #ffd700;
    --gf5b-gradient: linear-gradient(135deg, #4B0082 0%, #2E4057 100%);
    --gf5b-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::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.6rem;
    line-height: 1.5;
    background-color: var(--gf5b-bg);
    color: var(--gf5b-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.gf5b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gf5b-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header */
.gf5b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gf5b-gradient);
    padding: 1rem;
    box-shadow: var(--gf5b-shadow);
}

.gf5b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.gf5b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gf5b-accent);
}

.gf5b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.gf5b-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gf5b-gold);
}

.gf5b-header-actions {
    display: flex;
    gap: 0.8rem;
}

.gf5b-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gf5b-btn-primary {
    background: var(--gf5b-gold);
    color: var(--gf5b-primary);
}

.gf5b-btn-primary:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

.gf5b-btn-secondary {
    background: transparent;
    color: var(--gf5b-accent);
    border: 2px solid var(--gf5b-accent);
}

.gf5b-btn-secondary:hover {
    background: var(--gf5b-accent);
    color: var(--gf5b-primary);
}

/* Hamburger Menu */
.gf5b-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.gf5b-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gf5b-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.gf5b-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.gf5b-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.gf5b-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation */
.gf5b-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.gf5b-nav a {
    color: var(--gf5b-accent);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s;
}

.gf5b-nav a:hover {
    color: var(--gf5b-gold);
}

/* Mobile Menu */
.gf5b-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gf5b-bg-light);
    z-index: 9999;
    padding: 8rem 2rem 2rem;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.gf5b-mobile-menu.gf5b-menu-active {
    left: 0;
}

.gf5b-mobile-menu a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--gf5b-accent);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(224, 255, 255, 0.1);
    transition: all 0.3s;
}

.gf5b-mobile-menu a:hover {
    background: rgba(75, 0, 130, 0.3);
    color: var(--gf5b-gold);
}

.gf5b-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: all 0.3s;
}

.gf5b-menu-overlay.gf5b-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.gf5b-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 1rem 0;
}

.gf5b-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gf5b-slide {
    min-width: 100%;
    display: none;
}

.gf5b-slide.gf5b-slide-active {
    display: block;
}

.gf5b-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

.gf5b-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gf5b-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.gf5b-dot.gf5b-dot-active {
    background: var(--gf5b-gold);
}

/* Section Titles */
.gf5b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gf5b-gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gf5b-primary);
}

/* Game Grid */
.gf5b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.gf5b-game-card {
    background: var(--gf5b-bg-light);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gf5b-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(75, 0, 130, 0.4);
}

.gf5b-game-card img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.gf5b-game-name {
    font-size: 1.1rem;
    padding: 0.5rem;
    color: var(--gf5b-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Cards */
.gf5b-info-card {
    background: var(--gf5b-bg-light);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--gf5b-primary);
}

.gf5b-info-card h3 {
    color: var(--gf5b-gold);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.gf5b-info-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--gf5b-accent);
}

/* Footer */
.gf5b-footer {
    background: var(--gf5b-gradient);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.gf5b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gf5b-footer-links a {
    color: var(--gf5b-accent);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.gf5b-footer-links a:hover {
    color: var(--gf5b-gold);
}

.gf5b-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.gf5b-partners img {
    width: 40px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.8;
}

.gf5b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gf5b-accent);
    opacity: 0.8;
    margin-top: 1rem;
}

/* Bottom Navigation */
.gf5b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #2E4057 0%, #1a1a2e 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.gf5b-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    text-decoration: none;
    color: var(--gf5b-accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gf5b-bottom-nav-item:hover,
.gf5b-bottom-nav-item.gf5b-active {
    color: var(--gf5b-gold);
    transform: scale(1.1);
}

.gf5b-bottom-nav-item i,
.gf5b-bottom-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.gf5b-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Links */
.gf5b-promo-link {
    color: var(--gf5b-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.gf5b-promo-link:hover {
    text-decoration: underline;
    color: #ffed4a;
}

/* Touch States */
.gf5b-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Responsive */
@media (min-width: 769px) {
    .gf5b-bottom-nav {
        display: none;
    }

    .gf5b-container {
        max-width: 800px;
    }

    .gf5b-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .gf5b-nav {
        display: none;
    }

    .gf5b-hamburger {
        display: flex;
    }

    .gf5b-header-actions {
        gap: 0.5rem;
    }

    .gf5b-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
}

/* Utilities */
.gf5b-text-center {
    text-align: center;
}

.gf5b-mt-1 {
    margin-top: 1rem;
}

.gf5b-mb-1 {
    margin-bottom: 1rem;
}

.gf5b-hidden {
    display: none !important;
}
