:root {
  --bg: #e0e5ec; /* Soft light background */
  --card: #e0e5ec; /* Card surface */
  --text: #2e2e2e; /* Readable dark text */
  --accent: #00aaff; /* Neon Blue */
  --accent2: #ff4da6; /* Neon Pink */
  --radius: 16px;
  --shadow-dark: #b8bcc2;
  --shadow-light: #ffffff;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* Hero (page intro) */
.hero {
  text-align: center;
  margin: 40px 0;
  animation: fadeIn 1s ease-out forwards;
}
.hero h1 {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(0, 170, 255, 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
}
.hero h1:hover {
  color: var(--accent2);
  transform: scale(1.05);
}
.hero p {
  color: #555;
  font-size: 16px;
  animation: fadeIn 1.2s ease-out forwards;
}

/* Tool Container */
.tool-container {
  align-self: center;
  width: 100%;
  max-width: 800px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  animation: slideUp 0.8s ease-out forwards;
}

/* Input & Output */
textarea,
input[type="text"] {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--card);
  color: var(--text);
  margin-bottom: 16px;
  font-size: 15px;
  resize: vertical;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: all 0.3s ease;
}
textarea:focus,
input[type="text"]:focus {
  outline: none;
  box-shadow: inset 2px 2px 6px var(--shadow-dark),
    inset -2px -2px 6px var(--shadow-light), 0 0 0 2px var(--accent);
}

/* Options */
.options {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  flex-wrap: wrap;
  animation: fadeIn 1.4s ease-out forwards;
}
.options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.seo-page-button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  transition: all 0.3s ease;
}
.seo-page-button:hover {
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}

/* SEO Tip */
.seo-tip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  text-align: center;
  animation: fadeIn 1.6s ease-out forwards;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
    padding: 0 10px;
  }

  .tool-container {
    padding: 16px;
  }

  textarea,
  input[type="text"] {
    font-size: 14px;
    padding: 12px;
  }

  .options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
    gap: 10px;
  }
  .seo-page-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 13px;
  }
  .tool-container {
    padding: 12px;
  }
  textarea,
  input[type="text"] {
    font-size: 13px;
  }
}
