/* high5p — Glassmorphism im frogmi-Look (Tailwind-frei, weil eigenständiges Modul) */

:root {
  --grad-1: #34d399;
  --grad-2: #06b6d4;
  --grad-3: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #34d399;
  --accent-emerald-active: #059669;
  --accent-orange: #f97316;
  --accent-rose: #f43f5e;
  --accent-sky: #0ea5e9;
  --accent-violet: #8b5cf6;
  --accent-yellow: #facc15;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }
button { font-family: inherit; }

.page {
  min-height: 100vh;
  padding: 2rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.page--narrow { max-width: 32rem; }
.page--wide { max-width: 72rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand .logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.45);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glass {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.glass-light {
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.45);
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; }
h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.subtitle { opacity: 0.85; margin-bottom: 1.5rem; }

.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack--tight { gap: 0.5rem; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.15s ease;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.6); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.28);
}
select option { background: #0f172a; color: #fff; }

input.code-input {
  font-size: 2rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1rem 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  border-bottom: 4px solid rgba(0,0,0,0.18);
  background: var(--accent-emerald);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--accent-emerald-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.96); border-bottom-width: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--ghost {
  background: rgba(255,255,255,0.22);
  border-bottom: 4px solid rgba(0,0,0,0.12);
}
.btn--ghost:hover { background: rgba(255,255,255,0.32); }
.btn--orange { background: var(--accent-orange); }
.btn--orange:hover { background: #fb923c; }
.btn--rose { background: var(--accent-rose); }
.btn--rose:hover { background: #fb7185; }
.btn--sky { background: var(--accent-sky); }
.btn--sky:hover { background: #38bdf8; }
.btn--violet { background: var(--accent-violet); }
.btn--violet:hover { background: #a78bfa; }
.btn--yellow { background: var(--accent-yellow); color: #0f172a; }
.btn--yellow:hover { background: #fde047; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag--open    { background: rgba(52,211,153,0.45); border-color: rgba(110,231,183,0.7); }
.tag--draft   { background: rgba(250,204,21,0.35); border-color: rgba(253,224,71,0.7); color: #fef3c7; }
.tag--closed  { background: rgba(244,63,94,0.35); border-color: rgba(253,164,175,0.7); }
.tag--active  { background: rgba(52,211,153,0.4); border-color: rgba(110,231,183,0.7); }
.tag--completed { background: rgba(14,165,233,0.4); border-color: rgba(125,211,252,0.7); }
.tag--left    { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); opacity: 0.6; }
.tag--idle    { background: rgba(250,204,21,0.35); border-color: rgba(253,224,71,0.7); color: #fef3c7; }
.tag--missing { background: rgba(244,63,94,0.35); border-color: rgba(253,164,175,0.7); color: #ffe4e6; }

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: #fff;
}
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.code-display {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  padding: 0.75rem 1.5rem 0.75rem 1.9rem;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  user-select: all;
}

.muted { opacity: 0.75; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex-1 { flex: 1 1 0%; }

table.list {
  width: 100%;
  border-collapse: collapse;
}
table.list th, table.list td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  vertical-align: middle;
}
table.list th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  font-weight: 700;
}
table.list tr:last-child td { border-bottom: none; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  opacity: 0.85;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(244,63,94,0.3);
  border: 1px solid rgba(253,164,175,0.6);
  margin-bottom: 1rem;
  font-weight: 600;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(250,204,21,0.25);
  border: 1px solid rgba(253,224,71,0.6);
  margin-bottom: 1rem;
}

.copybar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.18);
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.h5p-shell {
  background: #fff;
  color: #0f172a;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  text-align: center;
  padding: 1rem;
}
.stat .stat-value { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.stat .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.85; margin-top: 0.5rem; }

@media (max-width: 640px) {
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

.score-bar {
  position: relative;
  height: 0.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 9999px;
  overflow: hidden;
  min-width: 6rem;
}
.score-bar > span {
  display: block;
  height: 100%;
  background: var(--accent-emerald);
  transition: width 0.3s ease;
}

.fade-in { animation: fade-in 0.3s ease-out both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
}
.footer a { text-decoration: underline; text-underline-offset: 2px; }
