/**
 * N777 Casino - Main Stylesheet
 * All classes use prefix "vd22-" for namespace isolation
 * Color Palette: #F5F5F5 | #98FB98 | #1B263B | #00FF7F | #FF8C00 | #7CFC00
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --vd22-bg-dark: #1B263B;
    --vd22-bg-light: #F5F5F5;
    --vd22-accent-green: #00FF7F;
    --vd22-accent-lime: #7CFC00;
    --vd22-accent-orange: #FF8C00;
    --vd22-accent-pale: #98FB98;
    --vd22-text-light: #F5F5F5;
    --vd22-text-dark: #1B263B;
    --vd22-gradient-main: linear-gradient(135deg, #1B263B 0%, #2a3f5f 100%);
    --vd22-gradient-accent: linear-gradient(135deg, #00FF7F 0%, #7CFC00 100%);
    --vd22-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
    --vd22-radius: 12px;
}

/* Reset & Base */
* {
    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(--vd22-bg-dark);
    color: var(--vd22-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.vd22-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.vd22-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--vd22-bg-dark);
    padding: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.vd22-header-scrolled {
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
}

.vd22-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.vd22-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vd22-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.vd22-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd22-accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.vd22-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vd22-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--vd22-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vd22-btn-primary {
    background: var(--vd22-gradient-accent);
    color: var(--vd22-text-dark);
    box-shadow: var(--vd22-shadow);
}

.vd22-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

.vd22-btn-secondary {
    background: transparent;
    color: var(--vd22-accent-green);
    border: 2px solid var(--vd22-accent-green);
}

.vd22-btn-secondary:hover {
    background: rgba(0, 255, 127, 0.1);
}

.vd22-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.vd22-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--vd22-accent-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.vd22-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--vd22-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 255, 127, 0.2);
}

.vd22-menu-open {
    right: 0;
}

.vd22-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;
}

.vd22-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.vd22-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--vd22-accent-green);
    font-size: 2.4rem;
    cursor: pointer;
}

.vd22-menu-nav {
    margin-top: 4rem;
}

.vd22-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--vd22-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    transition: all 0.3s ease;
}

.vd22-menu-link:hover {
    color: var(--vd22-accent-green);
    padding-left: 1rem;
}

/* Main Content */
.vd22-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.vd22-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--vd22-radius);
    margin-bottom: 2rem;
}

.vd22-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.vd22-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.vd22-slide-active {
    opacity: 1;
    position: relative;
}

.vd22-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.vd22-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.vd22-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd22-dot-active {
    background: var(--vd22-accent-green);
    transform: scale(1.2);
}

/* Section Titles */
.vd22-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vd22-accent-green);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.vd22-section-subtitle {
    font-size: 1.4rem;
    color: var(--vd22-accent-pale);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.vd22-game-section {
    padding: 2rem 0;
}

.vd22-game-category {
    margin-bottom: 2rem;
}

.vd22-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vd22-accent-orange);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vd22-accent-orange);
}

.vd22-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vd22-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--vd22-radius);
    padding: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vd22-game-card:hover {
    background: rgba(0, 255, 127, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--vd22-shadow);
}

.vd22-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.vd22-game-name {
    font-size: 1.1rem;
    color: var(--vd22-text-light);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Sections */
.vd22-content-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--vd22-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.vd22-content-section h2 {
    font-size: 1.8rem;
    color: var(--vd22-accent-green);
    margin-bottom: 1rem;
}

.vd22-content-section p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--vd22-text-light);
    margin-bottom: 1rem;
}

.vd22-content-section ul {
    list-style: none;
    padding-left: 0;
}

.vd22-content-section li {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.vd22-content-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--vd22-accent-green);
    font-weight: bold;
}

