/**
 * x7game-click CSS Module
 * Prefix: gcbb-
 * Purpose: Mobile-first responsive styling
 */

/* CSS Variables */
:root {
    --gcbb-primary: #00BFFF;
    --gcbb-secondary: #FFC0CB;
    --gcbb-accent: #F08080;
    --gcbb-bg-dark: #1C2833;
    --gcbb-bg-light: #2C3E50;
    --gcbb-text-light: #ECF0F1;
    --gcbb-text-muted: #BDC3C7;
    --gcbb-border: #34495E;
    --gcbb-gradient: linear-gradient(135deg, #00BFFF 0%, #F08080 100%);
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--gcbb-bg-dark);
    color: var(--gcbb-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
}

/* Container */
.gcbb-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.gcbb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gcbb-bg-dark);
    border-bottom: 1px solid var(--gcbb-border);
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.gcbb-header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gcbb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.gcbb-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gcbb-text-light);
}

.gcbb-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.gcbb-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gcbb-primary);
}

.gcbb-header-actions {
    display: flex;
    gap: 0.8rem;
}

.gcbb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 36px;
}

.gcbb-btn-primary {
    background: var(--gcbb-gradient);
    color: #fff;
}

.gcbb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
}

.gcbb-btn-secondary {
    background: transparent;
    color: var(--gcbb-primary);
    border: 1px solid var(--gcbb-primary);
}

.gcbb-btn-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
}

.gcbb-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.gcbb-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gcbb-text-light);
    transition: all 0.3s ease;
}

.gcbb-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gcbb-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.gcbb-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.gcbb-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gcbb-bg-dark);
    z-index: 9999;
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.gcbb-menu-active {
    transform: translateX(0);
}

.gcbb-nav-list {
    list-style: none;
}

.gcbb-nav-item {
    margin-bottom: 1.5rem;
}

.gcbb-nav-link {
    color: var(--gcbb-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gcbb-nav-link:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--gcbb-primary);
}

.gcbb-nav-link i {
    font-size: 2rem;
    width: 24px;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.gcbb-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.gcbb-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gcbb-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.gcbb-slide-active {
    opacity: 1;
}

.gcbb-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.gcbb-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gcbb-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gcbb-dot-active {
    background: var(--gcbb-primary);
    width: 24px;
    border-radius: 4px;
}

/* Sections */
.gcbb-section {
    padding: 2rem 0;
}

.gcbb-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gcbb-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gcbb-section-title i {
    font-size: 2.2rem;
}

/* Game Grid */
.gcbb-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gcbb-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gcbb-game-card:hover {
    transform: translateY(-4px);
}

.gcbb-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--gcbb-border);
    transition: border-color 0.3s ease;
}

.gcbb-game-card:hover .gcbb-game-img {
    border-color: var(--gcbb-primary);
}

.gcbb-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gcbb-text-light);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.gcbb-card {
    background: var(--gcbb-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gcbb-border);
}

.gcbb-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gcbb-primary);
    margin-bottom: 1rem;
}

.gcbb-card-text {
    color: var(--gcbb-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gcbb-card-text strong {
    color: var(--gcbb-primary);
    cursor: pointer;
}

.gcbb-card-text a {
    color: var(--gcbb-secondary);
    text-decoration: none;
}

.gcbb-card-text a:hover {
    text-decoration: underline;
}

/* List Styles */
.gcbb-list {
    list-style: none;
}

.gcbb-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gcbb-border);
    color: var(--gcbb-text-muted);
}

.gcbb-list-item:last-child {
    border-bottom: none;
}

.gcbb-list-item i {
    color: var(--gcbb-primary);
    margin-right: 0.8rem;
}

/* Footer */
.gcbb-footer {
    background: var(--gcbb-bg-light);
    border-top: 1px solid var(--gcbb-border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.gcbb-footer-section {
    margin-bottom: 2rem;
}

.gcbb-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gcbb-primary);
    margin-bottom: 1rem;
}

.gcbb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.gcbb-footer-link {
    color: var(--gcbb-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.gcbb-footer-link:hover {
    color: var(--gcbb-primary);
}

.gcbb-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gcbb-partner-logo {
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.gcbb-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.gcbb-copyright {
    text-align: center;
    color: var(--gcbb-text-muted);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gcbb-border);
}

/* Mobile Bottom Navigation */
.gcbb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--gcbb-bg-dark) 0%, #0F1A24 100%);
    border-top: 1px solid var(--gcbb-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .gcbb-bottom-nav {
        display: none;
    }
}

.gcbb-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gcbb-text-muted);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.gcbb-nav-btn:hover,
.gcbb-nav-btn.gcbb-nav-active {
    color: var(--gcbb-primary);
    background: rgba(0, 191, 255, 0.1);
    transform: scale(1.05);
}

.gcbb-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.gcbb-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Links */
.gcbb-promo-text {
    color: var(--gcbb-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gcbb-promo-text:hover {
    color: var(--gcbb-secondary);
}

/* Responsive Grid */
@media (max-width: 380px) {
    .gcbb-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utilities */
.gcbb-text-center {
    text-align: center;
}

.gcbb-mt-2 {
    margin-top: 2rem;
}

.gcbb-mb-2 {
    margin-bottom: 2rem;
}
