/* Brand Colors and Typography */
:root {
    --color-primary-1: #000000;
    --color-primary-2: #46D61D;
    --color-secondary-1: #231876;
    --color-secondary-2: #2464AA;
    --font-family: 'Outfit', sans-serif;
    /* Height of the fixed navbar, used for offsets */
    --navbar-height: 110px;
}

/* Mobile override for navbar height */
@media (max-width: 1200px) {
    :root {
        /* Approximate mobile navbar height: match actual header height on mobile */
        --navbar-height: 110px;
    }
    .hero {
        /* Allow hero to expand based on content */
        height: auto !important;
        min-height: calc(50vh - var(--navbar-height));
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: #333 #000000; /* thumb track - matches pure black PWA theme */
    scrollbar-width: thin;
}

/* Text selection highlight */
::selection {
    background-color: #46D61D;
    color: #000000;
}

::-moz-selection {
    background-color: #46D61D;
    color: #000000;
}

html {
    scroll-behavior: smooth;
    /* Let sections control their own offset; avoid over-centering anchors */
    scroll-padding-top: 0;
}

body {
    font-family: var(--font-family);
    color: #fff;
    background-color: var(--color-primary-1);
    line-height: 1.6;
}

/* Wrapper to offset the fixed navbar for all page content */
.page-content {
    margin-top: var(--navbar-height);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
 
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar .logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}
.navbar .logo img {
    max-height: 60px;
    position: relative;
    top: 6px;
}

.navbar .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .nav-links ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar .nav-links ul li {
    margin: 0 1rem;
    display: flex;
    align-items: center;
}

.navbar .nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 48px;
}

.navbar .nav-links ul li a:hover {
    color: var(--color-primary-2);
}

/* Scroll spy active state shares hover green and keeps it sticky */
.navbar .nav-links ul li a.active {
    color: var(--color-primary-2);
}

/* Hide mobile-only items on desktop */
.navbar .nav-links ul li.mobile-only {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Alpine utility */
[x-cloak] {
    display: none !important;
}

.hero {
    /* Allow hero to expand with content; still ensure initial viewport coverage */
    height: auto;
    min-height: calc(100vh - var(--navbar-height));
    background: linear-gradient(135deg, var(--color-secondary-1), var(--color-secondary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Horizontal padding only; vertical offset via .page-content */
    padding: 0 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--color-primary-2);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid var(--color-primary-2);
    color: var(--color-primary-2);
}

.btn-outline:hover {
    background: var(--color-primary-2);
    color: #fff;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from {opacity: 0; transform: translateY(-20px);}  
    to {opacity: 1; transform: translateY(0);}  
}

@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(20px);}  
    to {opacity: 1; transform: translateY(0);}  
}

/* Sections */
.section {
    /* Space above and below sections; leave room for fixed navbar when anchoring */
    padding: 80px 0;
    scroll-margin-top: 90px;
}

.features h2,
.pricing h2,
.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

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

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: background 0.3s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.2);
}

.feature-card i {
    margin-bottom: 1rem;
    color: var(--color-primary-2);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Pricing Card Enhancements */
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--color-primary-2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--color-primary-2), var(--color-secondary-2));
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured ul li,
.pricing-card.featured .btn {
    color: #fff;
}
/* Featured card list icons white */
.pricing-card.featured ul li::before {
    color: #fff;
}

 .pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-2);
}

.pricing-card .price {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price span {
    font-size: 1rem;
}
/* Add spacing above Subscribe buttons in pricing cards */
.pricing-card .btn {
    margin-top: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
}

.testimonial-card h4 {
    margin-top: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-primary-1);
    color: #fff;
    padding: 40px 0;
}

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

.footer h4 {
    margin-bottom: 1rem;
}

.social-icons a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-primary-2);
}

.x-icon-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-top: -6px;
}

.x-logo {
    width: 1.4rem;
    height: 1.4rem;
    color: #fff;
    transition: color 0.3s;
    display: block;
}

.x-icon-link:hover .x-logo {
    color: var(--color-primary-2);
}

.footer-link {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.footer-link-brand {
    color: #60a5fa;
}

.footer-link-brand:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary-2);
    color: #0f172a;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background: #6FE246;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 214, 29, 0.3);
}

/* Navigation changes to mobile menu at 1024px */
@media(max-width: 1024px) {
    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        display: none;
        flex-direction: column;
        transform: none;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links ul {
        flex-direction: column;
    }

    .navbar .nav-links ul li {
        margin: 1rem 0;
        text-align: center;
    }

    /* Show mobile-only items on mobile screens */
    .navbar .nav-links ul li.mobile-only {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar-right {
        order: 2;
    }

    .navbar .container {
        justify-content: space-between;
    }
}

/* Text-related changes at 1200px */
@media(max-width: 1200px) {
    /* Keep any text-related changes that should happen at 1200px here */
}
/* Comparison Table Styles */
.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
}
.comparison-table th {
    /* Header uses brand gradient */
    background: linear-gradient(135deg, var(--color-secondary-1), var(--color-secondary-2));
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    /* More professional header styling */
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.comparison-table td:first-child {
    text-align: left;
}
.comparison-table tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.05);
}
/* Modern Table Overrides */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}
.comparison-table th,
.comparison-table td {
    border: none;
    padding: 0.75rem 1rem;
}
.comparison-table th + th,
.comparison-table td + td {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table tr + tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table-wrap {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
}
/* Comparison Table Title */
.comparison-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 1.5rem 0 0.5rem;
}
.comparison-table td {
    color: #ccc;
    font-size: 0.95rem;
}
.icon-yes {
    color: var(--color-primary-2);
    margin-right: 0.5rem;
    opacity: 0.8;
}
.icon-no {
    color: #888;
    margin-right: 0.5rem;
}
/* Professional highlight for the first column to give a refined accent */
.comparison-table td:first-child {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 600;
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}
.comparison-table td:first-child::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--color-primary-2);
    border-radius: 2px;
}
/* Registration Form Styles */
.auth-section {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
}
.auth-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #fff;
}
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 1rem;
}
.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    color: #000;
}
.error-message {
    color: #ff6b6b;
    margin-top: 0.5rem;
}