/* Promo Link Styles */
.vd22-promo-link {
    color: var(--vd22-accent-green);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd22-promo-link:hover {
    color: var(--vd22-accent-lime);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.vd22-promo-btn {
    display: inline-block;
    background: var(--vd22-gradient-accent);
    color: var(--vd22-text-dark);
    padding: 1rem 2rem;
    border-radius: var(--vd22-radius);
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--vd22-shadow);
}

.vd22-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 127, 0.5);
}

/* Footer */
.vd22-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 1rem;
    text-align: center;
}

.vd22-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vd22-footer-link {
    color: var(--vd22-accent-pale);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.vd22-footer-link:hover {
    color: var(--vd22-accent-green);
}

.vd22-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.vd22-partner-icon {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vd22-partner-icon:hover {
    opacity: 1;
}

.vd22-copyright {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Bottom Navigation */
.vd22-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--vd22-bg-dark);
    border-top: 1px solid rgba(0, 255, 127, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.vd22-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--vd22-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vd22-nav-btn:hover,
.vd22-nav-btn.vd22-active {
    color: var(--vd22-accent-green);
    transform: scale(1.1);
}

.vd22-nav-btn i,
.vd22-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.vd22-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .vd22-bottom-nav {
        display: none;
    }

    .vd22-main {
        padding-bottom: 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .vd22-main {
        padding-bottom: 80px;
    }
}

/* Touch Feedback */
.vd22-touch-target {
    transition: transform 0.1s ease;
}

.vd22-touch-active {
    transform: scale(0.95);
}

/* Utility Classes */
.vd22-text-center {
    text-align: center;
}

.vd22-mt-2 {
    margin-top: 2rem;
}

.vd22-mb-2 {
    margin-bottom: 2rem;
}

.vd22-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* RTP Stats Section */
.vd22-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vd22-rtp-item {
    background: rgba(0, 255, 127, 0.1);
    padding: 1rem;
    border-radius: var(--vd22-radius);
    text-align: center;
}

.vd22-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vd22-accent-green);
}

.vd22-rtp-label {
    font-size: 1.2rem;
    color: var(--vd22-accent-pale);
}

/* Features List */
.vd22-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vd22-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: var(--vd22-radius);
}

.vd22-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vd22-gradient-accent);
    border-radius: 50%;
    color: var(--vd22-text-dark);
    font-size: 1.8rem;
}

.vd22-feature-text {
    font-size: 1.2rem;
    color: var(--vd22-text-light);
}

/* Achievements */
.vd22-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: var(--vd22-radius);
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--vd22-accent-orange);
}

.vd22-achievement-icon {
    font-size: 2rem;
}

.vd22-achievement-text {
    font-size: 1.3rem;
    flex: 1;
}

/* Tricks Section */
.vd22-trick {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--vd22-radius);
    margin-bottom: 0.8rem;
}

.vd22-trick-title {
    font-size: 1.4rem;
    color: var(--vd22-accent-orange);
    margin-bottom: 0.5rem;
}

.vd22-trick-desc {
    font-size: 1.3rem;
    color: var(--vd22-text-light);
}

/* FAQ Section */
.vd22-faq-item {
    margin-bottom: 1rem;
}

.vd22-faq-q {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vd22-accent-green);
    margin-bottom: 0.5rem;
}

.vd22-faq-a {
    font-size: 1.3rem;
    color: var(--vd22-text-light);
    padding-left: 1.5rem;
}

/* Security Section */
.vd22-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 127, 0.1);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--vd22-accent-green);
    margin: 0.3rem;
}

/* Play Now CTA */
.vd22-cta-section {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--vd22-gradient-main);
    border-radius: var(--vd22-radius);
    margin: 2rem 0;
}

.vd22-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--vd22-accent-green);
    margin-bottom: 1rem;
}

.vd22-cta-desc {
    font-size: 1.4rem;
    color: var(--vd22-text-light);
    margin-bottom: 1.5rem;
}

/* Internal Links */
.vd22-internal-link {
    color: var(--vd22-accent-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.vd22-internal-link:hover {
    color: var(--vd22-accent-lime);
}
