{% extends "base.html" %}

{% block title %}Ethio-gebeya | Marketplace{% endblock %}

{% block head %}
<style>
  :root {
    --bg: #f7f8fb;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --surface: #ffffff;
    --border: #e2e8f0;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top right, #fff7ed, var(--bg) 45%);
    color: var(--text);
  }

  main {
    max-width: 980px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 2.5rem 1.25rem;
  }

  .hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  }

  h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-block;
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
  }

  .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.24);
  }

  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
  }

  .btn-light {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
  }

  small {
    color: var(--muted);
  }
</style>
{% endblock %}

{% block content %}
<main>
  <section class="hero">
    <h1>Welcome to Ethio-gebeya</h1>
    <p>A modern marketplace foundation with separate dashboards for buyers and sellers.</p>
    <div class="actions">
      {% if user.is_authenticated %}
      <a class="btn btn-primary" href="{% url 'dashboard' %}">Open Dashboard</a>
      <a class="btn btn-light" href="{% url 'logout' %}">Sign Out</a>
      {% else %}
      <a class="btn btn-primary" href="{% url 'login' %}">Sign In</a>
      {% endif %}
    </div>
    <p><small>Runtime: Django {{ django_version }} · Python {{ python_version }} · {{ current_time|date:"Y-m-d H:i:s" }} UTC</small></p>
  </section>
</main>
{% endblock %}
