/* =====================================================
   LAZZYTOOLS PLUGIN — CSS (scoped to #lazzytools-wrap)
   ===================================================== */

/* ── Reset inside wrapper ── */
#lazzytools-wrap *,
#lazzytools-wrap *::before,
#lazzytools-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#lazzytools-wrap {
  position: relative;
  min-height: 80vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #E2E8F0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Variables ── */
#lazzytools-wrap {
  --lt-primary:      #00E5FF;
  --lt-primary-dark: #0099CC;
  --lt-secondary:    #B026FF;
  --lt-card-bg:      rgba(15, 23, 42, 0.92);
  --lt-border-glow:  rgba(0, 229, 255, 0.25);
  --lt-bg:           #0B0F19;
}

/* ── Background layers ── */
.lt-cyber-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, #0F1222, #080B14);
  pointer-events: none;
}
.lt-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ── App main ── */
#lt-app {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

/* ── Neon text ── */
#lazzytools-wrap .lt-neon {
  text-shadow: 0 0 5px var(--lt-primary), 0 0 10px rgba(0,229,255,0.3);
}

/* ── Hero ── */
#lazzytools-wrap .lt-hero {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
#lazzytools-wrap .lt-hero-content { flex: 1; }
#lazzytools-wrap .lt-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF, var(--lt-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
#lazzytools-wrap .lt-hero-badge {
  display: inline-block;
  background: rgba(0,229,255,0.15);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--lt-primary);
  color: var(--lt-primary);
}
#lazzytools-wrap .lt-hero-content p {
  font-size: 1.1rem;
  color: #94A3B8;
  margin: 1rem 0 2rem;
}
#lazzytools-wrap .lt-hero-icons {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
#lazzytools-wrap .lt-icon-card {
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  width: 90px;
  height: 90px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--lt-border-glow);
  transition: 0.2s;
  animation: lt-float 5s ease-in-out infinite;
}
#lazzytools-wrap .lt-icon-card:hover {
  border-color: var(--lt-primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
@keyframes lt-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Search ── */
#lazzytools-wrap .lt-search-section {
  max-width: 1280px;
  margin: 1rem auto;
  padding: 0 1rem;
}
#lazzytools-wrap .lt-search-box {
  background: var(--lt-card-bg);
  border-radius: 3rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  border: 1px solid var(--lt-border-glow);
}
#lazzytools-wrap .lt-search-box i { color: var(--lt-primary); margin-right: 0.5rem; }
#lazzytools-wrap .lt-search-box input {
  background: transparent;
  border: none;
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  color: white;
  outline: none;
}

/* ── Page container ── */
#lazzytools-wrap .lt-page {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 1rem;
}
#lazzytools-wrap .lt-page h1,
#lazzytools-wrap .lt-page h2 {
  color: var(--lt-primary);
  margin: 1.2rem 0 0.6rem;
}
#lazzytools-wrap .lt-page p,
#lazzytools-wrap .lt-page li { color: #94A3B8; line-height: 1.7; }
#lazzytools-wrap .lt-page ul { padding-left: 1.4rem; }

/* ── Tool grid ── */
#lazzytools-wrap .lt-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
#lazzytools-wrap .lt-tool-card {
  background: var(--lt-card-bg);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid var(--lt-border-glow);
}
#lazzytools-wrap .lt-tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--lt-primary);
  box-shadow: 0 10px 20px -5px rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.1);
}
#lazzytools-wrap .lt-tool-card h3 { color: var(--lt-primary); margin-bottom: 0.5rem; font-size: 1rem; }
#lazzytools-wrap .lt-tool-card p  { color: #94A3B8; font-size: 0.9rem; }

/* ── Buttons ── */
#lazzytools-wrap .lt-cta-btn {
  background: linear-gradient(95deg, var(--lt-primary), var(--lt-primary-dark));
  color: #030712;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 10px var(--lt-primary);
  display: inline-block;
  font-size: 0.95rem;
}
#lazzytools-wrap .lt-cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--lt-primary);
}
#lazzytools-wrap .lt-copy-btn {
  background: var(--lt-primary);
  color: #030712;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}
#lazzytools-wrap .lt-copy-btn:hover { background: var(--lt-primary-dark); }

