/* HappyAce Gaming - Main Stylesheet */

/* ColorHunt Palette Variables */
:root {
    --very-light-blush: #FFDBDB;
    --light-pink: #FFC6C6;
    --dark-gold: #644A07;
    --very-dark-brown: #594100;
    --black: #000000;
    --white: #FFFFFF;
}

/* 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(--black);
    background-color: var(--very-light-blush);
}

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

/* Header Styles */
.header {
    background: var(--dark-gold);
    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: 50px;
    width: auto;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--very-light-blush);
    background-color: rgba(255, 219, 219, 0.2);
}

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

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

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

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

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

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


/* Button Styles */
.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: var(--light-pink);
    color: var(--black);
    border-color: var(--light-pink);
}

.btn-primary:hover {
    background: var(--very-light-blush);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 198, 198, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-gold);
}

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

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

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

.breadcrumb-item::after {
    content: '>';
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-link {
    color: var(--dark-gold);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
    color: var(--very-dark-brown);
}

/* Hero Section */
.hero {
    background: var(--light-pink);
    color: var(--black);
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
}

.about-section,
.features-section,
.registration-section,
.advantages-section,
.faq-section {
    padding: 4rem 0;
}

.about-section {
    background-color: var(--very-light-blush);
}

.features-section {
    background-color: var(--very-dark-brown);
    color: var(--white);
}

.registration-section {
    background-color: var(--light-pink);
}

.advantages-section {
    background-color: var(--very-dark-brown);
    color: var(--white);
}

.faq-section {
    background-color: var(--very-light-blush);
}

/* Section title overrides for dark sections */
.features-section .section-title,
.advantages-section .section-title {
    color: var(--white);
}

/* About Content */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

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

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

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.feature-card p {
    color: var(--black);
    line-height: 1.6;
    opacity: 0.8;
}

/* Registration Content */
.registration-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--black);
}

.registration-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.registration-content a {
    color: var(--dark-gold);
    text-decoration: none;
    font-weight: 600;
}

.registration-content a:hover {
    text-decoration: underline;
    color: var(--very-dark-brown);
}

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

.advantage-item {
    background: var(--light-pink);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--black);
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.advantage-item p {
    color: var(--black);
    line-height: 1.6;
    opacity: 0.8;
}

/* FAQ Styles */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item h3 {
    background: var(--light-pink);
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    color: var(--black);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background: var(--very-light-blush);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    color: var(--black);
    line-height: 1.6;
}

.faq-item a {
    color: var(--dark-gold);
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
    color: var(--very-dark-brown);
}

/* CTA Section */
.cta-section {
    background: var(--dark-gold);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer */
.footer {
    background: var(--very-dark-brown);
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--very-light-blush);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--light-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--very-light-blush);
}

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

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


/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-gold);
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        font-size: 0.9rem;
    }
    
    .nav-link:hover,
    .nav-link[aria-current="page"] {
        background-color: rgba(255, 219, 219, 0.1);
    }
    
    .nav-actions {
        display: none;
    }
}


/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-gold);
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link[aria-current="page"] {
        background-color: rgba(255, 219, 219, 0.1);
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* 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-link:focus,
.breadcrumb-link:focus {
    outline: 2px solid var(--very-light-blush);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: var(--black);
        color: var(--white);
        border-color: var(--black);
    }
    
    .btn-outline {
        background: var(--white);
        color: var(--black);
        border-color: var(--black);
    }
}

/* Page-specific styles */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* About page styles */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-text h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #1a1a2e;
}

.content-text h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    color: #1a1a2e;
}

.content-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

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

/* Policy and Terms pages */
.policy-content,
.terms-content,
.disclaimer-content {
    padding: 4rem 0;
    background-color: #fff;
}

.policy-text,
.terms-text,
.disclaimer-text {
    max-width: 800px;
    margin: 0 auto;
}

.policy-text h2,
.terms-text h2,
.disclaimer-text h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #1a1a2e;
}

.policy-text h3,
.terms-text h3,
.disclaimer-text h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #1a1a2e;
}

.policy-text p,
.terms-text p,
.disclaimer-text p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.policy-text ul,
.terms-text ul,
.disclaimer-text ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.policy-text li,
.terms-text li,
.disclaimer-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Support page styles */
.support-content {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.support-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

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

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

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

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-info {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.support-info h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    color: #1a1a2e;
}

.support-info ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.support-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Breadcrumb current page */
.breadcrumb-current {
    color: #6c757d;
}

/* Registration and Login Sections */
.register-section,
.login-section {
    padding: 4rem 0;
    background-color: #f5f5f0;
}

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

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

.register-content h2,
.login-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.register-content h3,
.login-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem 0;
    color: #2c3e50;
}

.register-content p,
.login-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

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

.step-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #e8f8f5;
    border-radius: 8px;
    border: 1px solid #a8e6cf;
}

.step-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #20b2aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

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

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.step-content strong {
    color: #2c3e50;
    font-weight: 700;
}

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

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #20b2aa;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.btn-register,
.btn-login {
    display: inline-block;
    padding: 12px 24px;
    background: #20b2aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0;
    transition: background-color 0.3s ease;
}

.btn-register:hover,
.btn-login:hover {
    background: #1a9b94;
    color: #fff;
}

/* Register and Login Notes */
.register-note,
.login-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.register-note a,
.login-note a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Phone Mockups */
.register-phones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

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

.phone-mockup {
    position: relative;
    background: #000;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-mockup img {
    width: 200px;
    height: auto;
    border-radius: 15px;
    display: block;
}

.login-phone .phone-mockup img {
    width: 250px;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .content-grid,
    .support-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .policy-text,
    .terms-text,
    .disclaimer-text {
        padding: 0 1rem;
    }
    
    /* Registration and Login responsive */
    .register-layout,
    .login-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 1.8rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.4rem;
    }
    
    .step-box {
        padding: 0.75rem;
    }
    
    .step-icon {
        width: 25px;
        height: 25px;
        margin-right: 0.75rem;
    }
    
    .step-icon img {
        width: 16px;
        height: 16px;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .register-phones {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .phone-mockup img {
        width: 150px;
    }
    
    .login-phone .phone-mockup img {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .register-phones {
        flex-direction: column;
    }
    
    .phone-mockup img {
        width: 120px;
    }
    
    .login-phone .phone-mockup img {
        width: 180px;
    }
}
