/**
 * N77 Layout Stylesheet
 * Mobile-first responsive design
 * All classes use vd56- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --vd56-primary: #40E0D0;
    --vd56-secondary: #191970;
    --vd56-accent: #87CEEB;
    --vd56-bg-dark: #0A0A0A;
    --vd56-bg-light: #F8F9FA;
    --vd56-text-light: #F8F9FA;
    --vd56-text-dark: #0A0A0A;
    --vd56-gradient-start: #BAE1FF;
    --vd56-gradient-end: #40E0D0;
    --vd56-shadow: rgba(0, 0, 0, 0.3);
    --vd56-border-radius: 8px;
    --vd56-transition: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--vd56-bg-dark);
    color: var(--vd56-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.vd56-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
    width: 100%;
}

.vd56-wrapper {
    padding: 1.6rem 0;
}

/* Header */
.vd56-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--vd56-secondary) 0%, var(--vd56-bg-dark) 100%);
    padding: 0.8rem 1.2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--vd56-primary);
}

.vd56-header-shadow {
    box-shadow: 0 4px 20px var(--vd56-shadow);
}

.vd56-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vd56-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.vd56-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd56-primary);
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.vd56-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.vd56-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--vd56-border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--vd56-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.vd56-btn-login {
    background: transparent;
    border: 1px solid var(--vd56-primary);
    color: var(--vd56-primary);
}

.vd56-btn-login:hover {
    background: var(--vd56-primary);
    color: var(--vd56-bg-dark);
}

.vd56-btn-register {
    background: linear-gradient(135deg, var(--vd56-primary) 0%, var(--vd56-accent) 100%);
    color: var(--vd56-bg-dark);
    font-weight: 700;
}

.vd56-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.vd56-menu-btn {
    background: transparent;
    border: none;
    color: var(--vd56-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.vd56-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--vd56-secondary) 0%, var(--vd56-bg-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.6rem;
    overflow-y: auto;
}

.vd56-menu-active {
    right: 0;
}

.vd56-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: var(--vd56-transition);
}

.vd56-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vd56-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vd56-primary);
}

.vd56-menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vd56-primary);
}

.vd56-menu-close {
    background: transparent;
    border: none;
    color: var(--vd56-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.vd56-nav-list {
    list-style: none;
}

.vd56-nav-item {
    margin-bottom: 0.8rem;
}

.vd56-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--vd56-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--vd56-border-radius);
    transition: var(--vd56-transition);
}

.vd56-nav-link:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--vd56-primary);
}

.vd56-nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.vd56-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--vd56-border-radius);
    margin: 1rem 0;
}

.vd56-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.vd56-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.vd56-slide-active {
    opacity: 1;
    position: relative;
}

.vd56-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.vd56-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.vd56-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--vd56-transition);
}

.vd56-dot-active {
    background: var(--vd56-primary);
    transform: scale(1.2);
}

/* Section Titles */
.vd56-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd56-primary);
    margin-bottom: 1.2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

.vd56-section-subtitle {
    font-size: 1.3rem;
    color: var(--vd56-accent);
    text-align: center;
    margin-bottom: 1.6rem;
}

/* Game Grid */
.vd56-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.vd56-game-card {
    background: linear-gradient(145deg, rgba(25, 25, 112, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-radius: var(--vd56-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--vd56-transition);
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.vd56-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--vd56-primary);
    box-shadow: 0 8px 20px rgba(64, 224, 208, 0.2);
}

.vd56-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.vd56-game-name {
    font-size: 1rem;
    color: var(--vd56-text-light);
    text-align: center;
    padding: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.5);
}

/* Category Section */
.vd56-category-section {
    margin-bottom: 2rem;
}

.vd56-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vd56-accent);
    margin-bottom: 1rem;
    padding-left: 0.4rem;
    border-left: 3px solid var(--vd56-primary);
}

/* Info Cards */
.vd56-info-card {
    background: linear-gradient(145deg, rgba(25, 25, 112, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: var(--vd56-border-radius);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.vd56-info-card h3 {
    font-size: 1.5rem;
    color: var(--vd56-primary);
    margin-bottom: 0.8rem;
}

.vd56-info-card p {
    font-size: 1.2rem;
    color: var(--vd56-text-light);
    line-height: 1.6;
}

.vd56-info-card ul {
    list-style: none;
    margin-top: 0.8rem;
}

.vd56-info-card li {
    font-size: 1.2rem;
    color: var(--vd56-text-light);
    padding: 0.4rem 0;
    padding-left: 1.6rem;
    position: relative;
}

.vd56-info-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--vd56-primary);
}

/* Promotional Links */
.vd56-promo-link {
    color: var(--vd56-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--vd56-transition);
}

.vd56-promo-link:hover {
    color: var(--vd56-accent);
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.vd56-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--vd56-primary) 0%, var(--vd56-accent) 100%);
    color: var(--vd56-bg-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--vd56-border-radius);
    cursor: pointer;
    transition: var(--vd56-transition);
    text-align: center;
    border: none;
}

