/*
  File: public/home.css
  Purpose: Styles for the liveenity.com landing page (home.html) to match the reference design.
*/

/* --- Global & Typography --- */
/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F9FAFB;
    /* Light Gray Background */
    color: #374151;
    /* Gray-700 */
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    color: #111827;
    /* Gray-900 */
    font-weight: 700;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 20px;
}

p {
    font-size: 16px;
    color: #6B7280;
    /* Gray-500 */
}

a {
    color: #4B5563;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Layout --- */
main {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    padding: 48px;
    margin-top: 32px;
    margin-bottom: 32px;
}

/* --- Header --- */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.7));
    }

    50% {
        filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.9));
    }

    100% {
        filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.7));
    }
}

.logo svg {
    margin-right: 12px;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.7));
    animation: logoGlow 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #4B5563;
    font-weight: 500;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4B5563;
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 40px 0;
}

.hero-text .mascot {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

/* Live Badge */
.live-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4545, #ff1f1f);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 69, 69, 0.4);
    animation: livePulse 1.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 69, 69, 0.4);
        transform: translateX(-50%) scale(1);
    }

    50% {
        box-shadow: 0 4px 16px rgba(255, 69, 69, 0.8);
        transform: translateX(-50%) scale(1.05);
    }
}

/* Mascot Animation */
.mascot-img {
    animation: mascotFloat 3s ease-in-out infinite, mascotGlow 2s ease-in-out infinite alternate;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.mascot-img:hover {
    animation-play-state: paused;
    transform: scale(1.2) rotate(10deg);
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) scale(1.15) rotate(8deg);
    }
}

@keyframes mascotGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 77, 77, 0.8));
    }
}

.hero-text p {
    font-size: 18px;
    margin: 24px 0;
}

.cta-button {
    display: inline-block;
    background-color: #3B82F6;
    /* Blue-500 */
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #2563EB;
    /* Blue-600 */
}

.reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.review-avatars {
    display: flex;
}

.review-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.review-avatars img:first-child {
    margin-left: 0;
}

.review-text {
    font-size: 14px;
    color: #6B7280;
}

.review-text .stars {
    color: #F59E0B;
    /* Amber-500 */
}

.hero-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Payment Options --- */
.payment-options {
    margin: 8px 0 0 0;
    padding: 8px 0 0 0;
    border-top: 1px solid #E5E7EB;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-options.visible {
    opacity: 1;
    height: auto;
    overflow: visible;
}

.payment-header {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #4B5563;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    margin: 2px 0;
}

.payment-method-btn:hover {
    border-color: #3B82F6;
    background: #F0F9FF;
}

.payment-method-btn img {
    height: 18px;
}

/* --- Pricing Section --- */
.pricing-section {
    text-align: center;
    padding: 30px 0;
    margin: 20px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.pricing-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #111827;
}

.pricing-section>p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.pricing-card.featured {
    border: 2px solid #3B82F6;
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid #3B82F6;
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #3B82F6;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.pricing-header h3 {
    font-size: 18px;
    margin: 0 0 6px 0;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0;
    line-height: 1;
}

.price span {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.pricing-header p {
    margin: 6px 0 0 0;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.4;
}

.pricing-features {
    margin: 10px 0 5px 0;
    padding: 0;
    list-style: none;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 6px;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0;
    font-size: 13px;
    line-height: 1.3;
}

.pricing-features li:before {
    content: "✓";
    color: #10B981;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ECFDF5;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #3B82F6;
    background: white;
    color: #3B82F6;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s ease;
    text-align: center;
    margin-top: auto;
}

.pricing-button.primary {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.pricing-button:hover {
    background: #F3F4F6;
    transform: none;
    box-shadow: none;
}

.pricing-button.primary:hover {
    background: #2563EB;
    border-color: #2563EB;
    transform: none;
    box-shadow: none;
}

.enterprise-plan {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #E5E7EB;
}

.enterprise-plan h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111827;
}

.enterprise-plan p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.enterprise-button {
    padding: 8px 20px;
    background: white;
    border: 1px solid #3B82F6;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #3B82F6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.enterprise-button:hover {
    background: #3B82F6;
    color: white;
    transform: none;
    box-shadow: none;
}

/* --- Social Proof --- */
.social-proof {
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    gap: 2rem;
    align-items: center;
    padding: 40px 0;
    filter: grayscale(100%);
    opacity: 0.6;
}

.social-proof img {
    height: 24px;
}

/* --- Features Section --- */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    padding: 80px 0;
    text-align: center;
}

/* --- Dark Features Section --- */
.dark-features-section {
    background-color: #111827;
    /* Gray-900 */
    color: #E5E7EB;
    /* Gray-200 */
    padding: 80px;
    border-radius: 16px;
    text-align: center;
}

.dark-features-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    padding: 0;
}

.dark-features-section h3 {
    color: white;
}

.dark-features-section p {
    color: #9CA3AF;
    /* Gray-400 */
}

.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px;
    border: 1px solid #E5E7EB;
    /* Gray-200 */
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

/* --- Newsletter & Footer --- */
.newsletter-section {
    background-color: #F9FAFB;
    /* Gray-50 */
    padding: 60px;
    text-align: center;
    border-radius: 16px;
    margin-top: 80px;
}

.newsletter-section p {
    color: #6B7280;
}

footer {
    text-align: center;
    padding: 48px 0;
    color: #9CA3AF;
    font-size: 14px;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #6B7280;
}

/* Keyframes for the pulsing live indicator effect (Green) */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Style for the CTA button when the user is logged in (pulsing green circle) */
.cta-button.loggedin {
    width: 64px;
    /* Diameter of the circle */
    height: 64px;
    padding: 0;
    border-radius: 50%;
    /* Makes it a perfect circle */
    background: #28a745;
    /* Solid vibrant green */
    border: none;
    animation: pulse 2s infinite;
    font-size: 0;
    /* Hide the original button text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add an arrow inside the circle to indicate it's clickable */
.cta-button.loggedin::before {
    content: '→';
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

/* --- Auth Modal --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9CA3AF;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.tab-link {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #6B7280;
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.form-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-content input {
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
}

.form-content .cta-button {
    width: 100%;
    margin-top: 8px;
}

/* Form Error Messages */
.form-error {
    background-color: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-left: 3px solid #EF4444;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header */
    header nav {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Typography */
    h1 {
        font-size: 32px;
        text-align: center;
    }

    h2 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 20px 0;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .reviews {
        justify-content: center;
    }

    /* Features */
    .features-section,
    .dark-features-section .container,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dark-features-section {
        padding: 40px 20px;
    }

    /* Pricing */
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* FAQ */
    .faq-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .faq-item svg {
        align-self: flex-end;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 40px 20px;
        margin-top: 40px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}