/* ======================================
   TANTANGAN HARIAN – BASA JAWA
   FULL COLOR + BATIK PREMIUM UI
====================================== */

/* ================= ROOT ================= */
:root {
  --primary: #22c55e;
  --primary-soft: #86efac;
  --primary-dark: #15803d;

  --blue: #3b82f6;
  --purple: #7c3aed;
  --gold: #facc15;

  --text: #1f2937;
  --muted: #6b7280;

  --glass: rgba(255,255,255,0.82);

  --shadow: 0 14px 35px rgba(0,0,0,0.12);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);

  --radius: 18px;
}

/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;

  /* 🌿 BATIK + FULL COLOR BACKGROUND */
  background:
    url("https://www.transparenttextures.com/patterns/batik.png"),
    radial-gradient(circle at 20% 20%, rgba(34,197,94,0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,0.25), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(124,58,237,0.18), transparent 50%),
    linear-gradient(135deg, #ecfdf5, #eff6ff);

  min-height: 100vh;
}

/* ================= HEADER ================= */
.th-header {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--blue),
    var(--purple)
  );

  color: white;
  text-align: center;
  padding: 34px 20px;
  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
}

/* efek glow */
.th-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0.4;
}

.th-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.th-header p {
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ================= BACK BUTTON ================= */
.back-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;

  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: white;

  border: 1px solid rgba(255,255,255,0.35);
  text-decoration: none;
  font-weight: 600;

  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px) scale(1.03);
}

/* ================= INFO ================= */
.th-info {
  max-width: 900px;
  margin: 22px auto;
  padding: 16px 20px;

  display: flex;
  justify-content: space-between;
  gap: 10px;

  background: var(--glass);
  backdrop-filter: blur(10px);

  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);

  font-weight: 600;
  color: var(--muted);
}

/* ================= CONTAINER ================= */
.th-container {
  max-width: 900px;
  margin: 30px auto 70px;
  padding: 0 18px;
}

/* ================= CARD ================= */
.th-deskripsi,
.th-area {
  background: var(--glass);
  backdrop-filter: blur(12px);

  padding: 24px;
  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;

  border: 1px solid rgba(255,255,255,0.5);
  transition: 0.3s ease;
}

.th-deskripsi:hover,
.th-area:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

/* ================= TEXT ================= */
#th-judul {
  margin: 0 0 6px;

  background: linear-gradient(135deg, var(--primary-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-size: 1.3rem;
  font-weight: 700;
}

#th-instruksi {
  margin: 0;
  color: var(--muted);
}

/* ================= TEXTAREA ================= */
#th-jawaban {
  width: 100%;
  min-height: 150px;
  padding: 14px;

  border-radius: 14px;
  border: 2px solid #e5e7eb;

  font-size: 1rem;
  resize: vertical;

  background: rgba(255,255,255,0.9);

  transition: 0.25s ease;
  outline: none;
}

#th-jawaban:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
}

/* ================= BUTTON ================= */
#th-submit {
  margin-top: 14px;
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--blue),
    var(--purple)
  );

  color: white;
  font-weight: 700;
  font-size: 1rem;

  cursor: pointer;
  transition: 0.3s ease;

  box-shadow: var(--shadow-soft);
}

#th-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow);
}

#th-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================= FEEDBACK ================= */
.th-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;

  font-weight: 600;
  display: none;

  animation: fadeIn 0.3s ease;
}

/* SUCCESS */
.th-feedback.success {
  display: block;
  background: rgba(34,197,94,0.15);
  color: var(--primary-dark);
  border: 1px solid rgba(34,197,94,0.3);
}

/* ERROR */
.th-feedback.error {
  display: block;
  background: rgba(239,68,68,0.12);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ================= FOOTER ================= */
.th-footer {
  text-align: center;
  padding: 22px;

  background: linear-gradient(
    135deg,
    #0f172a,
    #1e293b,
    #334155
  );

  color: #e5e7eb;
  font-size: 0.85rem;

  position: relative;
}

/* garis premium */
.th-footer::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    var(--primary),
    var(--blue),
    var(--purple),
    var(--gold)
  );
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .th-info {
    flex-direction: column;
    text-align: center;
  }

  .th-header h1 {
    font-size: 1.6rem;
  }
}