/**
 * Raffle Wheel - Main Stylesheet
 * All classes use prefix "vd38-" for namespace isolation
 * Color Palette: #0C0C0C | #DEB887 | #808080 | #FF8000 | #FAFAD2
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --vd38-primary: #DEB887;
    --vd38-secondary: #FF8000;
    --vd38-bg: #0C0C0C;
    --vd38-bg-light: #1a1a1a;
    --vd38-text: #FAFAD2;
    --vd38-text-muted: #808080;
    --vd38-border: #333333;
    --vd38-card-bg: #151515;
    --vd38-hover: #2a2a2a;
    --vd38-gradient: linear-gradient(135deg, #DEB887 0%, #FF8000 100%);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Container */
.vd38-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.vd38-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--vd38-bg);
    border-bottom: 1px solid var(--vd38-border);
    z-index: 1000;
    padding: 0.8rem 1.2rem;
}

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

.vd38-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vd38-logo img {
    width: 28px;
    height: 28px;
}

.vd38-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vd38-primary);
}

.vd38-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vd38-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.vd38-btn-primary {
    background: var(--vd38-gradient);
    color: var(--vd38-bg);
}

.vd38-btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.vd38-btn-secondary {
    background: transparent;
    color: var(--vd38-primary);
    border: 1px solid var(--vd38-primary);
}

.vd38-btn-secondary:hover {
    background: var(--vd38-primary);
    color: var(--vd38-bg);
}

.vd38-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.vd38-hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--vd38-primary);
    transition: all 0.3s ease;
}

.vd38-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.vd38-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.vd38-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.vd38-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--vd38-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

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

.vd38-mobile-menu ul {
    list-style: none;
}

.vd38-mobile-menu li {
    border-bottom: 1px solid var(--vd38-border);
}

.vd38-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--vd38-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.vd38-mobile-menu a:hover {
    color: var(--vd38-primary);
}

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

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

/* Main Content */
.vd38-main {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .vd38-main {
        padding-bottom: 8rem;
    }
}

/* Carousel/Slider */
.vd38-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.vd38-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.vd38-slide {
    min-width: 100%;
    display: none;
    cursor: pointer;
}

.vd38-slide-active {
    display: block;
}

.vd38-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.vd38-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.vd38-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--vd38-text-muted);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vd38-dot-active {
    background-color: var(--vd38-primary);
}

/* Sections */
.vd38-section {
    margin-bottom: 2.5rem;
}

.vd38-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd38-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

/* Game Grid */
.vd38-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.vd38-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.vd38-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

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

/* Cards */
.vd38-card {
    background-color: var(--vd38-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.vd38-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vd38-primary);
    margin-bottom: 1rem;
}

.vd38-card-text {
    color: var(--vd38-text);
    line-height: 1.6;
}

/* Promo Links */
.vd38-promo-link {
    color: var(--vd38-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vd38-promo-link:hover {
    color: var(--vd38-primary);
    text-decoration: underline;
}

.vd38-promo-btn {
    display: inline-block;
    background: var(--vd38-gradient);
    color: var(--vd38-bg);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.vd38-promo-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Footer */
.vd38-footer {
    background-color: var(--vd38-bg-light);
    border-top: 1px solid var(--vd38-border);
    padding: 2rem 1.2rem 8rem;
}

.vd38-footer-inner {
    max-width: 430px;
    margin: 0 auto;
}

.vd38-footer-brand {
    margin-bottom: 1.5rem;
}

.vd38-footer-brand p {
    color: var(--vd38-text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

.vd38-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.vd38-footer-links a {
    color: var(--vd38-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--vd38-hover);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.vd38-footer-links a:hover {
    background-color: var(--vd38-primary);
    color: var(--vd38-bg);
}

.vd38-footer-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.vd38-footer-promos button {
    background: var(--vd38-gradient);
    color: var(--vd38-bg);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd38-footer-promos button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.vd38-copyright {
    text-align: center;
    color: var(--vd38-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vd38-border);
}

/* Bottom Navigation */
.vd38-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0C0C0C 100%);
    border-top: 2px solid var(--vd38-primary);
    z-index: 1000;
    padding: 0.5rem 0;
    display: none;
}

@media (max-width: 768px) {
    .vd38-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 64px;
    }
}

.vd38-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    color: var(--vd38-text-muted);
}

.vd38-nav-item:hover {
    color: var(--vd38-primary);
    transform: scale(1.1);
}

.vd38-nav-item i,
.vd38-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

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

.vd38-nav-item.vd38-active {
    color: var(--vd38-secondary);
}

/* Responsive Utilities */
@media (min-width: 769px) {
    .vd38-hamburger {
        display: none;
    }

    .vd38-header-nav {
        display: flex;
        gap: 1.5rem;
    }

    .vd38-header-nav a {
        color: var(--vd38-text);
        text-decoration: none;
        font-size: 1.3rem;
        transition: color 0.3s ease;
    }

    .vd38-header-nav a:hover {
        color: var(--vd38-primary);
    }
}

@media (max-width: 768px) {
    .vd38-header-nav {
        display: none;
    }

    .vd38-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
}

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

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

/* Accessibility */
.vd38-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Partners */
.vd38-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.vd38-partner-logo {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.vd38-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Testimonials */
.vd38-testimonial {
    background-color: var(--vd38-card-bg);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.vd38-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.vd38-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vd38-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--vd38-bg);
    font-size: 1.2rem;
}

.vd38-testimonial-name {
    font-weight: 600;
    color: var(--vd38-primary);
}

.vd38-testimonial-text {
    color: var(--vd38-text);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Payment Methods */
.vd38-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.vd38-payment-item {
    background-color: var(--vd38-hover);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--vd38-text);
}

/* Stats */
.vd38-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vd38-stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--vd38-card-bg);
    border-radius: 8px;
}

.vd38-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vd38-secondary);
}

.vd38-stat-label {
    font-size: 1.1rem;
    color: var(--vd38-text-muted);
}
