/**
 * jl1111 Main Stylesheet
 * Prefix: gbd5-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --gbd5-primary: #C71585;
    --gbd5-secondary: #E91E63;
    --gbd5-accent: #FFB3BA;
    --gbd5-bg: #141414;
    --gbd5-bg-light: #1a1a1a;
    --gbd5-text: #ffffff;
    --gbd5-text-muted: #708090;
    --gbd5-border: #2a2a2a;
    --gbd5-gradient: linear-gradient(135deg, #C71585 0%, #E91E63 100%);
    --gbd5-shadow: 0 4px 15px rgba(199, 21, 133, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gbd5-bg);
    color: var(--gbd5-text);
    line-height: 1.5;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.gbd5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.gbd5-wrapper {
    padding: 1rem 0;
}

/* Header */
.gbd5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--gbd5-bg) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gbd5-border);
}

.gbd5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.gbd5-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gbd5-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.gbd5-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gbd5-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gbd5-header-actions {
    display: flex;
    gap: 0.6rem;
}

.gbd5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.gbd5-btn-primary {
    background: var(--gbd5-gradient);
    color: var(--gbd5-text);
    box-shadow: var(--gbd5-shadow);
}

.gbd5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 21, 133, 0.4);
}

.gbd5-btn-outline {
    background: transparent;
    color: var(--gbd5-accent);
    border: 1px solid var(--gbd5-primary);
}

.gbd5-btn-outline:hover {
    background: rgba(199, 21, 133, 0.1);
}

.gbd5-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--gbd5-text);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.gbd5-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.gbd5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--gbd5-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.gbd5-menu-active {
    right: 0;
}

.gbd5-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 ease;
}

.gbd5-overlay-active {
    opacity: 1;
    visibility: visible;
}

.gbd5-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--gbd5-text);
    cursor: pointer;
    border-radius: 8px;
}

.gbd5-menu-nav {
    list-style: none;
}

.gbd5-menu-nav li {
    margin-bottom: 0.8rem;
}

.gbd5-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.4rem;
    color: var(--gbd5-text);
    transition: all 0.3s ease;
}

.gbd5-menu-nav a:hover {
    background: rgba(199, 21, 133, 0.2);
    color: var(--gbd5-accent);
}

.gbd5-menu-nav i {
    width: 24px;
    text-align: center;
}

/* Main Content */
.gbd5-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .gbd5-main {
        padding-bottom: 2rem;
    }
}

/* Slider */
.gbd5-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.gbd5-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gbd5-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.gbd5-slide-active {
    opacity: 1;
    position: relative;
}

.gbd5-slide img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

.gbd5-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.gbd5-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gbd5-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gbd5-dot-active {
    background: var(--gbd5-primary);
    width: 20px;
    border-radius: 4px;
}

/* Section Title */
.gbd5-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gbd5-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gbd5-section-title i {
    color: var(--gbd5-primary);
}

/* Games Grid */
.gbd5-games-section {
    padding: 1.5rem 0;
}

.gbd5-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.gbd5-game-card {
    background: var(--gbd5-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gbd5-border);
}

.gbd5-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--gbd5-primary);
    box-shadow: var(--gbd5-shadow);
}

.gbd5-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gbd5-game-name {
    font-size: 1.1rem;
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gbd5-text);
}

/* Content Sections */
.gbd5-content-section {
    background: var(--gbd5-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--gbd5-border);
}

.gbd5-content-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--gbd5-accent);
}

.gbd5-content-section p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--gbd5-text);
    margin-bottom: 0.8rem;
}

.gbd5-content-section ul {
    list-style: none;
    padding-left: 0;
}

.gbd5-content-section li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.3rem;
}

.gbd5-content-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gbd5-primary);
}

/* Promo Link */
.gbd5-promo-link {
    color: var(--gbd5-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gbd5-promo-link:hover {
    color: var(--gbd5-primary);
    text-decoration: underline;
}

.gbd5-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    background: var(--gbd5-gradient);
    color: var(--gbd5-text);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--gbd5-shadow);
    transition: all 0.3s ease;
}

.gbd5-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(199, 21, 133, 0.5);
}

/* Footer */
.gbd5-footer {
    background: var(--gbd5-bg-light);
    padding: 2rem 1.2rem;
    border-top: 1px solid var(--gbd5-border);
}

.gbd5-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.gbd5-footer-partners img {
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gbd5-footer-partners img:hover {
    opacity: 1;
}

.gbd5-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.gbd5-footer-links a {
    font-size: 1.2rem;
    color: var(--gbd5-text-muted);
    transition: color 0.3s;
}

.gbd5-footer-links a:hover {
    color: var(--gbd5-accent);
}

.gbd5-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gbd5-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--gbd5-border);
}

/* Bottom Navigation */
.gbd5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, var(--gbd5-bg) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--gbd5-border);
}

@media (min-width: 769px) {
    .gbd5-bottom-nav {
        display: none;
    }
}

.gbd5-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--gbd5-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gbd5-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.gbd5-bottom-nav-item span {
    font-size: 10px;
}

.gbd5-bottom-nav-item:hover,
.gbd5-nav-active {
    color: var(--gbd5-primary);
}

.gbd5-nav-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gbd5-gradient);
    border-radius: 0 0 3px 3px;
}

/* FAQ Section */
.gbd5-faq-item {
    background: var(--gbd5-bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--gbd5-border);
}

.gbd5-faq-question {
    padding: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--gbd5-accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gbd5-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--gbd5-text);
    line-height: 1.5;
}

/* Features Grid */
.gbd5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gbd5-feature-card {
    background: var(--gbd5-bg-light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--gbd5-border);
    transition: all 0.3s ease;
}

.gbd5-feature-card:hover {
    border-color: var(--gbd5-primary);
    transform: translateY(-2px);
}

.gbd5-feature-card i {
    font-size: 28px;
    color: var(--gbd5-primary);
    margin-bottom: 0.5rem;
}

.gbd5-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--gbd5-text);
}

.gbd5-feature-card p {
    font-size: 1.1rem;
    color: var(--gbd5-text-muted);
}

/* Stats */
.gbd5-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.gbd5-stat {
    text-align: center;
}

.gbd5-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gbd5-primary);
}

.gbd5-stat-label {
    font-size: 1.1rem;
    color: var(--gbd5-text-muted);
}

/* Utilities */
.gbd5-text-center {
    text-align: center;
}

.gbd5-mt-1 {
    margin-top: 0.5rem;
}

.gbd5-mb-1 {
    margin-bottom: 0.5rem;
}

.gbd5-py-2 {
    padding: 1rem 0;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .gbd5-container {
        max-width: 768px;
    }

    .gbd5-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gbd5-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gbd5-header-inner {
        max-width: 768px;
    }

    .gbd5-footer {
        max-width: 768px;
        margin: 0 auto;
    }
}
