/* ═══════════════════════════════════════════════════════
   FlappyShare.com — Sky Green / Lime Pulse design system
   ═══════════════════════════════════════════════════════ */

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

/* ─ WRONG: Let's go distinctive instead ─ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Sky palette */
  --bg:        #08100f;
  --surface:   #0b1612;
  --card:      #0f1e1b;
  --card2:     #142620;
  --border:    rgba(74,222,128,0.10);

  /* Brand greens */
  --sky:       #22c55e;
  --sky-lo:    #14532d;
  --sky-hi:    #86efac;
  --lime:      #a3e635;
  --lime-hi:   #d9f99d;
  --teal:      #2dd4bf;

  /* Text */
  --text:      #e2f5eb;
  --muted:     #2d4a3a;
  --muted-hi:  #5a8a70;
  --silver:    #a0c8b4;

  /* Radii */
  --radius-lg:   22px;
  --radius-md:   14px;
  --radius-sm:   10px;
  --radius-pill: 50px;

  /* Shadows */
  --glow:      0 0 32px rgba(34,197,94,0.18);
  --glow-lime: 0 0 24px rgba(163,230,53,0.22);
}

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

html {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -10%, rgba(34,197,94,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 35% at 90% 80%,  rgba(163,230,53,0.04) 0%, transparent 50%),
    radial-gradient(circle 1.5px at 18% 22%, rgba(134,239,172,0.65) 0%, transparent 3px),
    radial-gradient(circle 1px   at 75% 12%, rgba(163,230,53,0.75)  0%, transparent 2px),
    radial-gradient(circle 2px   at 92% 40%, rgba(34,197,94,0.45)   0%, transparent 3px),
    radial-gradient(circle 1px   at  8% 65%, rgba(45,212,191,0.4)   0%, transparent 2px),
    radial-gradient(circle 1.5px at 50% 85%, rgba(134,239,172,0.3)  0%, transparent 2px);
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ══ Navbar ══ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(8,16,15,0.93);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
}
.navbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--lime), transparent);
  opacity: 0.18;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-orb {
  width: 38px; height: 38px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-lo), var(--sky));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.logo-orb::before {
  content: '';
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: rgba(163,230,53,0.25);
  border-radius: 50%;
  filter: blur(6px);
}
.logo-orb svg { width: 18px; height: 18px; fill: white; position: relative; z-index:1; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.05rem; color: var(--text); }
.logo-dot { color: var(--lime); }
.logo-tag { font-size: 0.58rem; color: var(--muted-hi); letter-spacing: 0.1em; font-weight: 700; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted-hi); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--sky-hi); }
.nav-cta {
  padding: 8px 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: var(--radius-pill);
  color: var(--sky-hi) !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: rgba(34,197,94,0.18) !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--silver); border-radius: 2px; }

/* ══ Main wrap ══ */
.main-wrap {
  flex: 1;
  width: 100%; max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ Bird decoration ══ */
.bird-row {
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.bird-dot {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 2.6s ease-in-out infinite;
}
.bird-dot.green { background: var(--sky); color: var(--sky); animation-delay: 0s; }
.bird-dot.lime  { background: var(--lime); color: var(--lime); animation-delay: 0.4s; }
.bird-dot.teal  { background: var(--teal); color: var(--teal); animation-delay: 0.8s; }
.bird-dot.sm { width: 4px; height: 4px; }
.bird-line { height: 1px; background: var(--border); }
.bird-line.w30 { width: 30px; }
.bird-line.w60 { width: 60px; }
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ══ Hero ══ */
.page-hero { text-align: center; }
.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lime), var(--sky), var(--sky-hi));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted-hi);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 5px 16px;
  background: rgba(163,230,53,0.07);
  border: 1px solid rgba(163,230,53,0.18);
  border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 700; color: var(--lime-hi);
  letter-spacing: 0.05em;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
  animation: blink-green 1.8s ease-in-out infinite;
}
@keyframes blink-green {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ══ Tabs ══ */
.tabs {
  display: flex;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: 100%;
  gap: 0;
}
.tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  background: transparent;
  border: none; border-radius: var(--radius-pill);
  color: var(--muted-hi);
  font-family: 'Nunito', sans-serif; font-size: 0.84rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.tab svg { width: 14px; height: 14px; stroke: currentColor; }
.tab:hover { color: var(--sky-hi); }
.tab.active {
  background: linear-gradient(135deg, var(--sky-lo), var(--sky));
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,197,94,0.28);
}

/* ══ Card ══ */
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.3), transparent);
}

/* ══ Dropzone ══ */
.dropzone {
  border: 1.5px dashed rgba(34,197,94,0.22);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.03);
}
.drop-sphere {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(163,230,53,0.18), rgba(20,83,45,0.45));
  border: 1px solid rgba(34,197,94,0.22);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(34,197,94,0.12);
}
.drop-sphere svg { width: 26px; height: 26px; stroke: var(--sky-hi); }
.drop-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.drop-sub { font-size: 0.82rem; color: var(--muted-hi); }
.btn-select {
  margin-top: 4px;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--sky-lo), var(--sky));
  border: none; border-radius: var(--radius-pill);
  color: #fff; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(34,197,94,0.30);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-select:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,0.42); }
.size-pill {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(163,230,53,0.15);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; color: var(--muted-hi); font-weight: 700;
}

