/* Big Bunny Casino CSS - All classes use w40d8- prefix */

/* 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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #212F3D 0%, #1a1a2e 100%);
    overflow-x: hidden;
}

/* Root Variables */
:root {
    --primary-color: #00BFFF;
    --secondary-color: #4682B4;
    --accent-color: #87CEFA;
    --dark-bg: #212F3D;
    --brown-accent: #A0522D;
    --gray-light: #A9A9A9;
    --white: #ffffff;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.3);
    --border-radius: 0.8rem;
    --transition: all 0.3s ease;
}

/* Utility Classes */
.w40d8-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.w40d8-text-center {
    text-align: center;
}

.w40d8-text-primary {
    color: var(--primary-color);
}

.w40d8-text-secondary {
    color: var(--secondary-color);
}

.w40d8-bg-primary {
    background-color: var(--primary-color);
}

.w40d8-bg-secondary {
    background-color: var(--secondary-color);
}

/* Header Styles */
.w40d8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.w40d8-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.w40d8-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 2rem;
}

.w40d8-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.w40d8-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w40d8-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 10rem;
    justify-content: center;
}

.w40d8-btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 0.2rem 1rem rgba(0, 191, 255, 0.3);
}

.w40d8-btn-primary:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 191, 255, 0.4);
}

.w40d8-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.w40d8-btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.w40d8-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation Menu */
.w40d8-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.w40d8-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.w40d8-nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.1);
}

.w40d8-nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.2);
}

/* Mobile Menu */
.w40d8-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 30rem;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w40d8-mobile-menu.active {
    right: 0;
}

.w40d8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w40d8-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.w40d8-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.w40d8-mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1.6rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.w40d8-mobile-nav-link:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: var(--primary-color);
}

/* Main Content */
main {
    margin-top: 8rem; /* Account for fixed header */
    min-height: 100vh;
}

/* Carousel Styles */
.w40d8-carousel {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    cursor: pointer;
}

.w40d8-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.w40d8-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w40d8-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.w40d8-carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.w40d8-carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0.2rem 0.4rem var(--shadow);
}

.w40d8-carousel-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.w40d8-carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.w40d8-carousel-indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.w40d8-carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.w40d8-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 3;
}

.w40d8-carousel-controls:hover {
    background: rgba(0, 191, 255, 0.7);
}

.w40d8-carousel-prev {
    left: 2rem;
}

.w40d8-carousel-next {
    right: 2rem;
}

/* Section Styles */
.w40d8-section {
    margin-bottom: 4rem;
}

.w40d8-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.w40d8-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
}

.w40d8-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 5rem;
    height: 0.3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.2rem;
}

.w40d8-section-subtitle {
    font-size: 1.4rem;
    color: var(--gray-light);
    margin-top: 1rem;
}

/* Game Grid */
.w40d8-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.w40d8-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 191, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.w40d8-game-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 191, 255, 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.w40d8-game-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    position: relative;
}

.w40d8-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.w40d8-game-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.w40d8-game-category {
    font-size: 1rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Content Modules */
.w40d8-content-module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.w40d8-content-module h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.w40d8-content-module h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 4rem;
    height: 0.2rem;
    background: var(--primary-color);
    border-radius: 0.1rem;
}

.w40d8-content-module h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.w40d8-content-module p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.w40d8-content-module ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.w40d8-content-module li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.w40d8-content-module a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.w40d8-content-module a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Partners Section */
.w40d8-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.w40d8-partner {
    width: 8rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-light);
    transition: var(--transition);
}

.w40d8-partner:hover {
    background: rgba(0, 191, 255, 0.2);
    color: var(--white);
}

/* Footer */
.w40d8-footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(0, 191, 255, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.w40d8-footer-content {
    text-align: center;
    color: var(--gray-light);
}

.w40d8-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.w40d8-footer-link {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.w40d8-footer-link:hover {
    color: var(--primary-color);
}

.w40d8-copyright {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Mobile Bottom Navigation */
.w40d8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    border-top: 1px solid rgba(0, 191, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    display: none;
}

.w40d8-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
}

.w40d8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: 6rem;
    min-height: 6rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-light);
}

.w40d8-bottom-nav-item:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--primary-color);
    transform: translateY(-0.2rem);
}

.w40d8-bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.2);
}

.w40d8-bottom-nav-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.w40d8-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .w40d8-bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 8rem;
    }

    .w40d8-header-content {
        padding: 0 1rem;
    }

    .w40d8-nav {
        display: none;
    }

    .w40d8-menu-toggle {
        display: block;
    }

    .w40d8-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
        gap: 1rem;
    }

    .w40d8-carousel {
        height: 20rem;
    }

    .w40d8-carousel-title {
        font-size: 2.2rem;
    }

    .w40d8-section-title {
        font-size: 2rem;
    }

    .w40d8-content-module {
        padding: 2rem;
    }

    .w40d8-partners {
        gap: 1rem;
        padding: 1rem;
    }

    .w40d8-partner {
        width: 6rem;
        height: 3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .w40d8-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w40d8-game-card {
        padding: 1rem;
    }

    .w40d8-game-icon {
        width: 5rem;
        height: 5rem;
        font-size: 2.5rem;
    }

    .w40d8-game-name {
        font-size: 1.1rem;
    }

    .w40d8-carousel {
        height: 18rem;
    }

    .w40d8-carousel-title {
        font-size: 1.8rem;
    }

    .w40d8-carousel-subtitle {
        font-size: 1.4rem;
    }

    .w40d8-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
        min-width: 8rem;
    }
}

/* Animation Classes */
.w40d8-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.w40d8-slide-up {
    animation: slideUp 0.6s ease-out;
}

.w40d8-bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-1rem);
    }
    60% {
        transform: translateY(-0.5rem);
    }
}

/* Loading States */
.w40d8-loading {
    position: relative;
    overflow: hidden;
}

.w40d8-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.w40d8-btn:focus,
.w40d8-nav-link:focus,
.w40d8-game-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.6);
    }

    .w40d8-game-card {
        border: 2px solid var(--primary-color);
    }
}