.vd56-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

/* Footer */
.vd56-footer {
    background: linear-gradient(180deg, var(--vd56-secondary) 0%, var(--vd56-bg-dark) 100%);
    padding: 2rem 1.2rem 3rem;
    border-top: 1px solid var(--vd56-primary);
}

.vd56-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.6rem;
}

.vd56-footer-link {
    color: var(--vd56-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--vd56-transition);
}

.vd56-footer-link:hover {
    color: var(--vd56-primary);
    background: rgba(64, 224, 208, 0.1);
}

.vd56-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.6rem;
}

.vd56-partner-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--vd56-transition);
}

.vd56-partner-img:hover {
    opacity: 1;
}

.vd56-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--vd56-accent);
    opacity: 0.8;
}

/* Bottom Navigation */
.vd56-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--vd56-secondary) 0%, var(--vd56-bg-dark) 100%);
    border-top: 1px solid var(--vd56-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .vd56-bottom-nav {
        display: none;
    }
}

.vd56-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--vd56-text-light);
    cursor: pointer;
    transition: var(--vd56-transition);
    text-decoration: none;
}

.vd56-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.vd56-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.vd56-nav-btn:hover,
.vd56-nav-btn.active {
    color: var(--vd56-primary);
}

.vd56-nav-btn:hover i,
.vd56-nav-btn.active i {
    transform: scale(1.1);
}

/* RTP Stats */
.vd56-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.vd56-rtp-item {
    background: rgba(64, 224, 208, 0.1);
    padding: 0.8rem;
    border-radius: var(--vd56-border-radius);
    text-align: center;
}

.vd56-rtp-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vd56-primary);
}

.vd56-rtp-label {
    font-size: 1rem;
    color: var(--vd56-accent);
}

/* Features List */
.vd56-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.vd56-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(25, 25, 112, 0.3);
    border-radius: var(--vd56-border-radius);
    border-left: 3px solid var(--vd56-primary);
}

.vd56-feature-icon {
    font-size: 2rem;
    color: var(--vd56-primary);
    min-width: 30px;
}

.vd56-feature-text h4 {
    font-size: 1.3rem;
    color: var(--vd56-text-light);
    margin-bottom: 0.4rem;
}

.vd56-feature-text p {
    font-size: 1.1rem;
    color: var(--vd56-accent);
    line-height: 1.4;
}

/* FAQ Section */
.vd56-faq-item {
    background: rgba(25, 25, 112, 0.3);
    border-radius: var(--vd56-border-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.vd56-faq-question {
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--vd56-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vd56-faq-answer {
    padding: 0 1.2rem 1rem;
    font-size: 1.1rem;
    color: var(--vd56-text-light);
    line-height: 1.5;
}

/* Achievements */
.vd56-achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.vd56-achievement-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(64, 224, 208, 0.1);
    border-radius: var(--vd56-border-radius);
}

.vd56-achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.vd56-achievement-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vd56-primary);
}

.vd56-achievement-label {
    font-size: 1rem;
    color: var(--vd56-accent);
}

/* Tricks Section */
.vd56-trick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(25, 25, 112, 0.3);
    border-radius: var(--vd56-border-radius);
    margin-bottom: 0.6rem;
}

.vd56-trick-number {
    width: 28px;
    height: 28px;
    background: var(--vd56-primary);
    color: var(--vd56-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vd56-trick-text {
    font-size: 1.1rem;
    color: var(--vd56-text-light);
}

/* CTA Section */
.vd56-cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(25, 25, 112, 0.3) 100%);
    border-radius: var(--vd56-border-radius);
    margin: 1.6rem 0;
}

.vd56-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vd56-primary);
    margin-bottom: 0.8rem;
}

.vd56-cta-text {
    font-size: 1.2rem;
    color: var(--vd56-text-light);
    margin-bottom: 1.2rem;
}

/* Utility Classes */
.vd56-text-center {
    text-align: center;
}

.vd56-mt-1 {
    margin-top: 1rem;
}

.vd56-mb-1 {
    margin-bottom: 1rem;
}

.vd56-hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .vd56-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vd56-rtp-grid {
        grid-template-columns: 1fr;
    }

    .vd56-achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