/* ══ File queue ══ */
.file-queue { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.fq-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.82rem; color: var(--muted-hi); font-weight: 700; }
.fq-clear { background: none; border: none; color: var(--muted); font-size: 0.78rem; cursor: pointer; transition: color 0.2s; font-weight: 700; }
.fq-clear:hover { color: #f97316; }
.fq-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.83rem; color: var(--text); }
.fq-item:last-child { border-bottom: none; }
.fq-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq-size { color: var(--muted-hi); margin-left: 12px; flex-shrink: 0; font-weight: 600; }
.fq-remove { background: none; border: none; color: var(--muted); cursor: pointer; margin-left: 8px; font-size: 0.9rem; transition: color 0.2s; }
.fq-remove:hover { color: #f97316; }

/* ══ Progress ══ */
.upload-progress { text-align: center; padding: 20px 0; }
.prog-bar-wrap { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.prog-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--sky-lo), var(--sky), var(--lime)); border-radius: 3px; transition: width 0.3s; box-shadow: 0 0 10px rgba(34,197,94,0.5); }
.prog-label { font-size: 0.85rem; color: var(--muted-hi); font-weight: 700; }

/* ══ Success ══ */
.upload-success { text-align: center; padding: 12px 0; }
.success-icon { font-size: 2.5rem; margin-bottom: 8px; }
.success-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--text); margin-bottom: 16px; }
.success-url-wrap { display: flex; gap: 8px; margin-bottom: 16px; }
.success-url { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--sky-hi); font-size: 0.85rem; font-family: 'DM Mono', monospace; }
.btn-copy { padding: 10px 18px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.22); border-radius: var(--radius-sm); color: var(--sky-hi); font-weight: 800; cursor: pointer; white-space: nowrap; transition: background 0.2s; font-family: 'Nunito', sans-serif; }
.btn-copy:hover, .btn-copy.copied { background: rgba(34,197,94,0.22); }
.btn-another { background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 24px; color: var(--muted-hi); font-size: 0.84rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; font-weight: 700; }
.btn-another:hover { border-color: rgba(34,197,94,0.3); color: var(--sky-hi); }

/* ══ Divider ══ */
.divider { position: relative; text-align: center; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { position: relative; background: var(--card); padding: 0 12px; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }

/* ══ Form fields ══ */
.field-label { font-size: 0.79rem; color: var(--muted-hi); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.field-opt { color: var(--muted); font-weight: 600; text-transform: none; font-size: 0.73rem; }
textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Nunito', sans-serif; font-size: 0.9rem;
  resize: vertical; min-height: 80px;
  transition: border-color 0.2s, background 0.2s;
}
textarea:focus { outline: none; border-color: rgba(34,197,94,0.38); background: rgba(34,197,94,0.03); box-shadow: 0 0 0 3px rgba(34,197,94,0.07); }
textarea::placeholder { color: var(--muted); }

/* ══ Expiry ══ */
.expiry-group { display: flex; gap: 8px; flex-wrap: wrap; }
.expiry-btn {
  padding: 7px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted-hi); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}
.expiry-btn:hover { border-color: rgba(34,197,94,0.3); color: var(--sky-hi); }
.expiry-btn.active { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.38); color: var(--sky-hi); }

/* ══ Button row ══ */
.btn-row { display: flex; gap: 12px; }
.btn-settings {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  background: rgba(160,200,180,0.04);
  border: 1px solid rgba(160,200,180,0.12);
  border-radius: var(--radius-pill);
  color: var(--muted-hi); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  font-family: 'Nunito', sans-serif;
}
.btn-settings svg { width: 15px; height: 15px; stroke: currentColor; }
.btn-settings:hover { background: rgba(160,200,180,0.09); color: var(--silver); }

.btn-share {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--sky-lo), var(--sky), var(--sky-hi));
  border: none; border-radius: var(--radius-pill);
  color: #fff; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(34,197,94,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn-share svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2.5; }
.btn-share:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(34,197,94,0.5); }
.btn-share:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ══ Features ══ */
.features { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.feat {
  flex: 1; min-width: 100px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px; text-align: center;
  transition: border-color 0.2s;
}
.feat:hover { border-color: rgba(34,197,94,0.22); }
.feat-icon { font-size: 1.4rem; }
.feat-t { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.9rem; color: var(--text); margin-top: 8px; }
.feat-d { font-size: 0.74rem; color: var(--muted-hi); margin-top: 3px; font-weight: 600; }

/* ══ Footer ══ */
.footer {
  padding: 26px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.f-logo { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.9rem; color: var(--muted-hi); }
.f-links { display: flex; gap: 20px; }
.f-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; font-weight: 700; }
.f-links a:hover { color: var(--sky-hi); }
.f-copy { color: var(--muted); font-size: 0.74rem; font-weight: 600; }

/* ══ Scrollbar ══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(34,197,94,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,0.32); }

/* ══ Responsive ══ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .navbar { position: relative; }
  .nav-links.nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .main-wrap { padding: 32px 14px 48px; gap: 20px; }
  .card { padding: 20px 16px; }
  .btn-row { flex-direction: column; }
  .tab { font-size: 0.78rem; padding: 9px 10px; }
  .features { gap: 8px; }
  .feat { min-width: 80px; padding: 14px 10px; }
  .footer { flex-direction: column; text-align: center; }
}
