/* BigWin Casino Layout Styles - Mobile First Design */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for easy rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem; /* 16px */
    line-height: 1.5;
    color: #ffffff;
    background-color: #1A1A1A;
    overflow-x: hidden;
}

/* CSS Variables for Theme Colors */
:root {
    --g2d0-primary: #FFAA00;
    --g2d0-secondary: #E9967A;
    --g2d0-accent: #C71585;
    --g2d0-dark: #1A1A1A;
    --g2d0-light: #FF7F50;
    --g2d0-text: #ffffff;
    --g2d0-text-secondary: #cccccc;
    --g2d0-bg-card: #2a2a2a;
    --g2d0-bg-hover: #3a3a3a;
    --g2d0-border: #444444;
    --g2d0-success: #4CAF50;
    --g2d0-warning: #FF9800;
    --g2d0-error: #F44336;
}

/* Utility Classes */
.g2d0-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g2d0-wrapper {
    padding: 1.5rem;
}

.g2d0-grid {
    display: grid;
    gap: 1.5rem;
}

.g2d0-flex {
    display: flex;
}

.g2d0-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.g2d0-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g2d0-text-center {
    text-align: center;
}

.g2d0-text-primary {
    color: var(--g2d0-primary);
}

.g2d0-text-secondary {
    color: var(--g2d0-secondary);
}

.g2d0-text-accent {
    color: var(--g2d0-accent);
}

.g2d0-bg-primary {
    background-color: var(--g2d0-primary);
}

.g2d0-bg-secondary {
    background-color: var(--g2d0-secondary);
}

.g2d0-bg-dark {
    background-color: var(--g2d0-dark);
}

/* Typography */
.g2d0-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g2d0-primary);
}

.g2d0-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--g2d0-secondary);
}

.g2d0-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--g2d0-light);
}

.g2d0-p {
    margin-bottom: 1rem;
    color: var(--g2d0-text-secondary);
}

/* Buttons */
.g2d0-btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 44px; /* Touch-friendly size */
}

.g2d0-btn-primary {
    background-color: var(--g2d0-primary);
    color: var(--g2d0-dark);
}

.g2d0-btn-primary:hover {
    background-color: #ffb833;
    transform: translateY(-2px);
}

.g2d0-btn-secondary {
    background-color: var(--g2d0-secondary);
    color: #ffffff;
}

.g2d0-btn-secondary:hover {
    background-color: #f0a58c;
    transform: translateY(-2px);
}

.g2d0-btn-accent {
    background-color: var(--g2d0-accent);
    color: #ffffff;
}

.g2d0-btn-accent:hover {
    background-color: #e01a9b;
    transform: translateY(-2px);
}

/* Header and Navigation */
.g2d0-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--g2d0-dark);
    border-bottom: 1px solid var(--g2d0-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.g2d0-nav {
    padding: 1rem 1.5rem;
}

.g2d0-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--g2d0-primary);
    text-decoration: none;
}

.g2d0-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.g2d0-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.g2d0-nav-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    border-radius: 0.6rem;
    min-height: 36px;
}

.g2d0-menu-toggle {
    background: none;
    border: none;
    color: var(--g2d0-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.4rem;
    transition: background-color 0.3s ease;
}

.g2d0-menu-toggle:hover {
    background-color: var(--g2d0-bg-hover);
}

/* Mobile Menu */
.g2d0-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--g2d0-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.g2d0-mobile-menu.active {
    right: 0;
}

.g2d0-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--g2d0-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g2d0-menu-close {
    background: none;
    border: none;
    color: var(--g2d0-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.4rem;
    transition: background-color 0.3s ease;
}

.g2d0-menu-close:hover {
    background-color: var(--g2d0-bg-hover);
}

.g2d0-menu-nav {
    padding: 1.5rem;
}

.g2d0-menu-nav ul {
    list-style: none;
}

.g2d0-menu-nav li {
    margin-bottom: 0.5rem;
}

.g2d0-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--g2d0-text);
    text-decoration: none;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

.g2d0-nav-link:hover,
.g2d0-nav-link.active {
    background-color: var(--g2d0-bg-hover);
    color: var(--g2d0-primary);
}

.g2d0-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g2d0-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.g2d0-main {
    margin-top: 70px; /* Account for fixed header */
    min-height: calc(100vh - 70px - 80px); /* Header + footer height */
}

@media (max-width: 768px) {
    .g2d0-main {
        padding-bottom: 80px; /* Space for fixed bottom nav */
    }
}

/* Carousel */
.g2d0-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.g2d0-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.g2d0-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g2d0-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.g2d0-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g2d0-carousel-indicator.active {
    background-color: var(--g2d0-primary);
    transform: scale(1.3);
}

/* Game Grid */
.g2d0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g2d0-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.8rem;
}

