{% extends 'expat_life/base.html' %}
{% load static %}

{% block title %}Sri Lanka Dating Partners | Genuine Local Matches for Serious Relationships{% endblock %}

{% block content %}

<!-- HERO -->
<section class="dating-hero-section py-5 py-lg-6 bg-light position-relative overflow-hidden">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-7">
                <span class="text-uppercase text-primary fw-semibold">Serious Relationship Connections</span>

                <h1 class="display-4 fw-bold mt-2 mb-3">
                    Meet Genuine Sri Lankan Dating and Marriage Partner Candidates
                </h1>

                <p class="lead text-muted mb-4">
                    Discover approved local profiles in Sri Lanka for marriage, long-term relationships,
                    and meaningful companionship. This section is designed for foreigners seeking sincere,
                    respectful, and more serious relationship opportunities.
                </p>

                <div class="d-flex gap-3 flex-wrap mt-4">
                    <a href="{% url 'dating_app:public_partner_list' %}" class="btn btn-primary btn-lg px-4">
                        Browse Profiles
                    </a>
                     {% if is_foreigner_user %}
                        <a href="{% url 'expat_life:foreigner_dashboard' %}" class="btn btn-outline-dark btn-lg px-4">
                            My Dashboard
                        </a>
                    {% else %}
                        <a href="{% url 'expat_life:foreigner_signup' %}" class="btn btn-outline-dark btn-lg px-4">
                            Free Foreigner Signup
                        </a>
                    {% endif %}
                </div>

                <div class="row g-3 mt-3">
                    <div class="col-sm-4">
                        <div class="bg-white rounded-4 shadow-sm p-3 h-100">
                            <div class="fw-bold text-primary fs-5 mb-1">Reviewed</div>
                            <div class="small text-muted">Profiles are checked before appearing publicly</div>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="bg-white rounded-4 shadow-sm p-3 h-100">
                            <div class="fw-bold text-primary fs-5 mb-1">Serious</div>
                            <div class="small text-muted">Focused on marriage and long-term relationships</div>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="bg-white rounded-4 shadow-sm p-3 h-100">
                            <div class="fw-bold text-primary fs-5 mb-1">Respectful</div>
                            <div class="small text-muted">Designed for genuine and meaningful introductions</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-lg-5">
                <div class="bg-white rounded-4 shadow-lg overflow-hidden">
                    <img src="{% static 'expat_life/images/dating_partners_hero.webp' %}"
                         alt="Sri Lanka relationship introduction"
                         class="img-fluid w-100"
                         style="height: 320px; object-fit: cover;">

                    <div class="p-4">
                        <h4 class="fw-bold mb-3">Why this section stands out</h4>

                        <div class="mb-3">
                            <strong>Focused on genuine intentions</strong>
                            <p class="text-muted mb-0 small">
                                Built for people who value sincerity, long-term compatibility, and meaningful communication.
                            </p>
                        </div>

                        <div class="mb-3">
                            <strong>Local Sri Lankan candidates</strong>
                            <p class="text-muted mb-0 small">
                                A platform space for approved local applicants interested in serious relationship paths.
                            </p>
                        </div>

                        <div>
                            <strong>A more guided and respectful experience</strong>
                            <p class="text-muted mb-0 small">
                                Better suited for foreigners looking for trust, cultural connection, and real relationship possibilities.
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- TRUST STRIP -->
<section class="py-4 bg-white border-top border-bottom">
    <div class="container">
        <div class="row text-center g-4">
            <div class="col-md-3">
                <div class="fw-semibold">Approved Public Profiles</div>
            </div>
            <div class="col-md-3">
                <div class="fw-semibold">Marriage & Long-Term Focus</div>
            </div>
            <div class="col-md-3">
                <div class="fw-semibold">More Respectful Introductions</div>
            </div>
            <div class="col-md-3">
                <div class="fw-semibold">Sri Lanka-Based Candidates</div>
            </div>
        </div>
    </div>
</section>

