@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root { --max-width: 1280px; }

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(to bottom right, #09090b, #0f172a, #000000);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo-font { font-family: 'Space Grotesk', sans-serif; }

.liquid-glass {
  background: rgba(255,255,255,0.095);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: none;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.12) 80%);
  animation: liquidFlow 9s linear infinite;
  pointer-events: none;
}
@keyframes liquidFlow {
  0%   { transform: translateX(-120%) rotate(25deg); }
  100% { transform: translateX(120%) rotate(25deg); }
}

.hero-text {
  background: linear-gradient(90deg, #67e8f9, #c084fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 8s linear infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.flex { display:flex; }
.hidden { display:none !important; }

nav { position:fixed; top:0; left:0; right:0; z-index:50; padding:1rem 0; }
.nav-inner { display:flex; align-items:center; justify-content:center; position:relative; }
.logo-wrapper { display:flex; align-items:center; gap:0.75rem; text-decoration:none; }
.logo-circle {
  width:2rem; height:2rem; border-radius:1rem;
  background: linear-gradient(to bottom right, #22d3ee, #a855f7);
  display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; font-weight:800; color:white;
}

main {
  flex:1; display:flex; align-items:center; justify-content:center;
  padding-top:6rem; padding-bottom:4rem; padding-left:1.5rem; padding-right:1.5rem;
}
.hero-content { max-width:32rem; width:100%; text-align:center; }
.hero-title {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height:1.2; font-weight:300; letter-spacing:-0.03em; margin-bottom:0.75rem;
}
.subtitle {
  color:#a1a1aa; font-size:1rem; margin-bottom:2.5rem;
}

/* ===== Дропзона ===== */
.dropzone {
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  outline: none;
}
/* Убираем бегущий блик именно на дропзоне — на остальных liquid-glass элементах остаётся */
.dropzone::before {
  animation: none;
  content: none;
}
.dropzone:hover {
  transform: translateY(-4px);
}
.dropzone:focus-visible {
  box-shadow: 0 0 0 3px #67e8f9;
}
.dropzone.dragover {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px #22d3ee, 0 25px 50px -12px rgba(168,85,247,0.4);
}
.dropzone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.dropzone-icon {
  font-size: 2.75rem;
  background: linear-gradient(135deg, #67e8f9, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.dropzone-title { font-size:1.15rem; font-weight:500; }
.dropzone-subtitle { color:#a1a1aa; font-size:0.9rem; }

/* ===== Прогресс ===== */
.progress-card {
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: left;
}
.progress-header {
  display:flex; align-items:center; gap:0.75rem;
  margin-bottom: 1.25rem; font-weight:500;
}
.progress-header i { color:#67e8f9; }
#progress-filename { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.progress-track {
  width:100%; height:0.6rem; border-radius:9999px;
  background: rgba(255,255,255,0.1); overflow:hidden;
}
.progress-fill {
  height:100%; width:0%;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  transition: width 0.2s ease;
  border-radius: 9999px;
}
.progress-footer {
  display:flex; justify-content:space-between;
  margin-top:0.75rem; font-size:0.85rem; color:#a1a1aa;
}

/* ===== Результат ===== */
.result-card, .error-card {
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
}
/* Убираем анимированный блик с плашки успешной загрузки */
.result-card::before {
  animation: none;
  content: none;
}
.result-icon { font-size:2.5rem; color:#34d399; margin-bottom:0.75rem; }
.error-icon { font-size:2.5rem; color:#f87171; margin-bottom:0.75rem; }
.result-title { font-size:1.25rem; font-weight:600; margin-bottom:0.35rem; }
.result-filename {
  color:#a1a1aa; font-size:0.9rem; margin-bottom:1.75rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.error-message { color:#a1a1aa; font-size:0.95rem; margin-bottom:1.75rem; }

.link-row {
  display:flex; gap:0.5rem; margin-bottom:0.75rem;
}
.link-input {
  flex:1; min-width:0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.875rem;
  padding: 0.7rem 1rem;
  color:#fff; font-size:0.85rem;
  font-family: 'Inter', sans-serif;
}
.copy-btn {
  flex-shrink:0;
  width:2.75rem; height:2.75rem;
  border-radius:0.875rem; border:none;
  background: linear-gradient(to right, #22d3ee, #a855f7);
  color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform 0.2s ease;
}
.copy-btn:hover { transform: translateY(-2px); }
.copy-btn.copied { background: linear-gradient(to right, #34d399, #22d3ee); }

.expires-note {
  color:#a1a1aa; font-size:0.85rem;
  margin: 1.25rem 0 1.75rem;
  display:flex; align-items:center; justify-content:center; gap:0.4rem;
}

.btn-glass {
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  border-radius:1.25rem; font-weight:500;
  display:flex; align-items:center; justify-content:center; gap:0.75rem;
  width:100%; padding:1rem 2rem; font-size:1rem;
  border:none; cursor:pointer;
}
.btn-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4);
}
.api-btn {
  background: linear-gradient(to right, #60a5fa, #bae6fd);
  color:#0f172a; border:1px solid rgba(186,230,253,0.5);
}

#theme-toggle {
  background:rgba(255,255,255,0.15); backdrop-filter:blur(20px); border:none;
  width:44px; height:44px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center; font-size:1.5rem;
  position:absolute; right:1.5rem; top:50%; transform:translateY(-50%);
  cursor:pointer; transition:all 0.3s ease; color:inherit;
}
#theme-toggle:hover { transform:translateY(-50%) scale(1.1); }

footer {
  margin-top:auto; border-top:1px solid rgba(255,255,255,0.1);
  padding:2rem 0;
}
.footer-inner {
  display:flex; flex-direction:column; align-items:center; gap:1.5rem;
}
@media (min-width:768px) {
  .footer-inner { flex-direction:row; justify-content:space-between; }
}
.footer-left { display:flex; flex-direction:column; gap:0.75rem; align-items:center; }
@media (min-width:768px) { .footer-left { align-items:flex-start; } }

.telegram-box {
  display:flex; align-items:center; gap:1rem;
  padding:1rem 2rem; border-radius:1.5rem;
  transition:all 0.3s ease; cursor:pointer;
}
.telegram-box:hover { transform:scale(1.05); }
.telegram-icon { font-size: 2.35rem; transition: transform 0.3s ease, color 0.3s ease; }
.telegram-box:hover .telegram-icon { transform: scale(1.15) rotate(10deg); color: #67e8f9; }

.email-link {
  display:flex; align-items:center; gap:0.5rem;
  color:#a1a1aa; text-decoration:none; font-size:0.95rem;
  padding:0.4rem 0.75rem; border-radius:0.75rem;
  transition:all 0.3s ease;
}
.email-link:hover { color:#67e8f9; background: rgba(103,232,249,0.08); }

.text-zinc-400 { color:#a1a1aa; }
.text-red-500 { color:#ef4444; }

/* ===== Светлая тема ===== */
html:not(.dark) body {
  background: linear-gradient(to bottom right, #f8fafc, #e0f2fe, #bae6fd);
  color:#0f172a;
}
html:not(.dark) .liquid-glass {
  background:rgba(255,255,255,0.85) !important;
  border:1px solid rgba(148,163,184,0.25) !important;
  box-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1);
}
html:not(.dark) .api-btn {
  background: linear-gradient(to right, #e0f2fe, #f3e8ff) !important;
  color:#0f172a !important;
  border:1px solid rgba(165,243,252,0.5);
}
html:not(.dark) .link-input {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.1);
  color:#0f172a;
}
html:not(.dark) footer { border-color:#e2e8f0 !important; }
html:not(.dark) .email-link { color:#64748b; }
html:not(.dark) .email-link:hover { color:#0ea5e9; background: rgba(14,165,233,0.08); }
html:not(.dark) .text-zinc-400 { color:#64748b; }
html:not(.dark) .subtitle { color:#64748b; }
html:not(.dark) .progress-footer { color:#64748b; }
html:not(.dark) .result-filename,
html:not(.dark) .error-message,
html:not(.dark) .expires-note { color:#64748b; }

/* ===== Тост-уведомление ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 300;
  max-width: calc(100% - 3rem);
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast::before { animation: none; content: none; } /* без бегущего блика */
.toast-icon { color:#fbbf24; font-size:1.1rem; flex-shrink:0; }
#toast-message { font-size:0.9rem; }
html:not(.dark) #toast-message { color:#0f172a; }