/* User Profile Styles */
.user-profile {
    display: flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px 8px 8px;
    margin: 0;
    max-width: 240px;
    height: 48px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.profile-icon {
    font-size: 32px;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
}

.username {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Profile Modal Styles */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* visibility is controlled by Alpine's x-show; do not force display here */
    transition: opacity 0.3s ease;
}

.profile-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.profile-modal {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-modal.active {
    transform: translateY(0);
    opacity: 1;
}

.profile-modal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-modal ul li {
    margin: 0;
}

.profile-modal ul li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.profile-modal ul li:last-child a {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.profile-modal ul li:first-child a {
    border-radius: 12px 12px 0 0;
}

.profile-modal ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-modal ul li a.logout {
    color: #ff6b6b;
}

.profile-modal ul li a.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Logout button styles to match the original link appearance */
.logout-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #ff6b6b;
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-family);
    font-size: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0 0 12px 12px;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Mobile adjustments for profile modal */
@media (max-width: 1200px) {
    .profile-modal {
        right: 10px;
        top: 70px;
    }
    
    /* Reduce username max-width on smaller screens */
    .username {
        max-width: 200px;
    }
}

/* Further reduce username on very small screens */
@media (max-width: 768px) {
    .username {
        max-width: 70px;
    }
    
    .user-profile {
        max-width: 160px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .username {
        max-width: 50px;
    }
    
    .user-profile {
        max-width: 140px;
    }
}

/* Hide text on mobile for dashboard button and user-profile */
@media (max-width: 768px) {
    .dashboard-button span,
    .user-profile .username {
        display: none;
    }
    
    .dashboard-button {
        padding: 8px 12px;
        width: 48px;
        justify-content: center;
    }
    
    .user-profile {
        padding: 8px;
        width: 48px;
        max-width: 48px;
        justify-content: center;
    }
    
    .user-profile .profile-icon {
        margin-right: 0;
    }
}

/* Shared Validation Summary Styles (used by Login, ConfirmEmail, SignUp, etc.) */
.validation-summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 16px 14px 46px; /* space for leading icon */
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.18), rgba(185, 28, 28, 0.12));
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: 0 8px 28px rgba(190, 18, 60, 0.15), inset 0 1px 0 rgba(255,255,255,0.06);
    color: #fecaca;
}
.validation-summary::before {
    content: "\f06a"; /* Font Awesome exclamation-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}
.validation-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.validation-summary li {
    color: #fecaca;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Hide the summary when MVC indicates there are no errors */
.validation-summary-valid.validation-summary {
    display: none !important;
}

/* CTA Button (Global) */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-secondary-2);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background-color 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    filter: brightness(0.95);
}

/* Subscription CTA variant with golden accent and glow */
.cta-button.subscription-cta {
    position: relative;
    background: #f59e0b; /* golden */
    color: #0b1020;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    transform: translateZ(0);
    animation: cta-glow-pulse 2.2s ease-in-out infinite;
}

.cta-button.subscription-cta:hover {
    background: #d97706; /* darker golden */
    color: #0b1020;
}

.cta-button.subscription-cta::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120px 60px at 50% -40%, rgba(255,255,255,0.35), transparent 60%);
    filter: blur(8px);
    opacity: 0;
    animation: cta-shimmer 2.2s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        transform: translateZ(0) scale(1);
    }
    40% {
        box-shadow:
          0 0 12px rgba(255, 215, 0, 0.50),
          0 0 24px rgba(255, 215, 0, 0.28),
          0 0 48px rgba(255, 215, 0, 0.12);
        transform: translateZ(0) scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        transform: translateZ(0) scale(1);
    }
}

@keyframes cta-shimmer {
    35% { opacity: 0.25; }
    100% { opacity: 0; }
}

/* Login CTA variant with green accent */
.cta-button.login-cta {
    position: relative;
    background: var(--color-primary-2);
    color: #0b1020;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    box-shadow: 0 0 0 rgba(70, 214, 29, 0);
    transform: translateZ(0);
    animation: login-cta-glow-pulse 2.2s ease-in-out infinite;
}

.cta-button.login-cta:hover {
    background: #3bc018;
    color: #0b1020;
}

@keyframes login-cta-glow-pulse {
    0% {
        box-shadow: 0 0 0 rgba(70, 214, 29, 0);
        transform: translateZ(0) scale(1);
    }
    40% {
        box-shadow:
          0 0 12px rgba(70, 214, 29, 0.50),
          0 0 24px rgba(70, 214, 29, 0.28),
          0 0 48px rgba(70, 214, 29, 0.12);
        transform: translateZ(0) scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 rgba(70, 214, 29, 0);
        transform: translateZ(0) scale(1);
    }
}

/* Dashboard Button - matches user-profile style with blue accent */
.dashboard-button {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 25px;
    padding: 8px 16px;
    height: 48px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dashboard-button:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    text-decoration: none;
    color: #fff;
}

.dashboard-button i {
    font-size: 20px;
    color: #3b82f6;
}