/* HawkGaming CFD Styles - Mobile First Design */
/* CSS Prefix: sb8ce- */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #E9ECEF;
    background-color: #1a1a2e;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Variables */
:root {
    --sb8ce-primary: #00CED1;
    --sb8ce-secondary: #0097A7;
    --sb8ce-accent: #40E0D0;
    --sb8ce-highlight: #CC99FF;
    --sb8ce-dark: #34495E;
    --sb8ce-light: #E9ECEF;
    --sb8ce-gradient: linear-gradient(135deg, #00CED1 0%, #0097A7 100%);
    --sb8ce-shadow: 0 4px 20px rgba(0, 206, 209, 0.3);
}

/* Typography */
.sb8ce-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sb8ce-primary);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sb8ce-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--sb8ce-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sb8ce-h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sb8ce-light);
    margin-bottom: 1rem;
}

.sb8ce-text {
    font-size: 1.4rem;
    color: var(--sb8ce-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sb8ce-text-small {
    font-size: 1.2rem;
    color: var(--sb8ce-accent);
    line-height: 1.6;
}

/* Layout Components */
.sb8ce-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.sb8ce-main-content {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for mobile nav */
}

/* Header Styles */
.sb8ce-header {
    background: var(--sb8ce-gradient);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--sb8ce-shadow);
}

.sb8ce-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.sb8ce-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb8ce-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--sb8ce-primary);
}

.sb8ce-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sb8ce-btn-primary {
    background: white;
    color: var(--sb8ce-primary);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 8rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sb8ce-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.sb8ce-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.6rem;
    border-radius: 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 8rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sb8ce-btn-secondary:hover {
    background: white;
    color: var(--sb8ce-primary);
}

.sb8ce-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sb8ce-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.sb8ce-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.sb8ce-mobile-menu.sb8ce-active {
    right: 0;
}

.sb8ce-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sb8ce-menu-overlay.sb8ce-active {
    opacity: 1;
    visibility: visible;
}

.sb8ce-menu-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sb8ce-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    float: right;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sb8ce-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sb8ce-menu-nav {
    list-style: none;
    padding: 0 2rem;
}

.sb8ce-menu-nav li {
    margin-bottom: 0.5rem;
}

.sb8ce-menu-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem 0;
    display: block;
    border-radius: 0.5rem;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.sb8ce-menu-nav a:hover {
    background: rgba(0, 206, 209, 0.2);
    color: var(--sb8ce-primary);
}

/* Carousel Styles */
.sb8ce-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin: 1rem 0;
    box-shadow: var(--sb8ce-shadow);
}

.sb8ce-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.sb8ce-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.sb8ce-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb8ce-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.sb8ce-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sb8ce-carousel-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.sb8ce-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--sb8ce-primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.sb8ce-carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.sb8ce-carousel-prev {
    left: 1rem;
}

.sb8ce-carousel-next {
    right: 1rem;
}

.sb8ce-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.sb8ce-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb8ce-carousel-indicator.sb8ce-active {
    background: white;
    transform: scale(1.2);
}

/* Game Grid Styles */
.sb8ce-game-section {
    padding: 2rem 0;
}

.sb8ce-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sb8ce-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sb8ce-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sb8ce-category-icon {
    font-size: 2rem;
    color: var(--sb8ce-accent);
}

.sb8ce-view-all {
    color: var(--sb8ce-accent);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sb8ce-view-all:hover {
    color: var(--sb8ce-primary);
    transform: translateX(0.5rem);
}

.sb8ce-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb8ce-game-item {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sb8ce-game-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb8ce-shadow);
}

.sb8ce-game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sb8ce-game-item:hover .sb8ce-game-img {
    transform: scale(1.05);
}

.sb8ce-game-info {
    padding: 1rem;
}

