/* ===================== */
/* Reset & baza           */
/* ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #7bd0e6;
  --card: #ffffffee;
  --text: #222;
  --muted: #333;
  --border: #d7d7d7;
  --brand: #00bfa5;
  --brand-hover: #00a892;
  --brand-light: #f5fffd;

  /* vetëm për reaction-box */
  --reaction-green: #39ff14;       /* neon green */
  --reaction-green-dark: #0d8800;  /* green më i errët */
}

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ===================== */
/* Karta / layout        */
/* ===================== */
.container {
  width: 100%;
  max-width: 660px;
  background: var(--card);
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.2;
}

label {
  display: block;
  text-align: center;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--muted);
}

/* ===================== */
/* Input & Butona        */
/* ===================== */
#age, #gender {
  width: 70%;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}

#age:focus, #gender:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,191,165,.12);
}

button {
  width: 100%;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 0;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  transition: background .2s ease, transform .06s ease;
}

button:hover { background: var(--brand-hover); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: not-allowed; }

/* ===================== */
/* Zona e lojës          */
/* ===================== */
.reaction-box {
  width: 100%;
  max-width: 360px;
  height: 220px;
  margin: 20px auto;
  background-color: #fafafa; /* ngjyra normale */
  border: 3px solid var(--brand);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .25s ease, transform .15s ease;
}

.reaction-box:hover { transform: translateY(-2px); }

/* Kur aktivizohet */
.reaction-box.active {
  background-color: var(--reaction-green);
  border-color: var(--reaction-green-dark);
  
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}

/* ===================== */
/* Progress Bar          */
/* ===================== */
.progress-container {
  width: 100%;
  height: 16px;
  background: #eaeaea;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 18px;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width .3s ease;
}

/* ===================== */
/* Feedback & histori    */
/* ===================== */
#feedback, #score, #round {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0;
  color: var(--muted);
}

#history {
  text-align: left;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--brand-light);
  border-radius: 12px;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #cfe9e5;
  font-size: 14px;
}

/* ===================== */
/* Responsive            */
/* ===================== */
@media (max-width: 768px) {
  .container { max-width: 620px; padding: 22px 18px; }
  h1 { font-size: 1.6rem; }
  .reaction-box { height: 200px; }
}

@media (max-width: 480px) {
  body { padding: 16px; }
  .container { max-width: 420px; padding: 18px 16px; border-radius: 14px; }
  h1 { font-size: 1.35rem; margin-bottom: 12px; }
  #history { max-height: 130px; }
  .reaction-box { height: 160px; max-width: 100%; }
  button { font-size: 15px; padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
