/* ============================================================
   share.nexhub.dev - Widget-Styles
   Basis: nexhub.css (gleiches Design, Akzent in Violett umgefärbt).
   ============================================================ */

.container-narrow { max-width: 720px; }

.hero-compact { min-height: auto; padding: 116px 24px 14px; }
.hero-compact .hero-logo { margin-bottom: 16px; }
.hero-compact .hero-logo img { width: 72px; height: 72px; }
.hero-compact .hero-title { margin-bottom: 14px; }
.hero-compact .hero-sub { margin-left: auto; margin-right: auto; }

.section-upload { padding-top: 34px; padding-bottom: 80px; scroll-margin-top: 90px; }
#features { scroll-margin-top: 80px; }

/* ---- Shell ---- */
.share-shell {
  background: linear-gradient(180deg, rgba(167,139,250,0.05), rgba(22,27,34,0.6));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ---- Dropzone ---- */
.dropzone {
  border: 2px dashed var(--border-hover); border-radius: var(--radius);
  background: rgba(167,139,250,0.04); padding: 44px 24px; text-align: center;
  cursor: pointer; outline: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .08s var(--ease);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--gold); background: rgba(167,139,250,0.08); }
.dropzone.drag { border-color: var(--gold); background: rgba(167,139,250,0.14); transform: scale(1.01); }
.dz-icon { color: var(--gold); font-size: 32px; line-height: 1; }
.dz-icon i { filter: drop-shadow(0 0 14px var(--gold-glow)); }
.dz-title { font-size: 18px; font-weight: 700; margin: 12px 0 2px; color: var(--text); }
.dz-or { margin: 0; color: var(--text-2); }
.dz-or .link { color: var(--gold); font-weight: 600; }
.dz-hint { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

/* ---- Ausgewählte Dateien ---- */
.picked { margin-top: 18px; }
.picked-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.picked-summary { font-weight: 600; color: var(--text); font-size: 14px; }
.btn-sm { padding: 7px 12px !important; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.file-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.file-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.fc-icon { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; background: var(--gold-dim); color: var(--gold); }
.fc-meta { min-width: 0; flex: 1; }
.fc-name { font-weight: 600; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-size { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--text-2);
  border-radius: 8px; width: 32px; height: 32px; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
  transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: #ff8a84; border-color: rgba(248,81,73,0.5); background: rgba(248,81,73,0.08); }

/* ---- Optionen (Download-Limit) ---- */
.share-options { margin-top: 16px; padding: 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-3); }
.share-options > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.share-options > label i { color: var(--gold); }
.opt-hint-inline { color: var(--text-3); font-weight: 400; }
.opt-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
.opt-hint i { color: var(--gold); opacity: .8; }
.select-wrap { position: relative; }
.select-wrap::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 11px;
  color: var(--text-2); pointer-events: none; }
.share-options select { width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 34px 11px 13px; font-size: 14px; font-weight: 600; cursor: pointer; }
.share-options select:hover { border-color: var(--border-hover); }
.share-options select:focus-visible { outline: none; border-color: var(--gold); }

.tier-note { margin: 14px 0; font-size: 13px; color: var(--text-2); text-align: center;
  padding: 10px; border: 1px dashed var(--border); border-radius: 10px; background: var(--bg-3); }
.tier-note strong { color: var(--gold); }

/* ---- Progress ---- */
.progress-wrap { margin-top: 22px; }
.progress-bar { height: 10px; background: var(--bg-3); border-radius: var(--radius-full);
  overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--bronze));
  box-shadow: 0 0 12px var(--gold-glow); transition: width .25s var(--ease); }
.progress-fill.indeterminate { width: 100% !important; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.progress-text { margin-top: 10px; font-size: 13px; color: var(--text-2); text-align: center; }

/* ---- Ergebnis ---- */
.result-box { margin-top: 8px; }
.result-ok { display: flex; align-items: center; gap: 8px; color: #a78bfa; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.link-row { display: flex; gap: 8px; }
.link-input { flex: 1; min-width: 0; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.link-input:focus { outline: none; border-color: var(--gold); }
.result-meta { margin-top: 14px; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.result-meta .rm-strong { color: var(--text); font-weight: 600; }
.result-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Tiers ---- */
.tiers { margin-top: 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; }
.tiers-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.tiers-title i { color: var(--gold); }
.tiers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tier { background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 8px; text-align: center; }
.tier-size { display: block; font-size: 12px; color: var(--text-3); }
.tier-time { display: block; font-weight: 700; color: var(--gold); margin-top: 3px; }
@media (max-width: 620px) { .tiers-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Error ---- */
.error-box { margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(248,81,73,0.08); border: 1px solid rgba(248,81,73,0.5); color: #ffb3ae; font-size: 14px; text-align: center; }

/* ---- Download-Seite ---- */
.dl-shell { text-align: center; }
.dl-state { padding: 30px 10px; color: var(--text-2); }
.dl-state i { font-size: 34px; color: var(--gold); }
.dl-state p { margin-top: 12px; }
.dl-icon { font-size: 40px; color: var(--gold); margin-bottom: 8px; }
.dl-icon i { filter: drop-shadow(0 0 18px var(--gold-glow)); }
.dl-icon-muted { color: var(--text-3); }
.dl-icon-muted i { filter: none; }
.dl-title { font-size: 24px; margin: 6px 0 10px; }
.dl-sub { color: var(--text-2); max-width: 460px; margin: 0 auto 22px; }
.dl-meta { color: var(--text-2); font-size: 14px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dl-meta .rm-strong { color: var(--text); font-weight: 600; }
.dl-btn { max-width: 360px; margin: 0 auto; }
.dl-expiry { margin-top: 14px; font-size: 14px; color: var(--gold); font-weight: 600; }
.dl-note { margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ---- Features ---- */
.feature-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Legal ---- */
.legal-wrap { max-width: 800px; }
.legal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 28px; font-size: 20px; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-card h3 { margin-top: 20px; font-size: 16px; color: var(--text); }
.legal-card p, .legal-card li { color: var(--text-2); }
.legal-card strong { color: var(--text); }
.legal-card a { color: var(--gold); word-break: break-all; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin: 6px 0; }
.legal-card address { font-style: normal; color: var(--text); line-height: 1.7; }

.hidden { display: none !important; }