.sb8ce-game-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.sb8ce-game-type {
    font-size: 1rem;
    color: var(--sb8ce-accent);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb8ce-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 206, 209, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sb8ce-game-item:hover .sb8ce-play-overlay {
    opacity: 1;
}

.sb8ce-play-btn {
    background: white;
    color: var(--sb8ce-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb8ce-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* Mobile Bottom Navigation */
.sb8ce-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(0, 206, 209, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.sb8ce-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.sb8ce-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border-radius: 1rem;
    position: relative;
}

.sb8ce-bottom-nav-item:hover,
.sb8ce-bottom-nav-item.sb8ce-active {
    color: var(--sb8ce-primary);
    background: rgba(0, 206, 209, 0.1);
    transform: translateY(-2px);
}

.sb8ce-bottom-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.sb8ce-bottom-nav-item:hover .sb8ce-bottom-nav-icon {
    transform: scale(1.1);
}

.sb8ce-bottom-nav-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.sb8ce-bottom-nav-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--sb8ce-highlight);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 700;
    min-width: 1.8rem;
    text-align: center;
}

/* Footer Styles */
.sb8ce-footer {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.sb8ce-footer-content {
    text-align: center;
}

.sb8ce-partners {
    margin-bottom: 2rem;
}

.sb8ce-partners-title {
    font-size: 1.6rem;
    color: var(--sb8ce-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sb8ce-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.sb8ce-partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.sb8ce-partner-logo:hover {
    filter: grayscale(0%) brightness(1);
}

.sb8ce-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sb8ce-footer-links a {
    color: var(--sb8ce-accent);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sb8ce-footer-links a:hover {
    color: var(--sb8ce-primary);
}

.sb8ce-footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Utility Classes */
.sb8ce-text-center {
    text-align: center;
}

.sb8ce-text-left {
    text-align: left;
}

.sb8ce-text-right {
    text-align: right;
}

.sb8ce-mb-1 {
    margin-bottom: 1rem;
}

.sb8ce-mb-2 {
    margin-bottom: 2rem;
}

.sb8ce-mb-3 {
    margin-bottom: 3rem;
}

.sb8ce-mt-1 {
    margin-top: 1rem;
}

.sb8ce-mt-2 {
    margin-top: 2rem;
}

.sb8ce-mt-3 {
    margin-top: 3rem;
}

.sb8ce-p-1 {
    padding: 1rem;
}

.sb8ce-p-2 {
    padding: 2rem;
}

.sb8ce-hidden {
    display: none !important;
}

.sb8ce-visible {
    display: block !important;
}

.sb8ce-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.sb8ce-slide-in {
    animation: slideIn 0.3s ease-out;
}

.sb8ce-no-scroll {
    overflow: hidden;
}

.sb8ce-btn-touch.sb8ce-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.sb8ce-error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
}

.sb8ce-copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--sb8ce-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: var(--sb8ce-shadow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--sb8ce-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--sb8ce-primary), 0 0 30px var(--sb8ce-primary);
    }
    100% {
        box-shadow: 0 0 5px var(--sb8ce-primary);
    }
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 769px) {
    .sb8ce-container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .sb8ce-main-content {
        padding-bottom: 0; /* Remove mobile nav padding */
    }

    .sb8ce-bottom-nav {
        display: none; /* Hide mobile nav on desktop */
    }

    .sb8ce-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .sb8ce-carousel-container {
        height: 300px;
    }

    .sb8ce-h1 {
        font-size: 3.2rem;
    }

    .sb8ce-h2 {
        font-size: 2.4rem;
    }

    .sb8ce-partners-grid {
        grid-template-columns: repeat(7, 1fr);
        max-width: 600px;
    }

    .sb8ce-menu-toggle {
        display: none; /* Hide mobile menu toggle on desktop */
    }
}

@media (min-width: 1024px) {
    .sb8ce-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .sb8ce-carousel-container {
        height: 400px;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sb8ce-game-img,
    .sb8ce-partner-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --sb8ce-primary: #00CED1;
        --sb8ce-secondary: #0097A7;
        --sb8ce-accent: #40E0D0;
        --sb8ce-highlight: #CC99FF;
        --sb8ce-dark: #34495E;
        --sb8ce-light: #E9ECEF;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}