<!-- FEATURED PROFILES -->
<section class="py-5 py-lg-6">
    <div class="container">
        <div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-end mb-4">
            <div>
                <span class="text-uppercase text-primary fw-semibold">Featured Introductions</span>
                <h2 class="fw-bold mt-2 mb-2">Featured Local Partner Profiles</h2>
                <p class="text-muted mb-0">
                    A selection of approved local candidates open to serious relationships, companionship, and marriage-oriented opportunities.
                </p>
            </div>
            <div class="mt-3 mt-lg-0">
                <a href="{% url 'dating_app:public_partner_list' %}" class="btn btn-outline-primary">
                    View All Profiles
                </a>
            </div>
        </div>

        <div class="row g-4">
            {% for profile in featured_profiles %}
                <div class="col-md-6 col-xl-4">
                    <div class="card h-100 shadow-sm border-0 rounded-4 overflow-hidden">
                        <div class="position-relative">
                            {% if profile.profile_photo %}
                                <img src="{{ profile.profile_photo.url }}"
                                     class="card-img-top"
                                     style="height: 300px; object-fit: cover;"
                                     alt="{{ profile.display_name|default:profile.full_name }}">
                            {% else %}
                                <img src="{% static 'expat_life/images/default-profile.jpg' %}"
                                     class="card-img-top"
                                     style="height: 300px; object-fit: cover;"
                                     alt="Profile">
                            {% endif %}

                            <div class="position-absolute top-0 start-0 m-3">
                                <span class="badge bg-white text-dark rounded-pill px-3 py-2 shadow-sm">
                                    Approved Profile
                                </span>
                            </div>
                        </div>

                        <div class="card-body p-4 d-flex flex-column">
                            <h5 class="fw-bold mb-1">
                                {{ profile.display_name|default:profile.full_name }}
                            </h5>

                            <p class="text-muted mb-2">
                                {{ profile.age }} years{% if profile.city %} | {{ profile.city }}{% endif %}
                            </p>

                            <p class="mb-2">
                                <strong>Relationship Goal:</strong> {{ profile.get_relationship_goal_display }}
                            </p>


                            <div class="mt-auto">
                                <a href="{% url 'dating_app:public_partner_detail' profile.pk %}" class="btn btn-primary px-3">
                                    View Profile
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            {% empty %}
                <div class="col-12">
                    <div class="bg-light rounded-4 p-5 text-center shadow-sm">
                        <h5 class="fw-bold mb-2">Featured profiles will appear here soon</h5>
                        <p class="text-muted mb-0">
                            We are preparing approved local profiles for meaningful introductions and serious relationship opportunities.
                        </p>
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
</section>

<!-- HOW IT WORKS -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="text-center mb-5">
            <span class="text-uppercase text-primary fw-semibold">Simple Guided Process</span>
            <h2 class="fw-bold mt-2">How It Works</h2>
            <p class="text-muted mb-0">
                A more thoughtful way to explore meaningful connections in Sri Lanka.
            </p>
        </div>

        <div class="row g-4">
            <div class="col-md-4">
                <div class="bg-white rounded-4 shadow-sm p-4 h-100 text-center">
                    <div class="fs-2 fw-bold text-primary mb-3">1</div>
                    <h5 class="fw-bold">Browse Approved Profiles</h5>
                    <p class="text-muted mb-0">
                        Explore public profiles of local Sri Lankan candidates who are interested in serious relationship paths.
                    </p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="bg-white rounded-4 shadow-sm p-4 h-100 text-center">
                    <div class="fs-2 fw-bold text-primary mb-3">2</div>
                    <h5 class="fw-bold">Create Your Foreigner Profile</h5>
                    <p class="text-muted mb-0">
                        Register to begin your guided journey and move beyond casual browsing toward more meaningful access.
                    </p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="bg-white rounded-4 shadow-sm p-4 h-100 text-center">
                    <div class="fs-2 fw-bold text-primary mb-3">3</div>
                    <h5 class="fw-bold">Move Forward Respectfully</h5>
                    <p class="text-muted mb-0">
                        Continue through a more structured process centered on trust, clarity, and serious intentions.
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>



<!-- FINAL CTA -->
<section class="py-5">
    <div class="container">
        <div class="rounded-4 p-4 p-lg-5 text-white"
             style="background: linear-gradient(135deg, #d63384 0%, #7b1e57 100%);">
            <div class="row align-items-center g-4">
                <div class="col-lg-8">
                    <h2 class="fw-bold mb-3">Begin a More Meaningful Sri Lanka Connection Journey</h2>
                    <p class="lead mb-0">
                        Explore approved local profiles, register as a foreigner, and move toward more genuine and serious relationship opportunities.
                    </p>
                </div>
                <div class="col-lg-4 text-lg-end">
                    <div class="d-grid gap-3 d-lg-flex justify-content-lg-end">
                        <a href="{% url 'dating_app:public_partner_list' %}" class="btn btn-warning btn-lg w-100">
                            Browse Profiles
                        </a>

                        {% if is_foreigner_user %}
                            <a href="{% url 'expat_life:foreigner_dashboard' %}" class="btn btn-light btn-lg w-100">
                                My Dashboard
                            </a>
                        {% else %}
                            <a href="{% url 'expat_life:foreigner_signup' %}" class="btn btn-light btn-lg w-100">
                                Free Signup
                            </a>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

{% endblock %}