﻿@import url("https://fonts.googleapis.com/css2?family=Reem+Kufi+Fun:wght@500;700&family=Noto+Sans+Arabic:wght@400;500;700&display=swap");

:root {
  --bg: #f4f1e8;
  --bg-deep: #ede4d2;
  --card: rgba(255, 255, 255, 0.88);
  --ink: #1a1f25;
  --muted: #5b6676;
  --line: #d8ccb7;
  --brand: #0f766e;
  --brand-ink: #effdfa;
  --accent: #c26c2b;
  --shadow: 0 18px 42px rgba(31, 40, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans Arabic", sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(194, 108, 43, 0.13), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(15, 118, 110, 0.15), transparent 42%),
    linear-gradient(160deg, var(--bg), var(--bg-deep));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #89d8cf;
  top: -80px;
  right: -60px;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: #efba93;
  bottom: -90px;
  left: -60px;
  animation-delay: -6s;
}

.page {
  width: min(980px, 92vw);
  margin: 24px auto 32px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 500ms ease-out both;
}

.hero {
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.12), rgba(194, 108, 43, 0.13)),
    var(--card);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.4px;
  font-size: 0.88rem;
}

h1,
h2 {
  font-family: "Reem Kufi Fun", sans-serif;
}

h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.3;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}

.lead {
  margin: 0;
  color: var(--muted);
}

.hero-chips {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chips span {
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
  color: #0a4b46;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.86rem;
}

.step {
  border: 1px solid rgba(194, 108, 43, 0.14);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #263243;
}

input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 12px;
  font: inherit;
  background: #fffdfa;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.7;
  direction: rtl;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #159284);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status {
  margin-top: 8px;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.93rem;
}

.hint {
  margin: 0;
  color: #687487;
  font-size: 0.9rem;
}

.result-card audio {
  width: 100%;
  margin-bottom: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #0a4d94;
  background: rgba(10, 77, 148, 0.08);
  border: 1px solid rgba(10, 77, 148, 0.2);
  font-weight: 700;
}

.footnote {
  text-align: center;
  color: #616f82;
  font-size: 0.86rem;
  padding: 8px 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(15px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100%, 95vw);
    margin-top: 14px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}
