/* MatchRoom Live - Promo Website Styles */
/* Design: Creative & Playful (Bulma) + AOS */
/* Palette extracted from Flutter app theme: Mint + Red on light */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Extracted from app_colors.dart */
    --color-primary: #19BFA6;
    --color-primary-light: #4ED6C2;
    --color-primary-dark: #032F29;
    --color-secondary: #F2331A;
    --color-secondary-dark: #D92714;
    --color-fire-orange: #FF6A3D;
    --color-accent-gold: #FFC857;
    --color-accent-gold-dark: #FFB200;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F6F7F8;
    --color-surface-teal: #E8FBF7;
    --color-border-coral: #FFEAE6;
    --color-text-primary: #111111;
    --color-text-secondary: #555555;
    --color-text-disabled: #A0A0A0;
    --color-mint-dark: #07423A;

    /* Gradients from app_gradients.dart */
    --gradient-mint: linear-gradient(180deg, #19BFA6 0%, #4ED6C2 100%);
    --gradient-fire: linear-gradient(180deg, #F2331A 0%, #FF6A3D 100%);
    --gradient-gold: linear-gradient(180deg, #FFC857 0%, #FFB200 100%);
    --gradient-soft: linear-gradient(180deg, #E8FBF7 0%, #FFFFFF 100%);

    /* Dimensions from app_dimensions.dart */
    --radius-btn: 63px;
    --radius-card: 12px;
    --radius-card-lg: 15px;
    --radius-card-xl: 18px;
    --radius-small: 8px;

    /* Fonts from app_typography.dart */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(7, 66, 58, 0.06);
    --shadow-md: 0 4px 16px rgba(7, 66, 58, 0.10);
    --shadow-lg: 4px 6px 8.4px rgba(7, 66, 58, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--color-bg) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand .navbar-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-text-primary) !important;
    gap: 0.35rem;
}

.navbar-brand .logo-match {
    color: var(--color-text-primary);
}

.navbar-brand .logo-room {
    color: var(--color-primary);
}

.navbar-menu .navbar-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-secondary) !important;
    transition: color 0.3s ease;
}

.navbar-menu .navbar-item:hover,
.navbar-menu .navbar-item.is-active {
    color: var(--color-primary) !important;
    background-color: transparent !important;
}

.navbar-burger span {
    background-color: var(--color-text-primary) !important;
    height: 2px !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-soft);
    padding: 4rem 1.5rem 3rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(25, 191, 166, 0.07);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(242, 51, 26, 0.04);
    pointer-events: none;
}

.hero-columns {
    width: 100%;
}

.hero-content {
    max-width: 520px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.hero-content h1 .accent {
    color: var(--color-primary);
}

.hero-content h1 .accent-red {
    color: var(--color-secondary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 440px;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--gradient-mint);
    color: #fff !important;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 4px 6px 8px rgba(7, 66, 58, 0.22);
    gap: 0.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 8px 14px rgba(7, 66, 58, 0.28);
    color: #fff !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--color-bg);
    color: var(--color-text-primary) !important;
    border: 2px solid #dce0e3;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

.btn-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--gradient-fire);
    color: #fff !important;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 4px 6px 8px rgba(242, 51, 26, 0.22);
    gap: 0.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 4px 8px 14px rgba(242, 51, 26, 0.30);
    color: #fff !important;
}

/* ===== DEVICE MOCKUP ===== */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    padding: 10px;
    background: var(--color-text-primary);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.device-frame img {
    width: 100%;
    border-radius: 22px;
    display: block;
}

.device-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: var(--color-text-primary);
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 1.5rem;
    background: var(--color-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface-teal);
    border-radius: var(--radius-card-lg);
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    color: #fff;
}

.feature-icon.mint { background: var(--gradient-mint); }
.feature-icon.red { background: var(--gradient-fire); }
.feature-icon.gold { background: var(--gradient-gold); }
.feature-icon.dark { background: linear-gradient(180deg, var(--color-mint-dark), var(--color-primary-dark)); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.93rem;
    text-align: left;
    line-height: 1.6;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
    padding: 3.5rem 1.5rem;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    height: 380px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius-card-xl);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-card-xl);
    box-shadow: var(--shadow-lg);
    filter: blur(5px);
    transition: filter 0.4s ease;
}

.carousel-slide img.loaded {
    filter: blur(0);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c8d0d4;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 26px;
    border-radius: 5px;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
    line-height: 1;
}

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

.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-card);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4.5rem 1.5rem;
    background: var(--color-surface-teal);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.cta-section p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-mint-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 1.5rem;
}

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

.site-footer a:hover {
    color: var(--color-primary-light);
}

.site-footer h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.legal-content .subtitle {
    color: var(--color-text-disabled);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-primary);
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-secondary);
    text-align: left;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li { margin-bottom: 0.35rem; }

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    padding: 4rem 1.5rem;
    background: var(--color-bg-alt);
}

.contact-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--color-bg);
    border-radius: var(--radius-card-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
}

.contact-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    text-align: center;
}

.contact-card .contact-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dce0e3;
    border-radius: var(--radius-small);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: var(--color-bg);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    font-size: 0.85rem;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success .checkmark {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.form-success h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-success p {
    color: var(--color-text-secondary);
}

/* ===== PRIVACY ACCEPTANCE BUTTON ===== */
.privacy-accept-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, var(--color-bg) 60%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-accept-btn.hidden {
    display: none;
}

.accept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    background: var(--gradient-mint);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 4px 6px 8px rgba(7, 66, 58, 0.22);
    text-align: center;
    line-height: 1.2;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
    .hero-columns {
        display: flex;
        align-items: center;
        gap: 3rem;
        max-width: 1100px;
        margin: 0 auto;
    }
    .hero-col-content { flex: 1; }
    .hero-col-mockup { flex: 0 0 300px; }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem 2rem;
        min-height: auto;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-columns {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content p { text-align: center; }
    .hero-buttons { justify-content: center; }
    .device-mockup {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
    .section-title h2 { font-size: 1.6rem; }
    .carousel-wrapper {
        max-width: 240px;
        height: 330px;
    }
    .carousel-track { height: 300px; }
    .carousel-btn.prev { left: -14px; }
    .carousel-btn.next { right: -14px; }
    .contact-card { padding: 1.5rem 1.25rem; }
    .legal-content h1 { font-size: 1.7rem; }
    .features-section, .cta-section { padding: 3rem 1rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.65rem; }
    .btn-primary, .btn-secondary, .btn-fire {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
    .carousel-wrapper {
        max-width: 210px;
        height: 290px;
    }
    .carousel-track { height: 260px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 1.5rem 1rem;
    }
    .carousel-wrapper { height: 240px; }
    .carousel-track { height: 220px; }
}
