﻿/* ==========================================================================
   Mapyar Landing Page - Isolated Stylesheet (CSS)
   Scope Prefix: .mapyar-landing-wrapper
   Icons: Font Awesome 4.7.0 Compatible
   Layout: Single-Column Hero with Video/GIF Support
   ========================================================================== */

/* 1. CSS Variables / Design Tokens */
.mapyar-landing-wrapper {
    --mpl-primary: #2563eb;
    --mpl-primary-dark: #1d4ed8;
    --mpl-secondary: #0f172a;
    --mpl-accent-ai: #8b5cf6;
    --mpl-accent-ai-glow: rgba(139, 92, 246, 0.25);
    --mpl-bg-light: #f8fafc;
    --mpl-text-dark: #1e293b;
    --mpl-text-muted: #64748b;
    --mpl-border-color: #e2e8f0;
    --mpl-radius: 16px;
}

/* 2. Isolation Wrapper & Reset */
.mapyar-landing-wrapper {
    background-color: var(--mpl-bg-light);
    color: var(--mpl-text-dark);
    line-height: 1.7;
    font-family: IRANSans;
    direction: rtl;
    text-align: right;
    width: 100%;
}

    .mapyar-landing-wrapper * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: inherit;
    }

    /* 3. Global Container */
    .mapyar-landing-wrapper .mpl-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 24px;
    }

    /* ==========================================================================
   4. Hero Section - Single Column Layout (Centered Content + Video Below)
   ========================================================================== */

    .mapyar-landing-wrapper .mpl-hero--single-col {
        position: relative;
        background-color: #0b0f19;
        color: #ffffff;
        padding: 100px 0 80px;
        overflow: hidden;
        min-height: auto;
        display: flex;
        align-items: center;
    }

    /* Glow Background Effects */
    .mapyar-landing-wrapper .mpl-hero__glow {
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(139, 92, 246, 0.08) 70%, transparent 100%);
        top: -150px;
        right: 50%;
        transform: translateX(50%);
        filter: blur(80px);
        border-radius: 50%;
        pointer-events: none;
    }

    .mapyar-landing-wrapper .mpl-hero__glow--left {
        top: auto;
        bottom: -200px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    }

    /* Centered Wrapper */
    .mapyar-landing-wrapper .mpl-hero__single-wrapper {
        position: relative;
        z-index: 1;
        max-width: 1400px;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Badge */
    .mapyar-landing-wrapper .mpl-hero__badge {
        background: rgba(37, 99, 235, 0.15);
        border: 1px solid rgba(96, 165, 250, 0.3);
        color: #60a5fa;
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
        backdrop-filter: blur(10px);
    }

        .mapyar-landing-wrapper .mpl-hero__badge i {
            color: #38bdf8;
            animation: mpl-pulse 2s infinite;
        }

    /* Title */
    .mapyar-landing-wrapper .mpl-hero__title {
        font-size: 2.8rem;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 20px;
        color: #ffffff;
    }

        .mapyar-landing-wrapper .mpl-hero__title span {
            background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    /* Description */
    .mapyar-landing-wrapper .mpl-hero__desc {
        font-size: 1.2rem;
        color: #94a3b8;
        line-height: 1.8;
        max-width: 750px;
        margin: 0 auto 32px;
    }

    /* Buttons System */
    .mapyar-landing-wrapper .mpl-hero__btns {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 50px;
    }

    .mapyar-landing-wrapper .mpl-btn {
        padding: 14px 28px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .mapyar-landing-wrapper .mpl-btn--primary {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #ffffff;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }

        .mapyar-landing-wrapper .mpl-btn--primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(37, 99, 235, 0.6);
        }

    .mapyar-landing-wrapper .mpl-btn--secondary {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }

        .mapyar-landing-wrapper .mpl-btn--secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
        }

    /* Video / GIF Container (Under Description & Buttons) */
    .mapyar-landing-wrapper .mpl-hero__video-container {
        position: relative;
        width: 100%;
        max-width: 1400px;
        margin-top: 10px;
    }

    .mapyar-landing-wrapper .mpl-hero__media-card {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(30, 41, 59, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 99, 235, 0.25);
        backdrop-filter: blur(12px);
        transition: transform 0.4s ease;
    }

        .mapyar-landing-wrapper .mpl-hero__media-card:hover {
            transform: translateY(-4px);
        }

    .mapyar-landing-wrapper .mpl-hero__media {
        width: 100%;
        max-height: 500px;
        display: block;
        object-fit: cover;
    }

    /* Floating Badge on Video */
    .mapyar-landing-wrapper .mpl-hero__float-card {
        position: absolute;
        bottom: -20px;
        right: 30px;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 12px 20px;
        border-radius: 14px;
        backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        animation: mpl-float 4s ease-in-out infinite;
        text-align: right;
    }

    .mapyar-landing-wrapper .mpl-hero__float-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #8b5cf6, #d946ef);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
    }

    .mapyar-landing-wrapper .mpl-hero__float-text h4 {
        font-size: 0.9rem;
        color: #ffffff;
        margin: 0;
    }

    .mapyar-landing-wrapper .mpl-hero__float-text p {
        font-size: 0.78rem;
        color: #94a3b8;
        margin: 0;
    }

    /* ==========================================================================
   5. Feature Sections & Grid Layout
   ========================================================================== */

    .mapyar-landing-wrapper .mpl-feature-section {
        padding: 90px 0;
        border-bottom: 1px solid var(--mpl-border-color);
    }

    .mapyar-landing-wrapper .mpl-feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .mapyar-landing-wrapper .mpl-feature-grid--reverse {
        direction: ltr;
    }

        .mapyar-landing-wrapper .mpl-feature-grid--reverse .mpl-feature-content {
            direction: rtl;
        }

    .mapyar-landing-wrapper .mpl-feature-content__title {
        font-size: 1.8rem;
        color: var(--mpl-secondary);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .mapyar-landing-wrapper .mpl-feature-content__title i {
            color: var(--mpl-primary);
        }

    .mapyar-landing-wrapper .mpl-feature-content__desc {
        color: var(--mpl-text-muted);
        margin-bottom: 24px;
        font-size: 1.05rem;
    }

    .mapyar-landing-wrapper .mpl-feature-list {
        list-style: none;
    }

    .mapyar-landing-wrapper .mpl-feature-list__item {
        position: relative;
        padding-right: 32px;
        margin-bottom: 16px;
        font-size: 1.05rem;
        color: var(--mpl-text-dark);
    }

        .mapyar-landing-wrapper .mpl-feature-list__item i {
            position: absolute;
            right: 0;
            top: 4px;
            color: #10b981;
            font-size: 1.2rem;
        }

    .mapyar-landing-wrapper .mpl-feature-image img {
        width: 100%;
        border-radius: var(--mpl-radius);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--mpl-border-color);
        transition: transform 0.3s ease;
    }

        .mapyar-landing-wrapper .mpl-feature-image img:hover {
            transform: translateY(-5px);
        }

    /* ==========================================================================
   6. Highlighted AI Feature Section
   ========================================================================== */

    .mapyar-landing-wrapper .mpl-ai-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
        color: #ffffff;
        position: relative;
        padding: 100px 0;
        border-bottom: none;
    }

    .mapyar-landing-wrapper .mpl-ai-badge {
        background: linear-gradient(90deg, #8b5cf6, #d946ef);
        color: #ffffff;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 16px;
        box-shadow: 0 0 20px var(--mpl-accent-ai-glow);
    }

    .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-content__title {
        color: #ffffff;
    }

        .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-content__title i {
            color: #c084fc;
        }

    .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-content__desc {
        color: #cbd5e1;
    }

    .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-list__item {
        color: #f1f5f9;
    }

        .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-list__item i {
            color: #c084fc;
        }

    .mapyar-landing-wrapper .mpl-ai-section .mpl-feature-image img {
        border: 1px solid rgba(192, 132, 252, 0.3);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    }

    /* ==========================================================================
   7. Footer Section
   ========================================================================== */

    .mapyar-landing-wrapper .mpl-footer {
        background-color: var(--mpl-secondary);
        color: #94a3b8;
        padding: 40px 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

/* ==========================================================================
   8. Keyframe Animations
   ========================================================================== */

@keyframes mpl-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes mpl-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   9. Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .mapyar-landing-wrapper .mpl-feature-grid,
    .mapyar-landing-wrapper .mpl-feature-grid--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: rtl;
    }
}

@media (max-width: 768px) {
    .mapyar-landing-wrapper .mpl-hero__title {
        font-size: 2rem;
    }

    .mapyar-landing-wrapper .mpl-hero__desc {
        font-size: 1rem;
    }

    .mapyar-landing-wrapper .mpl-hero__float-card {
        right: 15px;
        bottom: 15px;
    }
}
