/**
 * NuStar Casino App - Design Stylesheet
 * @description Mobile-first responsive CSS for gaming website
 * @version 1.0.0
 */

/* ========================================
   CSS Variables - Brand Colors
   ======================================== */
:root {
    --v46d-primary: #DB7093;
    --v46d-secondary: #8B4513;
    --v46d-accent: #8B7355;
    --v46d-dark: #333333;
    --v46d-bg-dark: #1a1a2e;
    --v46d-bg-darker: #16213e;
    --v46d-text-light: #ffffff;
    --v46d-text-muted: #b0b0b0;
    --v46d-gradient: linear-gradient(135deg, #DB7093 0%, #8B4513 100%);
    --v46d-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v46d-radius: 8px;
    --v46d-radius-lg: 16px;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v46d-bg-dark);
    color: var(--v46d-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Header Navigation
   ======================================== */
.v46d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v46d-bg-darker) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(219, 112, 147, 0.3);
}

.v46d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v46d-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v46d-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v46d-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v46d-primary);
    white-space: nowrap;
}

.v46d-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v46d-btn {
    padding: 8px 16px;
    border-radius: var(--v46d-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.v46d-btn-primary {
    background: var(--v46d-gradient);
    color: var(--v46d-text-light);
}

.v46d-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(219, 112, 147, 0.4);
}

.v46d-btn-outline {
    background: transparent;
    border: 2px solid var(--v46d-primary);
    color: var(--v46d-primary);
}

.v46d-btn-outline:hover {
    background: var(--v46d-primary);
    color: var(--v46d-text-light);
}

.v46d-menu-toggle {
    background: none;
    border: none;
    color: var(--v46d-text-light);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Mobile Menu
   ======================================== */
.v46d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v46d-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.v46d-menu-active {
    right: 0;
}

.v46d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v46d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v46d-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(219, 112, 147, 0.3);
}

.v46d-menu-close {
    background: none;
    border: none;
    color: var(--v46d-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.v46d-menu-nav {
    list-style: none;
}

.v46d-menu-nav li {
    margin-bottom: 8px;
}

.v46d-menu-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--v46d-text-light);
    font-size: 1.4rem;
    border-radius: var(--v46d-radius);
    transition: all 0.3s ease;
}

.v46d-menu-nav a:hover {
    background: rgba(219, 112, 147, 0.2);
    color: var(--v46d-primary);
}

/* ========================================
   Main Content
   ======================================== */
.v46d-main {
    padding-top: 60px;
    max-width: 430px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .v46d-main {
        padding-bottom: 80px;
    }
}

.v46d-container {
    padding: 16px;
}

/* ========================================
   Hero Carousel
   ======================================== */
.v46d-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v46d-radius-lg);
    margin-bottom: 20px;
}

.v46d-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.v46d-carousel-item {
    min-width: 100%;
    position: relative;
}

.v46d-carousel-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--v46d-radius-lg);
}

.v46d-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v46d-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.v46d-carousel-dot.active {
    background: var(--v46d-primary);
}

/* ========================================
   Section Styles
   ======================================== */
.v46d-section {
    padding: 20px 16px;
    margin-bottom: 16px;
}

.v46d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--v46d-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.v46d-section-title i {
    font-size: 2rem;
}

/* ========================================
   Game Grid
   ======================================== */
.v46d-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.v46d-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v46d-game-item:hover {
    transform: scale(1.05);
}

.v46d-game-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--v46d-radius);
    object-fit: cover;
    margin-bottom: 6px;
    border: 2px solid rgba(219, 112, 147, 0.3);
}

.v46d-game-name {
    font-size: 1rem;
    color: var(--v46d-text-light);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Cards & Boxes
   ======================================== */
.v46d-card {
    background: var(--v46d-bg-darker);
    border-radius: var(--v46d-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(219, 112, 147, 0.2);
}

.v46d-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--v46d-primary);
}

.v46d-card-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--v46d-text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.v46d-cta-section {
    background: var(--v46d-gradient);
    padding: 24px 16px;
    text-align: center;
    border-radius: var(--v46d-radius-lg);
    margin: 20px 16px;
}

.v46d-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--v46d-text-light);
}

.v46d-cta-text {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.v46d-cta-btn {
    background: var(--v46d-text-light);
    color: var(--v46d-primary);
    padding: 12px 32px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--v46d-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v46d-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--v46d-shadow);
}

/* ========================================
   Footer
   ======================================== */
.v46d-footer {
    background: var(--v46d-bg-darker);
    padding: 24px 16px 100px;
    margin-top: 24px;
    border-top: 1px solid rgba(219, 112, 147, 0.3);
}

.v46d-footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.v46d-footer-desc {
    font-size: 1.2rem;
    color: var(--v46d-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.v46d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.v46d-footer-link {
    padding: 8px 16px;
    background: rgba(219, 112, 147, 0.2);
    border-radius: var(--v46d-radius);
    font-size: 1.2rem;
    color: var(--v46d-text-light);
    transition: all 0.3s ease;
}

.v46d-footer-link:hover {
    background: var(--v46d-primary);
}

.v46d-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.v46d-footer-nav a {
    font-size: 1.2rem;
    color: var(--v46d-text-muted);
}

.v46d-footer-nav a:hover {
    color: var(--v46d-primary);
}

.v46d-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--v46d-text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.v46d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--v46d-bg-darker) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(219, 112, 147, 0.3);
    padding: 4px 0;
}

@media (min-width: 769px) {
    .v46d-bottom-nav {
        display: none;
    }
}

.v46d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.v46d-nav-item:hover {
    background: rgba(219, 112, 147, 0.15);
}

.v46d-nav-item.active {
    color: var(--v46d-primary);
}

.v46d-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.v46d-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   Promo Link Styles
   ======================================== */
.v46d-promo-link {
    color: var(--v46d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v46d-promo-link:hover {
    color: #e891a8;
    text-decoration: underline;
}

.v46d-promo-btn {
    background: var(--v46d-gradient);
    color: var(--v46d-text-light);
    padding: 10px 20px;
    border-radius: var(--v46d-radius);
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v46d-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(219, 112, 147, 0.5);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 430px) {
    .v46d-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .v46d-game-icon {
        width: 56px;
        height: 56px;
    }

    .v46d-game-name {
        font-size: 0.9rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .v46d-header {
        padding: 16px 24px;
    }

    .v46d-header-inner {
        max-width: 1200px;
    }

    .v46d-main {
        max-width: 1200px;
        padding-top: 80px;
    }

    .v46d-games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .v46d-footer {
        padding-bottom: 40px;
    }
}

/* ========================================
   Animation Classes
   ======================================== */
.v46d-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v46d-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
