/* N8 Casino App - Main Stylesheet */
/* Optimized for performance and accessibility with ColorHunt Palette */

/* CSS Custom Properties - ColorHunt Palette */
:root {
    --muted-green: #96A78D;
    --light-pastel-green: #B6CEB4;
    --very-light-mint: #D9E9CF;
    --neutral-off-white: #F0F0F0;
    
    /* Text Colors */
    --text-black: #000000;
    --text-white: #FFFFFF;
    
    /* Hover/Focus Variants (slightly darker/lighter within palette) */
    --muted-green-hover: #7A8B72;
    --light-pastel-green-hover: #9BB898;
    --very-light-mint-hover: #C5D8BA;
    --neutral-off-white-hover: #E5E5E5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--neutral-off-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-black);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-black);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--muted-green);
    box-shadow: 0 2px 10px rgba(150, 167, 141, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--text-white);
    background-color: var(--muted-green-hover);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-black);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--muted-green);
    color: var(--text-black);
    border-color: var(--muted-green);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--muted-green-hover);
    color: var(--text-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(150, 167, 141, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-black);
    border-color: var(--text-black);
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--muted-green);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(150, 167, 141, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--very-light-mint);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-pastel-green);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    margin-right: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--muted-green);
}

.breadcrumb-item a {
    color: var(--muted-green);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--muted-green) 0%, var(--light-pastel-green) 100%);
    color: var(--text-black);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-black);
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(150, 167, 141, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Registration and Login Sections */
.register-section,
.login-section {
    padding: 4rem 0;
    background-color: var(--neutral-off-white);
}

.register-section .container,
.login-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.register-content,
.login-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.register-content h2,
.login-content h2 {
    font-size: 2.5rem;
    color: var(--text-black);
    margin-bottom: 1rem;
}

.register-content h3,
.login-content h3 {
    font-size: 1.8rem;
    color: var(--muted-green);
    margin-bottom: 1.5rem;
}

.register-content p,
.login-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-black);
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--very-light-mint);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--muted-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(150, 167, 141, 0.15);
}

.step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--muted-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.step-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content h4 strong {
    color: var(--muted-green);
}

.step-content p {
    font-size: 1rem;
    color: var(--text-black);
    margin: 0;
    line-height: 1.5;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-black);
    font-size: 1.1rem;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--muted-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Registration and Login Images */
.register-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.register-images img {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(150, 167, 141, 0.3);
    transition: transform 0.3s ease;
}

.register-images img:hover {
    transform: scale(1.05);
}

.login-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(150, 167, 141, 0.3);
    transition: transform 0.3s ease;
}

.login-image img:hover {
    transform: scale(1.05);
}

/* Registration and Login Notes */
.register-note,
.login-note {
    font-size: 1rem;
    color: var(--text-black);
    margin-top: 1.5rem;
}

.register-note a,
.login-note a {
    color: var(--muted-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-note a:hover,
.login-note a:hover {
    color: var(--muted-green-hover);
    text-decoration: underline;
}

/* Sections */
.about-platform,
.registration-process,
.faq {
    padding: 4rem 0;
    background-color: var(--neutral-off-white);
}

.features,
.advantages-security {
    padding: 4rem 0;
    background-color: var(--very-light-mint);
}

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--muted-green) 0%, var(--light-pastel-green) 100%);
    color: var(--text-black);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--text-black);
}


.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--neutral-off-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(150, 167, 141, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-pastel-green);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(150, 167, 141, 0.2);
    background-color: var(--very-light-mint-hover);
}

.feature-card img {
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--muted-green);
    margin-bottom: 1rem;
}

/* Process Sections */
.process-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--very-light-mint);
    border-radius: 10px;
    border-left: 4px solid var(--muted-green);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    background-color: var(--neutral-off-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(150, 167, 141, 0.1);
    border: 1px solid var(--light-pastel-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(150, 167, 141, 0.15);
    background-color: var(--very-light-mint-hover);
}

.advantage-item h3 {
    color: var(--muted-green);
    margin-bottom: 1rem;
}

/* FAQ */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--very-light-mint);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light-pastel-green);
}

.faq-item h3 {
    background-color: var(--muted-green);
    color: var(--text-black);
    padding: 1rem 1.5rem;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background-color: var(--muted-green-hover);
    color: var(--text-white);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    background-color: var(--neutral-off-white);
}

/* Footer */
.footer {
    background-color: var(--muted-green);
    color: var(--text-black);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-black);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-white);
    background-color: var(--muted-green-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--light-pastel-green);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-black);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--muted-green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInFromLeft 0.3s ease forwards;
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    
    .nav-menu a {
        color: var(--text-white);
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a[aria-current="page"] {
        background-color: var(--muted-green-hover);
        color: var(--text-white);
        transform: scale(1.05);
    }
    
    .nav-buttons {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        max-width: 300px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-buttons.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .register-section .container,
    .login-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 2rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-icon {
        align-self: center;
        margin-top: 0;
    }
    
    .register-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .register-images img {
        max-width: 150px;
    }
    
    .login-image img {
        max-width: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-platform,
    .features,
    .registration-process,
    .advantages-security,
    .faq,
    .cta-section {
        padding: 2rem 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-menu a:focus,
.footer-section a:focus {
    outline: 2px solid var(--muted-green);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-black);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Additional interactive states for better UX */
.btn-primary:focus,
.btn-outline:focus {
    outline: 2px solid var(--muted-green);
    outline-offset: 2px;
}

.feature-card:focus-within {
    outline: 2px solid var(--muted-green);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .feature-card, .advantage-item, .faq-item h3 {
    transition: all 0.3s ease;
}

/* Enhanced contrast for better accessibility */
.nav-menu a[aria-current="page"] {
    font-weight: 700;
}

.footer-section a:hover {
    font-weight: 600;
}

/* Mobile Menu Animations */
@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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