/**
 * funbingo Website CSS Theme
 * Mobile-first responsive design with gabd- prefix
 * Color scheme: #5F9EA0 | #DEE2E6 | #ADD8E6 | #2C3E50
 */

/* CSS Variables for consistent theming */
:root {
    --gabd-primary: #5F9EA0;
    --gabd-secondary: #DEE2E6;
    --gabd-accent: #ADD8E6;
    --gabd-dark: #2C3E50;
    --gabd-light: #ffffff;
    --gabd-text: #333333;
    --gabd-text-light: #666666;
    --gabd-text-lighter: #999999;
    --gabd-border: #e0e0e0;
    --gabd-shadow: rgba(0, 0, 0, 0.1);
    --gabd-gradient: linear-gradient(135deg, var(--gabd-primary) 0%, var(--gabd-accent) 100%);
    --gabd-radius: 8px;
    --gabd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--gabd-text);
    background-color: var(--gabd-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first container */
.gabd-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.gabd-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background-color: var(--gabd-light);
    min-height: 100vh;
    position: relative;
}

/* Header styles */
.gabd-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--gabd-dark) 0%, var(--gabd-primary) 100%);
    box-shadow: 0 2px 10px var(--gabd-shadow);
    z-index: 1000;
    transition: var(--gabd-transition);
}

.gabd-header.gabd-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gabd-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 60px;
}

.gabd-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gabd-light);
}

.gabd-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.gabd-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gabd-light);
    text-decoration: none;
}

.gabd-header-actions {
    display: flex;
    gap: 8px;
}

.gabd-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--gabd-radius);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--gabd-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    white-space: nowrap;
}

.gabd-btn-primary {
    background: linear-gradient(135deg, var(--gabd-accent) 0%, var(--gabd-primary) 100%);
    color: var(--gabd-light);
    box-shadow: 0 2px 8px rgba(95, 158, 160, 0.3);
}

.gabd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 158, 160, 0.4);
}

.gabd-btn-secondary {
    background: transparent;
    color: var(--gabd-light);
    border: 2px solid var(--gabd-light);
}

.gabd-btn-secondary:hover {
    background: var(--gabd-light);
    color: var(--gabd-primary);
}

.gabd-menu-toggle {
    background: none;
    border: none;
    color: var(--gabd-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--gabd-radius);
    transition: var(--gabd-transition);
    display: none;
}

.gabd-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
.gabd-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    max-width: 430px;
    height: calc(100vh - 60px);
    background: var(--gabd-dark);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.gabd-mobile-menu.gabd-menu-open {
    transform: translateX(0);
}

.gabd-mobile-menu-content {
    padding: 24px 16px;
}

.gabd-menu-nav {
    list-style: none;
}

.gabd-menu-nav li {
    margin-bottom: 4px;
}

.gabd-menu-nav a {
    display: block;
    padding: 16px 20px;
    color: var(--gabd-light);
    text-decoration: none;
    border-radius: var(--gabd-radius);
    font-size: 1.6rem;
    font-weight: 500;
    transition: var(--gabd-transition);
    border-left: 4px solid transparent;
}

.gabd-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--gabd-accent);
    transform: translateX(4px);
}

/* Main content area */
main {
    padding-top: 76px;
    padding-bottom: 80px;
    min-height: calc(100vh - 156px);
}

/* Carousel styles */
.gabd-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--gabd-radius);
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 4px 12px var(--gabd-shadow);
}

.gabd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gabd-slide.gabd-active {
    opacity: 1;
}

.gabd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gabd-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gabd-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--gabd-transition);
}

.gabd-indicator.gabd-active {
    background: var(--gabd-light);
    width: 24px;
    border-radius: 4px;
}

/* Typography */
.gabd-heading-1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gabd-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.gabd-heading-2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gabd-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.gabd-heading-3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gabd-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.gabd-text {
    margin-bottom: 16px;
    line-height: 1.6;
}

.gabd-text-center {
    text-align: center;
}

.gabd-text-light {
    color: var(--gabd-text-light);
}

/* Card components */
.gabd-card {
    background: var(--gabd-light);
    border-radius: var(--gabd-radius);
    box-shadow: 0 2px 8px var(--gabd-shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: var(--gabd-transition);
}

.gabd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--gabd-shadow);
}

.gabd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gabd-border);
}

.gabd-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gabd-dark);
}

