/**
 * SG7 Gaming Platform - Core Stylesheet
 * File: css/design-4c8d.css
 * Version: 1.0.0
 * All classes prefixed with vd8d- for namespace isolation
 */

/* CSS Variables */
:root {
    --vd8d-primary: #2C3E50;
    --vd8d-secondary: #36454F;
    --vd8d-accent: #D3D3D3;
    --vd8d-bg-dark: #1A1A1A;
    --vd8d-bg-light: #FDF5E6;
    --vd8d-text-light: #FDF5E6;
    --vd8d-text-dark: #1A1A1A;
    --vd8d-gold: #D4AF37;
    --vd8d-success: #27AE60;
    --vd8d-danger: #E74C3C;
    --vd8d-gradient: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
    --vd8d-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --vd8d-radius: 8px;
}

/* Reset and Base */
*, *::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: var(--vd8d-bg-dark);
    color: var(--vd8d-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.vd8d-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.vd8d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--vd8d-gradient);
    border-bottom: 1px solid var(--vd8d-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.vd8d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vd8d-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.vd8d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd8d-gold);
    letter-spacing: 1px;
}

.vd8d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vd8d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--vd8d-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vd8d-btn-register {
    background: var(--vd8d-gold);
    color: var(--vd8d-bg-dark);
}

.vd8d-btn-register:hover {
    background: #C9A227;
    transform: scale(1.05);
}

.vd8d-btn-login {
    background: transparent;
    color: var(--vd8d-text-light);
    border: 1px solid var(--vd8d-accent);
}

.vd8d-btn-login:hover {
    background: var(--vd8d-accent);
    color: var(--vd8d-bg-dark);
}

.vd8d-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--vd8d-text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
.vd8d-mobile-menu {
    position: fixed;
    top: 56px;
    right: -280px;
    width: 280px;
    height: calc(100vh - 56px);
    background: var(--vd8d-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
}

.vd8d-menu-active {
    right: 0;
}

.vd8d-menu-overlay {
    position: fixed;
    top: 56px;
    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;
}

.vd8d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vd8d-menu-item {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--vd8d-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--vd8d-primary);
    transition: all 0.3s ease;
}

.vd8d-menu-item:hover {
    background: var(--vd8d-primary);
    color: var(--vd8d-gold);
}

/* Main Content */
main {
    padding-top: 56px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 72px;
    }
}

/* Carousel */
.vd8d-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--vd8d-radius) var(--vd8d-radius);
}

.vd8d-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.vd8d-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.vd8d-slide-active {
    opacity: 1;
    position: relative;
}

.vd8d-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.vd8d-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.vd8d-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vd8d-accent);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd8d-indicator-active {
    opacity: 1;
    background: var(--vd8d-gold);
}

/* Section Styles */
.vd8d-section {
    padding: 2rem 1rem;
}

.vd8d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd8d-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.vd8d-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--vd8d-gold);
    margin: 0.8rem auto 0;
}

/* Game Grid */
.vd8d-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.vd8d-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: var(--vd8d-radius);
    background: var(--vd8d-secondary);
    transition: all 0.3s ease;
}

.vd8d-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vd8d-shadow);
}

.vd8d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.vd8d-game-card span {
    font-size: 1rem;
    color: var(--vd8d-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Category Title */
.vd8d-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vd8d-accent);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vd8d-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Features Section */
.vd8d-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vd8d-feature-card {
    background: var(--vd8d-secondary);
    padding: 1.5rem;
    border-radius: var(--vd8d-radius);
    text-align: center;
}

.vd8d-feature-card i,
.vd8d-feature-card .material-icons {
    font-size: 2.4rem;
    color: var(--vd8d-gold);
    margin-bottom: 0.8rem;
}

.vd8d-feature-card h3 {
    font-size: 1.3rem;
    color: var(--vd8d-text-light);
    margin-bottom: 0.5rem;
}

.vd8d-feature-card p {
    font-size: 1.1rem;
    color: var(--vd8d-accent);
}

/* Promo Links */
.vd8d-promo-link {
    color: var(--vd8d-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vd8d-promo-link:hover {
    color: #E5C158;
    text-decoration: underline;
}

.vd8d-promo-btn {
    display: inline-block;
    background: var(--vd8d-gold);
    color: var(--vd8d-bg-dark);
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--vd8d-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.vd8d-promo-btn:hover {
    background: #C9A227;
    transform: scale(1.05);
    box-shadow: var(--vd8d-shadow);
}

/* Footer */
.vd8d-footer {
    background: var(--vd8d-secondary);
    padding: 2rem 1rem;
    border-top: 1px solid var(--vd8d-primary);
}

.vd8d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vd8d-footer-links a {
    color: var(--vd8d-accent);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.vd8d-footer-links a:hover {
    color: var(--vd8d-gold);
}

.vd8d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.vd8d-partners img {
    width: 40px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vd8d-partners img:hover {
    opacity: 1;
}

.vd8d-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--vd8d-accent);
}

/* Bottom Navigation - Fixed Mobile */
.vd8d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--vd8d-gradient);
    border-top: 1px solid var(--vd8d-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .vd8d-bottom-nav {
        display: none;
    }
}

.vd8d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--vd8d-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd8d-nav-item:hover,
.vd8d-nav-item-active {
    color: var(--vd8d-gold);
}

.vd8d-nav-item i,
.vd8d-nav-item .material-icons {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.vd8d-nav-item span {
    font-size: 1rem;
}

/* Text Content */
.vd8d-text-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--vd8d-text-light);
}

.vd8d-text-content p {
    margin-bottom: 1rem;
}

.vd8d-text-content h2 {
    font-size: 1.6rem;
    color: var(--vd8d-gold);
    margin: 1.5rem 0 1rem;
}

.vd8d-text-content ul,
.vd8d-text-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.vd8d-text-content li {
    margin-bottom: 0.5rem;
}

/* RTP Table */
.vd8d-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.vd8d-rtp-table th,
.vd8d-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--vd8d-primary);
    font-size: 1.2rem;
}

.vd8d-rtp-table th {
    background: var(--vd8d-secondary);
    color: var(--vd8d-gold);
}

.vd8d-rtp-table td {
    color: var(--vd8d-text-light);
}

/* FAQ Accordion */
.vd8d-faq-item {
    background: var(--vd8d-secondary);
    border-radius: var(--vd8d-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.vd8d-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vd8d-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vd8d-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--vd8d-text-light);
}

/* Promo Banner */
.vd8d-promo-banner {
    background: var(--vd8d-gradient);
    border: 2px solid var(--vd8d-gold);
    border-radius: var(--vd8d-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.vd8d-promo-banner h3 {
    color: var(--vd8d-gold);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.vd8d-promo-banner p {
    color: var(--vd8d-text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Responsive Utilities */
@media (max-width: 430px) {
    .vd8d-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .vd8d-container {
        max-width: 768px;
    }

    .vd8d-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .vd8d-features {
        grid-template-columns: repeat(4, 1fr);
    }
}
