/* ── AMBIENT ── */
.lg-ambient {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.lg-ambient::before {
  content: '';
  position: absolute; top: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: lgDrift1 20s ease-in-out infinite alternate;
}
.lg-ambient::after {
  content: '';
  position: absolute; bottom: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,238,252,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: lgDrift2 25s ease-in-out infinite alternate;
}
@keyframes lgDrift1 { from { transform: translate(0,0); } to { transform: translate(60px,80px); } }
@keyframes lgDrift2 { from { transform: translate(0,0); } to { transform: translate(-80px,-60px); } }

/* ── LAYOUT ── */
.lg-wrap {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  padding: 120px 1.5rem 5rem;
}

/* ── HERO ── */
.lg-hero { margin-bottom: 2.5rem; text-align: center; }

.lg-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--on-surface); margin-bottom: 1rem;
}
.lg-gradient {
  background: linear-gradient(90deg, #22c55e, #00EEFC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(34,197,94,0.35));
}
.lg-desc {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 560px; margin: 0 auto;
}

/* ── CARD ── */
.lg-card {
  background: rgba(28,28,35,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 0 40px rgba(34,197,94,0.06), inset 0 0 30px rgba(34,197,94,0.02);
  margin-bottom: 1.5rem;
}

/* ── TABS ── */
.lg-tabs {
  display: flex; gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(248,245,253,0.07);
  padding-bottom: 0;
}
.lg-tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  background: none; border: none;
  padding: 0.5rem 1.25rem 0.75rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.lg-tab:hover { color: #22c55e; }
.lg-tab.active { color: #22c55e; border-bottom-color: #22c55e; }

/* ── PANELS ── */
.lg-panel { animation: lgFadeIn 0.2s ease; }
@keyframes lgFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* URL input */
.lg-url-wrap {
  position: relative; display: flex; align-items: center;
}
.lg-url-wrap .material-symbols-outlined {
  position: absolute; left: 0.9rem;
  font-size: 1.1rem; color: #22c55e;
  pointer-events: none;
}
.lg-url-input {
  width: 100%;
  background: rgba(14,14,19,0.7);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lg-url-input::placeholder { color: rgba(172,170,177,0.45); }
.lg-url-input:focus {
  border-color: rgba(34,197,94,0.7);
  box-shadow: 0 0 16px rgba(34,197,94,0.12);
}

/* Paste textarea */
.lg-textarea {
  width: 100%;
  background: rgba(14,14,19,0.7);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--on-surface);
  resize: vertical; min-height: 160px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
  box-sizing: border-box;
}
.lg-textarea::placeholder { color: rgba(172,170,177,0.45); }
.lg-textarea:focus {
  border-color: rgba(34,197,94,0.7);
  box-shadow: 0 0 16px rgba(34,197,94,0.12);
}

/* ── GENERATE BUTTON ── */
.lg-generate-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 1.25rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: none; border-radius: 0.625rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(34,197,94,0.25);
}
.lg-generate-btn:hover:not(:disabled) {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(34,197,94,0.4);
}
.lg-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.lg-generate-btn .material-symbols-outlined { font-size: 1rem; }

/* ── STATUS ── */
.lg-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  color: var(--on-surface-variant);
  margin: 0.75rem 0 0; min-height: 1.2em;
  text-align: center;
}
.lg-status.error { color: #f87171; }

/* ── OUTPUT CARD ── */
.lg-output-card {
  background: rgba(28,28,35,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 1.25rem;
  overflow: hidden;
  animation: lgFadeIn 0.35s ease;
}
.lg-output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(248,245,253,0.06);
  flex-wrap: wrap; gap: 0.75rem;
}
.lg-output-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #22c55e; margin: 0;
}
.lg-output-actions { display: flex; gap: 0.5rem; }

.lg-action-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.4rem 0.9rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.4rem;
  color: #22c55e;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lg-action-btn:hover { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.5); }
.lg-action-btn .material-symbols-outlined { font-size: 0.9rem; }
.lg-action-btn.copied { color: #86efac; border-color: rgba(134,239,172,0.4); }

.lg-pre {
  margin: 0;
  padding: 1.5rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem; line-height: 1.7;
  color: rgba(248,245,253,0.8);
  white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}

/* ── WHAT IS LLMS.TXT BANNER ── */
.lg-explainer {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.lg-explainer .material-symbols-outlined {
  font-size: 1.4rem; color: #22c55e; flex-shrink: 0; margin-top: 0.1rem;
}
.lg-explainer-text { font-size: 0.83rem; line-height: 1.65; color: var(--on-surface-variant); }
.lg-explainer-text strong { color: var(--on-surface); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .lg-wrap { padding: 100px 1rem 4rem; }
  .lg-card { padding: 1.25rem; }
  .lg-output-header { flex-direction: column; align-items: flex-start; }
}
