/* AmirHSD - Fasty Uploader */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a73e8;
  --primary-dark: #1558b0;
  --primary-light: #4a90f5;
  --accent: #00c6ff;
  --bg-dark: #16181a;
  --bg-card: #1e2124;
  --bg-card2: #252829;
  --border-color: #333639;
  --text-light: #f0f0f0;
  --text-muted: #9ca3af;
  --success: #22c55e;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  font-family: 'Vazirmatn', sans-serif;
  color: var(--text-light);
  direction: rtl;
  min-height: 100vh;
  margin: 0;
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background-color: #111315;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.navbar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #1a73e8, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 6px 14px !important;
  border-radius: 6px;
}

.nav-link-custom:hover {
  color: var(--text-light) !important;
  background: rgba(255,255,255,0.06);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(135deg, #1a73e8 10%, #4a90f5 50%, #00c6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ===== UPLOAD BOX ===== */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.drop-zone {
  border: 2px dashed #374151;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(26, 115, 232, 0.03);
  position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(26, 115, 232, 0.08);
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.6;
}

.drop-zone-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.drop-zone-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drop-zone input[type="file"] {
  display: none;
}

/* ===== FILE INFO ===== */
.file-info-box {
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 14px;
}

.file-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 1rem;
  transition: color 0.2s;
}

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

/* ===== PROGRESS ===== */
.progress-section {
  margin-top: 18px;
  display: none;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-card2);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

/* ===== UPLOAD BTN ===== */
.btn-upload {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 32px;
  font-size: 1rem;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 18px;
  letter-spacing: 0.3px;
}

.btn-upload:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.35);
}

.btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== RESULT BOX ===== */
.result-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 18px;
  margin-top: 18px;
  display: none;
}

.result-box .result-title {
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.result-link-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: 'Vazirmatn', sans-serif;
  direction: ltr;
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--primary-light);
}

.btn-copy.copied {
  background: var(--success);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 60px 0 40px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.section-divider hr {
  flex: 1;
  border-color: var(--border-color);
  opacity: 1;
}

.section-divider-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(26,115,232,0.4);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 30px 0 50px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FORMATS SECTION ===== */
.formats-section {
  padding: 10px 0 50px;
}

.format-badge {
  background: var(--bg-card2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-block;
  margin: 4px;
  transition: all 0.15s;
}

.format-badge:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== FOOTER ===== */
.footer-custom {
  background: #111315;
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-custom a {
  color: var(--primary-light);
  text-decoration: none;
}

/* ===== LOADING OVERLAY ===== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,24,26,0.95);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(26,115,232,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-text {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .upload-card {
    padding: 22px 16px;
  }
  .hero-section {
    padding: 36px 0 28px;
  }
  .result-link-row {
    flex-direction: column;
  }
  .result-link-input {
    width: 100%;
  }
  .btn-copy {
    width: 100%;
    text-align: center;
  }
}
