@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css");

:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --bg-color: #f8fafc;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  --hover-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Decorative Blobs */
.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.blob-1 {
  top: 10%;
  left: -10%;
  background: #6366f1;
}

.blob-2 {
  top: 50%;
  right: -10%;
  background: #a855f7;
}

/* --- Premium Header & Footer CSS --- */
header {
  background: var(--primary-gradient) !important;
  padding: 1rem 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  width: 100% !important;
  display: block !important;
}

header nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  text-decoration: none !important;
}

.logo-icon {
  background: white !important;
  border-radius: 0.8rem !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.logo-icon i {
  color: #6366f1 !important;
  font-size: 1.5rem !important;
}

.logo-text {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
}

.nav-links {
  display: flex !important;
  gap: 2rem !important;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: 0.3s !important;
}

.nav-links a:hover {
  color: white !important;
  transform: translateY(-2px) !important;
}

.mobile-menu-btn {
  display: none !important;
  background: white !important;
  color: #6366f1 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

footer {
  background: #fff !important;
  padding: 5rem 2rem 2rem !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 5rem;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 3rem !important;
  max-width: 1200px !important;
  margin: 0 auto 3rem !important;
}

.footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
}

.footer-col h4 {
  color: #1e293b !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.footer-col p {
  line-height: 1.6;
}

.footer-links {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
}

.footer-links a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: 0.3s !important;
}

.footer-links a:hover {
  color: #6366f1 !important;
  padding-left: 5px !important;
}

.copyright {
  text-align: center !important;
  padding-top: 2rem !important;
  border-top: 1px solid #f1f5f9 !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Overlay & Drawer */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

#mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 10000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

#mobile-drawer.open {
  right: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-links a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
}

/* --- Generator Section --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Input Card & Control Center */
.control-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.input-group-main {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.input-group-main input {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 1.5rem;
  font-size: 1.3rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  transition: all 0.3s ease;
  color: var(--text-main);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.input-group-main input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.clear-btn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.clear-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Secondary Actions (Filters & Copy All) */
.controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.search-filter-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-filter-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-filter-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
}

.search-filter-box input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.copy-all-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.copy-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Category Filter Tags */
.category-filters {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-filters::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.category-tag {
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-tag:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.category-tag.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Result Cards Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.result-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.font-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6366f1;
  letter-spacing: 0.5px;
}

.tag-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

.styled-text-value {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
  margin: 0.5rem 0 1.2rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.card-copy-btn {
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 100%;
  padding: 0.6rem 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.result-card:hover .card-copy-btn {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Copy feedback style */
.copied-pulse {
  animation: pulse-border 0.5s ease-out;
  background: rgba(240, 253, 244, 0.8);
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.4);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- SEO Article Section --- */
.seo-article {
  margin-top: 6rem;
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
}

.seo-article h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  border-left: 5px solid #6366f1;
  padding-left: 1rem;
}

.seo-article p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.seo-article p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header nav {
    padding: 0 1rem !important;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .control-panel {
    padding: 1.5rem;
  }

  .input-group-main input {
    font-size: 1.1rem;
    padding: 1rem 3rem 1rem 1.2rem;
  }

  .controls-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-all-btn {
    justify-content: center;
  }

  .seo-article {
    padding: 2rem 1.5rem;
    margin-top: 4rem;
  }

  .seo-article h2 {
    font-size: 1.5rem;
  }
}
