/* ============================================================================
   VizionRoom — Styles spécifiques
   Version : 1.0.0 (VNCT Design System)
   ============================================================================ */

.container {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-12);
}

.header { text-align: center; margin-bottom: var(--space-10); }
.logo {
  font-size: var(--text-2xl); font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight); margin-bottom: var(--space-2);
  color: var(--text-primary);
}
.logo span { color: var(--accent); }
.subtitle {
  color: var(--text-muted); font-size: var(--text-sm);
  font-weight: var(--font-light); letter-spacing: 0.5px;
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center; cursor: pointer;
  transition: all 0.3s; background: var(--bg-secondary);
  margin-bottom: var(--space-6);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.05);
}
.upload-zone .icon { font-size: 2.5rem; margin-bottom: var(--space-3); }
.upload-zone .label { color: var(--text-muted); font-size: var(--text-sm); }
.upload-zone .label strong { color: var(--text-primary); }

/* ── File info ── */
.file-info {
  display: none;
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6); font-size: var(--text-sm);
}
.file-info .name { font-weight: var(--font-medium); margin-bottom: 4px; word-break: break-all; }
.file-info .meta { color: var(--text-muted); font-size: var(--text-xs); }
.file-info .remove {
  float: right; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 1.1rem; transition: color 0.2s;
}
.file-info .remove:hover { color: var(--accent); }

/* ── Duration ── */
.duration-section {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.duration-section .title {
  font-size: var(--text-sm); color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.duration-row { display: flex; align-items: center; gap: var(--space-4); }
.duration-row input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--border-default); border-radius: 2px; outline: none;
}
.duration-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 0 8px hsla(var(--accent-h), var(--accent-s), 60%, 0.4);
}
.duration-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: none;
  box-shadow: 0 0 8px hsla(var(--accent-h), var(--accent-s), 60%, 0.4);
}
.duration-value {
  font-size: var(--text-sm); color: var(--accent);
  min-width: 50px; text-align: right;
}

/* ── Upload button ── */
.upload-btn {
  width: 100%; padding: var(--space-4); border: none;
  border-radius: var(--radius-lg); background: var(--accent); color: #000;
  font-family: var(--font-family); font-size: var(--text-base); font-weight: var(--font-semibold);
  cursor: pointer; transition: all 0.25s;
}
.upload-btn:hover { box-shadow: var(--neon-shadow-md); transform: translateY(-1px); }
.upload-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Progress ── */
.progress-bar {
  display: none; width: 100%; height: 4px;
  background: var(--border-default); border-radius: 2px;
  margin-top: var(--space-4); overflow: hidden;
}
.progress-bar .fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 2px; transition: width 0.2s;
}

/* ── Result ── */
.result {
  display: none; background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-6);
  text-align: center; margin-top: var(--space-6);
}
.result .check { font-size: 2.5rem; margin-bottom: var(--space-3); }
.result .msg { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-5); }
.result .link-box {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.result .link-box input {
  flex: 1; background: none; border: none;
  color: var(--accent); font-family: monospace; font-size: var(--text-sm); outline: none;
}
.result .link-box .copy-btn {
  background: var(--accent); color: #000; border: none;
  border-radius: var(--radius-md); padding: var(--space-2) var(--space-4);
  font-family: var(--font-family); font-size: var(--text-xs); font-weight: var(--font-semibold);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.result .link-box .copy-btn:hover { box-shadow: var(--neon-shadow-sm); }
.result .expires { font-size: var(--text-xs); color: var(--text-muted); }
.result .expires strong { color: var(--warning); }

.new-btn {
  margin-top: var(--space-4); background: var(--bg-tertiary);
  border: 1px solid var(--border-default); color: var(--text-primary);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-6);
  font-family: var(--font-family); font-size: var(--text-sm);
  font-weight: var(--font-medium); cursor: pointer; transition: all 0.2s;
}
.new-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── History ── */
.history { margin-top: var(--space-8); }
.history .history-title {
  font-size: var(--text-sm); color: var(--text-muted);
  margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2);
}
.history .history-title .count {
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: var(--radius-full); padding: 2px 10px; font-size: var(--text-xs);
}
.history-empty {
  color: var(--text-muted); font-size: var(--text-sm);
  font-style: italic; text-align: center; padding: var(--space-4);
}
.history-item {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-4);
  margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-3);
  transition: border-color 0.2s;
}
.history-item:hover { border-color: var(--accent); }
.history-item .type-icon { font-size: 1.3rem; flex-shrink: 0; }
.history-item .info { flex: 1; min-width: 0; }
.history-item .info .name {
  font-size: var(--text-sm); font-weight: var(--font-medium);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item .info .meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.history-item .info .meta .timer { color: var(--warning); font-weight: var(--font-bold); }
.history-item .actions { display: flex; gap: 6px; flex-shrink: 0; }
.history-item .actions button {
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  color: var(--text-muted); border-radius: var(--radius-md);
  padding: 6px 12px; font-family: var(--font-family); font-size: var(--text-xs);
  font-weight: var(--font-medium); cursor: pointer; transition: all 0.2s;
}
.history-item .actions button:hover { border-color: var(--accent); color: var(--accent); }
.history-item .actions a.action-link {
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  color: var(--text-muted); border-radius: var(--radius-md);
  padding: 6px 12px; font-family: var(--font-family); font-size: var(--text-xs);
  font-weight: var(--font-medium); cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: flex; align-items: center;
}
.history-item .actions a.action-link:hover { border-color: var(--accent); color: var(--accent); }
.history-item .actions button.delete-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-lg);
  font-size: var(--text-sm); z-index: 300; opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

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

@media (max-width: 480px) {
  .container { padding: var(--space-6) var(--space-4) var(--space-8); }
}
