/* Basic cyberpunk-inspired styling */

:root {
  --bg-color: #05070a;
  --card-bg: rgba(10, 12, 20, 0.92);
  --accent: #ff4b9b;
  --accent-secondary: #35d3ff;
  --text-main: #f5f7ff;
  --text-muted: #9297b5;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text-main);

  /* ✅ Background image in repo root */
  background: url("./background.jpg") center / cover no-repeat fixed;
  background-color: #02030a; /* fallback if image fails */

  overflow-x: hidden;
}

body {
  position: relative;
}

/* Overlay on top of the background image for readability */
.overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 75, 155, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(53, 211, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  opacity: 1;
  z-index: 0;
}

/* Ensure UI is above overlay */
.container,
.header,
.card,
.lang-switcher {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

.header {
  margin-bottom: 18px;
  text-align: center;
}

.header h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  margin-top: 18px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.hint {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lang-switcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.lang-switcher select {
  background: rgba(10, 12, 20, 0.9);
  color: var(--text-main);
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  outline: none;
}

.lang-switcher select:focus {
  border-color: var(--accent-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity 0.12s linear;
  outline: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ff7b3e);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 75, 155, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 75, 155, 0.55);
}

.btn-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

.btn-tiktok {
  background: linear-gradient(120deg, #010101, #101319);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-tiktok::before {
  content: "♫";
  font-size: 1.1rem;
}

.btn-secondary {
  background: linear-gradient(120deg, var(--accent-secondary), #3cffb4);
  color: #05070a;
  box-shadow: 0 10px 26px rgba(53, 211, 255, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(53, 211, 255, 0.45);
}

.btn-download {
  background: transparent;
  color: var(--accent-secondary);
  border: 1px solid rgba(53, 211, 255, 0.5);
}

.btn-download:hover {
  background: rgba(53, 211, 255, 0.1);
}

.textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 10px 12px;
  margin: 4px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 6, 12, 0.95);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.textarea:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 1px rgba(53, 211, 255, 0.35);
}

.status-text {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-text--secondary {
  margin-top: 8px;
}

.status-text--error {
  color: #ff6b8a;
}

.status-text--success {
  color: #76ffb2;
}

.preview-wrapper {
  margin-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.preview-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.image-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  object-fit: cover;
}

.preview-wrapper .btn {
  margin-top: 10px;
  margin-right: 8px;
}

.small-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.login-status {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

/* Progress bar */

.progress-wrapper {
  margin-top: 10px;
}

.progress-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  transition: width 0.25s ease-out;
}

/* Responsive */

@media (max-width: 640px) {
  .container {
    margin-top: 24px;
  }

  .card {
    padding: 16px 14px 18px;
  }

  .header h1 {
    font-size: 1.5rem;
  }
}
/* COPY & PASTE: add this to the END of your existing style.css (no other changes) */

/* Top right actions: Terms / Privacy + language */
.top-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.pill-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.85rem;
  font-weight:600;
  letter-spacing:.01em;
  color: var(--text-main);
  text-decoration:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 12, 20, 0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(14px);
}

.pill-link:hover{
  transform: translateY(-1px);
  background: rgba(10, 12, 20, 0.72);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  text-decoration:none;
}

.pill-link:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(53,211,255,0.22), 0 14px 34px rgba(0,0,0,0.45);
}

.pill-link--alt{
  border-color: rgba(53, 211, 255, 0.35);
  color: var(--accent-secondary);
}

.pill-link--alt:hover{
  border-color: rgba(53, 211, 255, 0.55);
  background: rgba(53, 211, 255, 0.10);
}

/* Mobile */
@media (max-width: 640px){
  .top-actions{
    justify-content:center;
    gap:8px;
  }
}
