/* New Yono Games - Modern Gaming Platform CSS */
/* ColorHunt Palette: #DC143C, #F75270, #F7CAC9, #FDEBD0 */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FDEBD0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000000;
}

/* Typography for dark backgrounds */
.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg h6,
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5, .page-hero h6,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6 {
    color: #FFFFFF;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #000000;
}

/* Typography for dark backgrounds */
.dark-bg p, .hero p, .page-hero p, .cta-section p {
    color: #FFFFFF;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #DC143C;
    color: #FFFFFF;
    border-color: #DC143C;
}

.btn-primary:hover {
    background: #F75270;
    border-color: #F75270;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-outline {
    background: transparent;
    color: #DC143C;
    border-color: #DC143C;
}

.btn-outline:hover {
    background: #DC143C;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background: #F7CAC9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: #DC143C;
}

.nav-menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #DC143C;
}

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

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #F7CAC9;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hamburger animation when menu is open */
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Close mobile menu when clicking outside */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: #FDEBD0;
    padding: 1rem 0;
    border-bottom: 1px solid #F7CAC9;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    color: #000000;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #DC143C;
}

.breadcrumb-item a {
    color: #DC143C;
    text-decoration: none;
}

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

.breadcrumb-item[aria-current="page"] {
    color: #000000;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #DC143C 0%, #F75270 100%);
    color: #FFFFFF;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Page Hero (for other pages) */
.page-hero {
    background: linear-gradient(135deg, #DC143C 0%, #F75270 100%);
    color: #FFFFFF;
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Content Sections */
.about-section,
.features-section,
.registration-section,
.register-section,
.login-section,
.advantages-section,
.faq-section,
.cta-section,
.about-content,
.policy-content,
.terms-content,
.disclaimer-content,
.support-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background: #F7CAC9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    color: #DC143C;
    margin-bottom: 1rem;
}

/* Register and Login Sections */
.register-section,
.login-section {
    background: #FDEBD0;
}

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

.register-content,
.login-content {
    max-width: none;
}

.register-visual,
.login-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.register-visual img,
.login-visual img {
    max-width: 280px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.register-visual img:hover,
.login-visual img:hover {
    transform: translateY(-5px);
}

/* Phone Stack for Register Section */
.phone-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.phone-stack img {
    max-width: 280px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.phone-stack img:hover {
    transform: translateY(-5px);
}

/* Steps Container */
.steps-container {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #F7CAC9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
}

.step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #DC143C;
}

.step-icon img {
    width: 25px;
    height: 25px;
    filter: none;
}

.step-content h4 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

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

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #000000;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #DC143C;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Notes */
.register-note,
.login-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #000000;
}

.register-note a,
.login-note a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 500;
}

.register-note a:hover,
.login-note a:hover {
    text-decoration: underline;
}

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

.value-item {
    background: #FDEBD0;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    color: #DC143C;
    margin-bottom: 1rem;
}

/* Support Methods */
.support-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-method {
    background: #F7CAC9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.support-method h3 {
    color: #DC143C;
    margin-bottom: 1rem;
}

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

.faq-item {
    background: #FDEBD0;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item h3 {
    background: #F7CAC9;
    padding: 1.5rem;
    margin: 0;
    color: #DC143C;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background: #FDEBD0;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #DC143C 0%, #F75270 100%);
    color: #FFFFFF;
    text-align: center;
}

.cta-section h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Page */
.error-section {
    padding: 4rem 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code h1 {
    font-size: 6rem;
    color: #DC143C;
    margin-bottom: 0;
    line-height: 1;
}

.error-code h2 {
    color: #000000;
    margin-bottom: 2rem;
}

.error-message {
    margin-bottom: 2rem;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.error-actions {
    margin-bottom: 3rem;
}

.error-suggestions,
.error-search {
    background: #F7CAC9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.error-suggestions h3,
.error-search h3 {
    color: #DC143C;
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    text-align: left;
}

.error-suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.error-suggestions li::before {
    content: '•';
    color: #DC143C;
    position: absolute;
    left: 0;
}

.error-suggestions a {
    color: #DC143C;
    text-decoration: none;
}

.error-suggestions a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #DC143C;
    color: #FFFFFF;
    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: #FFFFFF;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@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;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid,
    .values-grid,
    .support-methods {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    /* Register and Login sections mobile */
    .register-section .container,
    .login-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .register-visual,
    .login-visual {
        margin-top: 2rem;
    }
    
    .register-visual img,
    .login-visual img {
        max-width: 280px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .error-code h1 {
        font-size: 4rem;
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus,
.footer-section a:focus {
    outline: 2px solid #DC143C;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .breadcrumb {
        display: none;
    }
    
    .main-content {
        min-height: auto;
    }
    
    .btn {
        border: 1px solid #000;
        background: none !important;
        color: #000 !important;
    }
}