.gabd-card-content {
    color: var(--gabd-text);
}

/* Game grid styles */
.gabd-game-section {
    margin-bottom: 32px;
}

.gabd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--gabd-gradient);
    border-radius: var(--gabd-radius);
    color: var(--gabd-light);
}

.gabd-section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.gabd-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.gabd-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gabd-text);
    transition: var(--gabd-transition);
    border-radius: var(--gabd-radius);
    padding: 8px;
    background: var(--gabd-light);
    box-shadow: 0 2px 6px var(--gabd-shadow);
}

.gabd-game-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--gabd-shadow);
    background: linear-gradient(135deg, rgba(95, 158, 160, 0.1) 0%, rgba(173, 216, 230, 0.1) 100%);
}

.gabd-game-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--gabd-radius);
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px var(--gabd-shadow);
}

.gabd-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--gabd-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature sections */
.gabd-feature-section {
    background: linear-gradient(135deg, var(--gabd-secondary) 0%, var(--gabd-accent) 100%);
    border-radius: var(--gabd-radius);
    padding: 24px;
    margin-bottom: 24px;
    color: var(--gabd-dark);
}

.gabd-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.gabd-feature-item {
    background: var(--gabd-light);
    padding: 16px;
    border-radius: var(--gabd-radius);
    text-align: center;
    box-shadow: 0 2px 6px var(--gabd-shadow);
}

.gabd-feature-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
    color: var(--gabd-primary);
}

.gabd-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gabd-dark);
}

.gabd-feature-text {
    font-size: 1.2rem;
    color: var(--gabd-text-light);
}

/* Bottom navigation */
.gabd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 64px;
    background: linear-gradient(135deg, var(--gabd-dark) 0%, var(--gabd-primary) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px var(--gabd-shadow);
    z-index: 1000;
}

.gabd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gabd-light);
    min-width: 60px;
    min-height: 60px;
    transition: var(--gabd-transition);
    border-radius: var(--gabd-radius);
    position: relative;
}

.gabd-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.gabd-nav-item.gabd-active {
    background: rgba(255, 255, 255, 0.2);
}

.gabd-nav-icon {
    font-size: 2.0rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gabd-nav-text {
    font-size: 1.0rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
}

/* Footer */
.gabd-footer {
    background: var(--gabd-dark);
    color: var(--gabd-light);
    padding: 32px 16px 20px;
    margin-top: 48px;
}

.gabd-footer-content {
    margin-bottom: 24px;
}

.gabd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.gabd-footer-link {
    color: var(--gabd-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--gabd-transition);
}

.gabd-footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gabd-partners {
    margin-bottom: 24px;
    text-align: center;
}

.gabd-partners-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gabd-accent);
}

.gabd-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    justify-items: center;
}

.gabd-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--gabd-transition);
}

.gabd-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gabd-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gabd-text-lighter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

/* Utility classes */
.gabd-mb-1 { margin-bottom: 8px; }
.gabd-mb-2 { margin-bottom: 16px; }
.gabd-mb-3 { margin-bottom: 24px; }
.gabd-mt-1 { margin-top: 8px; }
.gabd-mt-2 { margin-top: 16px; }
.gabd-mt-3 { margin-top: 24px; }

.gabd-text-primary { color: var(--gabd-primary); }
.gabd-text-accent { color: var(--gabd-accent); }
.gabd-text-dark { color: var(--gabd-dark); }

.gabd-bg-primary { background-color: var(--gabd-primary); }
.gabd-bg-accent { background-color: var(--gabd-accent); }
.gabd-bg-dark { background-color: var(--gabd-dark); }

/* Responsive design */
@media (min-width: 768px) {
    .gabd-menu-toggle {
        display: none;
    }

    .gabd-mobile-menu {
        display: none;
    }

    .gabd-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0;
    }

    .gabd-header-content {
        padding: 16px 24px;
    }

    .gabd-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gabd-feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .gabd-header-actions .gabd-btn {
        display: none;
    }

    .gabd-menu-toggle {
        display: block;
    }

    .gabd-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .gabd-game-icon {
        width: 45px;
        height: 45px;
    }

    .gabd-game-name {
        font-size: 1.0rem;
    }
}

/* Loading animations */
@keyframes gabd-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.gabd-loading {
    animation: gabd-pulse 1.5s ease-in-out infinite;
}

/* Error states */
.gabd-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Success states */
.gabd-success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}