/* =========================
   RESET
========================= */

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


/* =========================
   BODY
========================= */

body {
  background: linear-gradient(to bottom, #020617, #071330);
  color: white;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  padding: 40px 20px;
}


/* =========================
   CONTAINER
========================= */

.container {
  max-width: 1200px;
  margin: auto;
}


/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 15px;
  font-weight: 700;
}

.subtitle {
  color: #94a3b8;
  font-size: 18px;
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
}


/* =========================
   BACK BUTTON
========================= */

.back-home {
  display: inline-block;
  margin-bottom: 30px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 15px;
}

.back-home:hover {
  text-decoration: underline;
}


/* =========================
   TOOL BOX
========================= */

.tool-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  padding: 35px;
  border-radius: 28px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 40px rgba(0,0,0,0.4),
    0 0 80px rgba(59,130,246,0.06);
}


/* =========================
   TOOL HEADER
========================= */

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.tool-header h2 {
  font-size: 28px;
}


/* =========================
   TOOL ACTIONS
========================= */

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================
   BUTTONS
========================= */

button {
  border: none;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 600;
}

.small-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}

.small-btn.danger {
  background: #334155;
}

.small-btn.danger:hover {
  background: #475569;
}

.bottom-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.bottom-actions button {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 15px 22px;
  border-radius: 16px;
  font-size: 15px;
}

.bottom-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59,130,246,0.4);
}


/* =========================
   TEXTAREA
========================= */

textarea {
  width: 100%;
  min-height: 240px;
  background: #172554;
  border: 1px solid #334155;
  color: white;
  border-radius: 22px;
  padding: 22px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.8;
}

textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59,130,246,0.2);
}


/* =========================
   PREMIUM STATS GRID
========================= */

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 30px;
}


/* =========================
   STAT CARD
========================= */

.premium-stat-card {
  background: linear-gradient(
    145deg,
    rgba(30,41,59,0.9),
    rgba(15,23,42,0.9)
  );

  border: 1px solid #334155;
  border-radius: 22px;
  padding: 25px;
  text-align: center;

  transition: 0.25s;
}

.premium-stat-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.premium-stat-card h3 {
  font-size: 38px;
  margin-bottom: 10px;
  color: #60a5fa;
}

.premium-stat-card p {
  color: #94a3b8;
  font-size: 15px;
}


/* =========================
   ADVANCED PANEL
========================= */

.advanced-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.advanced-box {
  background: rgba(15,23,42,0.9);
  border: 1px solid #334155;
  border-radius: 22px;
  padding: 24px;
}

.advanced-box h3 {
  margin-bottom: 14px;
  color: #cbd5e1;
}

.advanced-box p {
  font-size: 26px;
  color: #60a5fa;
  font-weight: bold;
}


/* =========================
   KEYWORD DENSITY
========================= */

.keyword-density {
  margin-top: 35px;
  background: rgba(15,23,42,0.8);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 28px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.section-header h2 {
  font-size: 28px;
}

.keyword-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(30,41,59,0.8);

  border: 1px solid #334155;

  padding: 16px 20px;
  border-radius: 16px;
}

.keyword-item span:first-child {
  color: #e2e8f0;
}

.keyword-item span:last-child {
  color: #60a5fa;
  font-weight: bold;
}

.empty-state {
  color: #94a3b8;
}


/* =========================
   SEO SECTION
========================= */

.seo-section {
  margin-top: 70px;
  background: rgba(15,23,42,0.85);
  border: 1px solid #1e293b;
  padding: 40px;
  border-radius: 28px;
}

.seo-section h2 {
  margin-top: 35px;
  margin-bottom: 18px;
  font-size: 32px;
}

.seo-section h2:first-child {
  margin-top: 0;
}

.seo-section p {
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 18px;
}

.seo-section ul,
.seo-section ol {
  padding-left: 22px;
}

.seo-section li {
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 12px;
}


/* =========================
   TOOL GRID
========================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.tool-card {
  background: rgba(15,23,42,0.85);
  border: 1px solid #1e293b;
  padding: 28px;
  border-radius: 24px;
  text-decoration: none;
  color: white;
  transition: 0.25s;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59,130,246,0.15);
}

.tool-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.tool-card p {
  color: #94a3b8;
  line-height: 1.8;
}


/* =========================
   SEARCH
========================= */

.search-box {
  margin-bottom: 45px;
}

.search-box input {
  width: 100%;
  padding: 18px;
  background: rgba(15,23,42,0.9);
  border: 1px solid #334155;
  border-radius: 18px;
  color: white;
  font-size: 16px;
}

.search-box input:focus {
  outline: none;
  border-color: #3b82f6;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  body {
    padding: 25px 15px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .subtitle {
    font-size: 16px;
  }

  .tool-box,
  .seo-section {
    padding: 25px;
  }

  .tool-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-stat-card h3 {
    font-size: 30px;
  }

  textarea {
    min-height: 200px;
  }

}
/* =========================
   GLOBAL TOOL TEMPLATE FIX
========================= */

.tool-box {
  max-width: 1200px;
  margin: 0 auto;
}

.tool-box h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.options {
  margin: 18px 0 28px;
  color: #cbd5e1;
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.output-title {
  margin-top: 35px;
  margin-bottom: 18px;
  font-size: 28px;
}

#copyBtn,
.tool-box > button {
  margin-top: 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
}

#copyBtn:hover,
.tool-box > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59,130,246,0.35);
}

textarea {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 6px;
  }
}

