/* ── Drop2Host Landing Page Styles ────────────────────────────────────────── */

/* ── Glow orbs ───────────────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 600px; height: 600px; background: rgba(124,106,255,0.08); top: -200px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(255,106,158,0.06); bottom: -100px; right: -100px; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── Header / Hero ───────────────────────────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
}

h1 span {
  background: linear-gradient(135deg, var(--accent) 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2px;
}

/* ── Upload Card ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 16px;
}

/* ── Drop Zone ───────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,106,255,0.05), rgba(255,106,158,0.05));
  opacity: 0;
  transition: opacity 0.25s;
}

.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--accent);
}

.drop-zone:hover::before, .drop-zone.dragging::before {
  opacity: 1;
}

.drop-zone.dragging {
  transform: scale(1.01);
}

.drop-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.drop-zone:hover .drop-icon {
  transform: translateY(-4px);
}

.drop-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.drop-hint {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

/* ── File type badges ────────────────────────────────────────────────────── */
.file-types {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.file-types .badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(124,106,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(124,106,255,0.2);
}

#file-input { display: none; }

/* ── Selected file display ───────────────────────────────────────────────── */
.file-selected {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(124,106,255,0.08);
  border: 1px solid rgba(124,106,255,0.2);
  border-radius: 10px;
  margin-top: 16px;
  animation: slideIn 0.3s ease;
}

.file-selected.show { display: flex; }

.file-icon { font-size: 24px; }
.file-info { flex: 1; min-width: 0; }

.file-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.file-remove:hover { color: var(--error); }

/* ── Options ─────────────────────────────────────────────────────────────── */
.options {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--mono);
}

input[type="text"],
input[type="password"],
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--accent);
}

input::placeholder { color: var(--muted); }

select option { background: #1a1a2e; }

/* ── Upload button ───────────────────────────────────────────────────────── */
.btn-upload {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #5a4fd8);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.btn-upload::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-upload:hover::before { width: 400px; height: 400px; }
.btn-upload:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,106,255,0.3); }
.btn-upload:active { transform: translateY(0); }
.btn-upload:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-bar {
  display: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-bar.show { display: block; }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-fill.indeterminate {
  width: 40%;
  animation: progress-slide 1.5s infinite ease-in-out;
}

@keyframes progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ── Result card ─────────────────────────────────────────────────────────── */
.result {
  display: none;
  background: var(--surface);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  padding: 32px;
  margin-top: 16px;
  animation: fadeUp 0.4s ease;
}

.result.show { display: block; }

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.success-icon {
  width: 36px;
  height: 36px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
}

.result-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.url-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.url-text {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy {
  background: rgba(124,106,255,0.1);
  border: 1px solid rgba(124,106,255,0.2);
  border-radius: 6px;
  color: var(--accent);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-copy:hover { background: rgba(124,106,255,0.2); }
.btn-copy.copied { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.2); color: var(--success); }

/* ── QR code ─────────────────────────────────────────────────────────────── */
.qr-wrap {
  text-align: center;
}

.qr-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.qr-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 6px;
}

.btn-download-qr {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}

.btn-download-qr:hover { border-color: var(--accent); color: var(--accent); }

/* ── Result meta chips ───────────────────────────────────────────────────── */
.result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── Manage link ─────────────────────────────────────────────────────────── */
.manage-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(124,106,255,0.07);
  border: 1px solid rgba(124,106,255,0.18);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.manage-link:hover { background: rgba(124,106,255,0.14); border-color: rgba(124,106,255,0.35); text-decoration: none; }

/* ── Pod status widget ───────────────────────────────────────────────────── */
.pod-status {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.pod-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  transition: background 0.4s;
}

.pod-status-bar.ready { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.2); }
.pod-status-bar.error { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.2); }

.pod-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.pod-spinner.done  { border-color: var(--success); border-top-color: var(--success); animation: none; }
.pod-spinner.error { border-color: var(--error);   border-top-color: var(--error);   animation: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.pod-status-text { flex: 1; font-size: 13px; font-family: var(--mono); }
.pod-status-text .phase { font-weight: 600; }
.pod-status-text .phase.ready { color: var(--success); }
.pod-status-text .phase.error { color: var(--error); }
.pod-status-text .phase.pending { color: var(--accent); }

.pod-open-btn {
  display: none;
  padding: 6px 14px;
  background: var(--success);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.pod-open-btn:hover { opacity: 0.85; text-decoration: none; }
.pod-open-btn.show { display: inline-flex; align-items: center; gap: 4px; }

.pod-steps {
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pod-step {
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.pod-step.active { color: var(--accent); border-color: rgba(124,106,255,0.3); background: rgba(124,106,255,0.08); }
.pod-step.done   { color: var(--success); border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.06); }

/* ── "Upload another" button ─────────────────────────────────────────────── */
.btn-another {
  margin-top: 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-another:hover { border-color: var(--accent); color: var(--accent); }

/* ── Error message ───────────────────────────────────────────────────────── */
.error-msg {
  display: none;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--error);
  font-size: 14px;
  margin-top: 12px;
  animation: slideIn 0.3s ease;
}

.error-msg.show { display: block; }

/* ── Features strip ──────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.feature-icon { font-size: 24px; margin-bottom: 8px; }
.feature-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.feature-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ── SEO sections (How it works, Why, FAQ) ──────────────────────────────── */
.seo-section {
  margin-top: 48px;
}

.seo-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-align: center;
}

.seo-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.step-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.why-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Topbar (inline styles overridden here for mobile) ───────────────────── */
@media (max-width: 540px) {
  .nav-btn-text { display: none !important; }
  #auth-nav-logged-out a[data-i18n="nav_register"],
  #auth-nav-logged-out a[data-i18n="nav_login"],
  #auth-nav-logged-in a[data-i18n="nav_dashboard"],
  #auth-nav-logged-in button[data-i18n="nav_logout"] {
    padding: 6px 10px;
    font-size: 12px;
  }
  #lang-switcher-slot { margin-right: 2px; }
}

@media (max-width: 380px) {
  #auth-nav-logged-out a[data-i18n="nav_login"] { display: none; }
  #auth-nav-logged-in button[data-i18n="nav_logout"] { display: none; }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px 40px; }
  header { padding: 40px 0 24px; }
  h1 { font-size: 36px; }
  .subtitle { font-size: 15px; }
  .upload-zone { padding: 28px 16px; }
  .option-row { grid-template-columns: 1fr; gap: 10px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature { padding: 16px; }
  .result-card { padding: 20px 16px; }
  .result-body { grid-template-columns: 1fr; gap: 16px; }
  .qr-wrap { display: flex; align-items: center; gap: 16px; }
  .qr-img { width: 80px; height: 80px; }
  .result-url { font-size: 13px; word-break: break-all; }
  .pod-steps { gap: 6px; }
  .pod-step { font-size: 11px; padding: 4px 10px; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .btn-upload { font-size: 14px; padding: 14px; }
  .result-actions { flex-direction: column; }
  .result-actions a, .result-actions button { width: 100%; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }
}