.g2d0-game-card:hover {
    transform: translateY(-3px);
    background-color: var(--g2d0-bg-hover);
}

.g2d0-game-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.g2d0-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g2d0-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--g2d0-text);
    word-break: break-word;
    max-width: 100%;
}

/* Content Sections */
.g2d0-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--g2d0-bg-card);
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.g2d0-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--g2d0-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Cards */
.g2d0-card {
    background-color: var(--g2d0-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.g2d0-card:hover {
    transform: translateY(-2px);
}

/* Footer */
.g2d0-footer {
    background-color: var(--g2d0-dark);
    border-top: 1px solid var(--g2d0-border);
    padding: 2rem 0 8rem; /* Extra bottom padding for mobile nav */
    margin-top: 3rem;
}

.g2d0-footer-content {
    padding: 0 1.5rem;
}

.g2d0-footer-section {
    margin-bottom: 2rem;
}

.g2d0-footer-title {
    font-size: 1.8rem;
    color: var(--g2d0-primary);
    margin-bottom: 1rem;
}

.g2d0-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g2d0-footer-link {
    color: var(--g2d0-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.g2d0-footer-link:hover {
    color: var(--g2d0-primary);
}

.g2d0-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g2d0-partner {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--g2d0-bg-card);
    border-radius: 0.8rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.g2d0-partner:hover {
    transform: scale(1.1);
}

.g2d0-partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.g2d0-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g2d0-text-secondary);
    margin-top: 2rem;
}

/* Mobile Bottom Navigation */
.g2d0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--g2d0-dark);
    border-top: 1px solid var(--g2d0-border);
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .g2d0-bottom-nav {
        display: flex;
    }
}

.g2d0-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.g2d0-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.g2d0-nav-item:hover {
    background-color: var(--g2d0-bg-hover);
}

.g2d0-nav-item.active {
    color: var(--g2d0-primary);
}

.g2d0-nav-item.active .g2d0-nav-icon {
    transform: scale(1.2);
}

.g2d0-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.g2d0-nav-label {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .g2d0-container {
        max-width: 1200px;
    }

    .g2d0-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g2d0-carousel {
        height: 250px;
    }

    .g2d0-footer-links {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .g2d0-container {
        padding: 0 1rem;
    }

    .g2d0-wrapper {
        padding: 1rem;
    }

    .g2d0-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .g2d0-game-icon {
        width: 56px;
        height: 56px;
    }

    .g2d0-section {
        padding: 1.5rem;
    }

    .g2d0-btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

/* Animation Classes */
.g2d0-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g2d0-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Promotional Links */
.g2d0-promo-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.g2d0-promo-link:hover {
    opacity: 0.8;
}

.g2d0-promo-btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(135deg, var(--g2d0-primary), var(--g2d0-light));
    color: var(--g2d0-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.g2d0-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.g2d0-btn:focus,
.g2d0-nav-link:focus,
.g2d0-menu-toggle:focus,
.g2d0-menu-close:focus {
    outline: 2px solid var(--g2d0-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --g2d0-border: #ffffff;
        --g2d0-text-secondary: #ffffff;
    }
}