/* ── ByeByeMetaData — Shared Styles ── */

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

:root {
  --bg: #0f0f11;
  --card: #1a1a1f;
  --border: #2a2a30;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --radius: 12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 0;
}

.container {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ── Trust Badges (Homepage) ── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  animation: fadeIn 0.5s ease 0.2s both;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, color 0.2s;
}

.trust-badge:hover {
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--text);
}

/* ── Upload Zone ── */
.drop-zone {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  z-index: 2;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
}
.drop-zone input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.drop-zone svg { color: var(--accent); margin-bottom: 12px; }
.drop-zone p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.drop-zone .formats {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  opacity: 0.6;
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

/* ── Preview ── */
.preview-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.preview-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.preview-info { min-width: 0; }
.preview-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-size { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Metadata List ── */
.meta-list {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.meta-item:last-child { border-bottom: none; }
.meta-item .key { color: var(--muted); flex-shrink: 0; margin-right: 12px; }
.meta-item .val {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.meta-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.meta-count span { color: var(--red); font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 6px;
}
.badge.high { background: rgba(248,113,113,0.15); color: var(--red); }
.badge.med  { background: rgba(251,191,36,0.15);  color: var(--yellow); }
.badge.low  { background: rgba(52,211,153,0.15);  color: var(--green); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--green); color: #0f0f11; }
.btn-success:hover { background: #2ec48b; }
.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--muted); color: var(--text); }
.btn-row { display: flex; gap: 10px; }

/* ── Success ── */
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon svg { color: var(--green); }
.success-msg { text-align: center; margin-bottom: 24px; }
.success-msg h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.success-msg p { font-size: 13px; color: var(--muted); }
.stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-box {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat-box .num { font-size: 20px; font-weight: 700; }
.stat-box .label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.hidden { display: none !important; }

/* Scrollbar */
.meta-list::-webkit-scrollbar { width: 4px; }
.meta-list::-webkit-scrollbar-track { background: transparent; }
.meta-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Main wrapper to push footer down ── */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
  min-height: 75vh;
  overflow: hidden;
}

/* ── Floating background tags ── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.float-tag {
  position: absolute;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.12);
  animation: floatAcross linear infinite;
  will-change: transform;
}
.float-tag.danger { border-color: rgba(248,113,113,0.12); color: rgba(248,113,113,0.18); }
.float-tag.warn   { border-color: rgba(251,191,36,0.10); color: rgba(251,191,36,0.15); }
.float-tag.safe   { border-color: rgba(52,211,153,0.10); color: rgba(52,211,153,0.15); }

@keyframes floatAcross {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(calc(100vw + 100%)); }
}

/* ── Glow orb ── */
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ── FAQ Section ── */
.faq-section {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.faq-section h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(108, 99, 255, 0.3); }
.faq-question {
  width: 100%;
  background: var(--card);
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: background 0.15s;
}
.faq-question:hover { background: #1f1f25; }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform 0.25s ease;
  color: var(--muted);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(26, 26, 31, 0.6);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 16px;
}
.faq-answer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 12px;
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
}
.footer-brand {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 11px;
  color: #52525b;
}
.footer-heart { color: var(--red); }

/* ── Waving hand ── */
.wave {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%        { transform: rotate(0deg); }
  10%       { transform: rotate(14deg); }
  20%       { transform: rotate(-8deg); }
  30%       { transform: rotate(14deg); }
  40%       { transform: rotate(-4deg); }
  50%       { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}

/* ── Header ── */
.header-glow {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #a78bfa, var(--accent), transparent);
  background-size: 200% 100%;
  animation: headerShimmer 4s ease-in-out infinite;
}
@keyframes headerShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.site-header {
  width: 100%;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 17, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
}
.header-brand:hover {
  text-shadow: 0 0 16px rgba(108, 99, 255, 0.45);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 4px;
}

.header-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.header-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.header-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.08);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.header-follow:hover {
  background: rgba(108, 99, 255, 0.18);
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
  color: #ddd6fe;
}

/* ── Content Pages (About, Privacy) ── */
.page-content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.page-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content .page-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 48px;
  text-align: center;
}

.page-content .last-updated {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 40px;
}

.content-section {
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease;
}

.content-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section h2 .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

.content-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text);
  font-weight: 600;
}

.content-section a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.content-section a:hover {
  color: #8b83ff;
  text-decoration: underline;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.content-section ul li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.content-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── Highlight Box ── */
.highlight-box {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.highlight-box .emoji-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

/* ── How It Works Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.step-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Privacy Badge Row ── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.privacy-badge.green {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
  color: var(--green);
}

.privacy-badge.purple {
  border-color: rgba(108, 99, 255, 0.2);
  background: rgba(108, 99, 255, 0.06);
  color: #a78bfa;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.cta-banner h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  justify-content: center;
}

.cta-banner p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-banner .btn {
  width: auto;
  display: inline-flex;
  padding: 12px 28px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Mobile Responsiveness ── */
@media (max-width: 600px) {
  body { padding: 0; }
  .site-header { padding: 12px 16px; flex-direction: column; gap: 12px; }
  .main-content { padding: 20px 16px; min-height: 60vh; }
  .container { padding: 0; }

  h1 { font-size: 16px; }
  .subtitle { font-size: 12px; margin-bottom: 20px; }

  .trust-badges { gap: 6px; margin-bottom: 20px; }
  .trust-badge { font-size: 10px; padding: 4px 10px; }

  .drop-zone { padding: 32px 16px; }
  .card-body { padding: 16px; }

  .preview-row { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .preview-thumb { width: 100%; height: 160px; margin: 0 auto; }
  .meta-item .val { max-width: 180px; }

  .stat-row { flex-direction: column; }
  .btn-row { flex-direction: column; }

  .hero-glow { width: 280px; height: 280px; }
  .hero-bg { display: none; }

  .faq-section { padding: 40px 16px 48px; }
  .footer-inner { padding: 32px 16px; text-align: center; }
  .footer-links { justify-content: center; }

  /* Content pages mobile */
  .page-content { padding: 40px 16px 60px; }
  .page-content h1 { font-size: 22px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 24px 16px; }
}