/* ── Tool interface ── */
#lazzytools-wrap .lt-tool-interface {
  background: var(--lt-card-bg);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--lt-border-glow);
}
#lazzytools-wrap .lt-upload-area,
#lazzytools-wrap .lt-word-area {
  border: 2px dashed var(--lt-primary);
  background: rgba(0,229,255,0.05);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  color: #E2E8F0;
}
#lazzytools-wrap .lt-result {
  margin-top: 1rem;
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--lt-primary);
  color: #E2E8F0;
  word-break: break-word;
}
#lazzytools-wrap .lt-result pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  color: #a0e4f1;
}

/* ── Inputs ── */
#lazzytools-wrap input[type="text"],
#lazzytools-wrap input[type="number"],
#lazzytools-wrap input[type="range"],
#lazzytools-wrap textarea,
#lazzytools-wrap select {
  background: #0F172A;
  border: 1px solid #334155;
  color: white;
  padding: 0.7rem;
  border-radius: 0.75rem;
  outline: none;
  font-family: inherit;
}
#lazzytools-wrap textarea { width: 100%; }
#lazzytools-wrap label { color: #94A3B8; font-size: 0.9rem; display: block; margin: 0.6rem 0 0.2rem; }
#lazzytools-wrap canvas { max-width: 100%; border-radius: 1rem; display: block; margin: 1rem auto; }

/* ── Breadcrumb ── */
#lazzytools-wrap .lt-breadcrumb { font-size: 0.85rem; color: #94A3B8; margin-bottom: 1rem; }
#lazzytools-wrap .lt-back-btn {
  color: var(--lt-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
#lazzytools-wrap .lt-back-btn:hover { text-decoration: underline; }

/* ── SEO content ── */
#lazzytools-wrap .lt-seo { margin: 1.5rem 0; line-height: 1.7; }
#lazzytools-wrap .lt-seo h2,
#lazzytools-wrap .lt-seo h3 { color: var(--lt-primary); margin-top: 1.5rem; margin-bottom: 0.5rem; }
#lazzytools-wrap .lt-seo p,
#lazzytools-wrap .lt-seo li { color: #94A3B8; }
#lazzytools-wrap .lt-seo ul { padding-left: 1.4rem; }
#lazzytools-wrap .lt-seo strong { color: #E2E8F0; }

/* ── Image preview ── */
#lazzytools-wrap .lt-img-preview {
  display: flex; flex-wrap: wrap;
  gap: 1rem; margin-top: 1rem; justify-content: center;
}
#lazzytools-wrap .lt-img-preview img {
  max-width: 110px; max-height: 110px;
  border-radius: 0.5rem;
  border: 1px solid var(--lt-border-glow);
  object-fit: contain;
}

/* ── Flex helpers ── */
#lazzytools-wrap .lt-flex { display: flex; gap: 0.8rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
#lazzytools-wrap .lt-ghost-btn {
  background: #334155; color: #E2E8F0;
  border: none; padding: 0.8rem 1.5rem;
  border-radius: 2.5rem; font-weight: 600;
  cursor: pointer; transition: 0.2s; font-size: 0.9rem;
}
#lazzytools-wrap .lt-ghost-btn:hover { background: #475569; }

/* ── Stats row for word counter ── */
#lazzytools-wrap .lt-stats {
  display: flex; gap: 1rem; justify-content: center;
  margin: 1rem 0; flex-wrap: wrap;
}
#lazzytools-wrap .lt-stat-item { text-align: center; }
#lazzytools-wrap .lt-stat-item strong { color: var(--lt-primary); display: block; font-size: 1.3rem; }
#lazzytools-wrap .lt-stat-item span { font-size: 0.8rem; color: #94A3B8; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #lazzytools-wrap .lt-hero { flex-direction: column; text-align: center; }
  #lazzytools-wrap .lt-tools-grid { grid-template-columns: 1fr; }
  #lazzytools-wrap .lt-hero-icons { gap: 1rem; }
  #lazzytools-wrap .lt-icon-card { width: 70px; height: 70px; font-size: 2rem; }
}
@media (max-width: 480px) {
  #lazzytools-wrap .lt-cta-btn { padding: 0.6rem 1.4rem; font-size: 0.88rem; }
  #lazzytools-wrap .lt-tool-card { padding: 1rem; }
}
