body {
  font-family: 'Segoe UI', sans-serif;
  background: #fffafc;
  padding: 2em;
  margin: 0;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  padding: 1.5em;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

input, select, textarea, button {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

textarea {
  height: 120px;
}

button {
  margin-top: 1em;
  background-color: #ff66b2;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #ff4da6;
}

.output {
  margin-top: 2em;
}

.blog-section {
  margin-top: 60px;
  padding: 1em;
  background: #fff;
}

.blog-section h2, .blog-section h3 {
  color: #333;
}

pre {
  background: #f6f6f6;
  padding: 1em;
  border-radius: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1em;
  }

  button, input, select, textarea {
    font-size: 1rem;
  }

  pre {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }
  header nav a {
    display: block;
    margin-bottom: 10px;
  }
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

form button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.9rem;
  background-color: #ff66b2;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background-color: #ff4da6;
}

.output {
  margin-top: 2rem;
  text-align: center;
}

.output textarea {
  width: 100%;
  height: 120px;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  resize: none;
}

.output button {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: none;
  background-color: #ff66b2;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  form label,
  form input,
  form select,
  form textarea,
  form button {
    font-size: 0.95rem;
  }
}


/* Your existing base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #fffafc;
  padding: 2em;
  margin: 0;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  padding: 1.5em;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

input, select, textarea, button {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

textarea {
  height: 120px;
}

button {
  margin-top: 1em;
  background-color: #ff66b2;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #ff4da6;
}

.output {
  margin-top: 2em;
}

.blog-section {
  margin-top: 60px;
  padding: 1em;
  background: #fff;
}

.blog-section h2, .blog-section h3 {
  color: #333;
}

pre {
  background: #f6f6f6;
  padding: 1em;
  border-radius: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ===== ADD ALL NEW FEATURE STYLES BELOW ===== */

/* Bio Variations */
.bio-variations {
  margin-top: 30px;
}

.bio-card {
  background: #fff;
  border: 2px solid #ff66b2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.bio-card h3 {
  color: #ff66b2;
  margin-top: 0;
  font-size: 16px;
}

.bio-card textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.bio-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bio-card-actions button {
  padding: 8px 15px;
  font-size: 13px;
  flex: 1;
  min-width: 100px;
  width: auto;
}

/* Character Counter */
.char-counter {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.char-counter.warning {
  color: #ff9800;
}

.char-counter.error {
  color: #f44336;
}

/* Saved Bios */
.saved-bios {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.saved-bios h3 {
  margin-top: 0;
  color: #ff66b2;
}

.saved-bio-item {
  background: white;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: border-color 0.2s;
  word-wrap: break-word;
}

.saved-bio-item:hover {
  border-color: #ff66b2;
}

/* Templates Section */
.templates-section {
  background: #f0f8ff;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.template-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.template-card:hover {
  border-color: #ff66b2;
  transform: translateY(-2px);
}

.template-card h4 {
  margin: 0 0 8px 0;
  color: #ff66b2;
  font-size: 14px;
}

.template-card p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* Keyword Suggestions */
.keyword-suggestions {
  margin-top: 10px;
}

.keyword-chip {
  display: inline-block;
  background: #ffe6f2;
  color: #ff66b2;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 5px 5px 5px 0;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.keyword-chip:hover {
  background: #ff66b2;
  color: white;
}

/* Recent Bios */
.recent-bios {
  background: #fff5f8;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.recent-bio-item {
  background: white;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  font-size: 13px;
  border-left: 3px solid #ff66b2;
  cursor: pointer;
  word-wrap: break-word;
}

.recent-bio-item:hover {
  background: #f9f9f9;
}

/* Toggle Group */
.toggle-group {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-item label {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}

.toggle-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Platform Limits */
.platform-limits {
  background: #e3f2fd;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 13px;
  color: #1976d2;
  word-wrap: break-word;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media screen and (max-width: 768px) {
  body {
    padding: 1em;
  }

  /* Header adjustments */
  header div {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  header h1 {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }
  
  header nav {
    margin-top: 10px !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  header nav a {
    margin-right: 10px !important;
    font-size: 14px;
    display: inline-block;
  }

  /* Container */
  .container {
    padding: 15px;
    max-width: 100%;
  }

  /* Template grid for mobile */
  .template-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  
  .template-card {
    padding: 12px;
  }
  
  .template-card h4 {
    font-size: 13px;
  }
  
  .template-card p {
    font-size: 11px;
  }

  .templates-section {
    padding: 15px;
    margin: 20px 0;
  }

  .templates-section h2 {
    font-size: 18px !important;
  }

  /* Form elements */
  input[type="text"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Bio card adjustments */
  .bio-card {
    padding: 12px;
  }

  .bio-card-actions {
    gap: 8px;
  }

  .bio-card-actions button {
    font-size: 12px;
    padding: 10px 12px;
    min-width: 80px;
  }

  /* Platform limits text */
  .platform-limits {
    font-size: 11px;
    padding: 8px;
  }

  /* Keyword chips */
  .keyword-chip {
    font-size: 11px;
    padding: 4px 10px;
    margin: 3px 3px 3px 0;
  }

  /* Toggle group */
  .toggle-group {
    gap: 15px;
  }

  .toggle-item label {
    font-size: 13px;
  }

  /* Saved and recent bios */
  .saved-bio-item,
  .recent-bio-item {
    font-size: 12px;
    padding: 8px;
  }

  .saved-bio-item button {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  /* Blog section */
  .blog-section {
    padding: 0 10px;
  }

  .blog-section h2 {
    font-size: 20px;
  }

  .blog-section h3 {
    font-size: 16px;
  }

  .blog-section p {
    font-size: 14px;
  }

  pre {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  .container {
    padding: 1em;
  }

  /* Extra small screens */
  .template-grid {
    grid-template-columns: 1fr;
  }

  .bio-card-actions {
    flex-direction: column;
  }

  .bio-card-actions button {
    width: 100%;
    min-width: unset;
  }

  header nav a {
    font-size: 13px;
    margin-right: 8px !important;
  }

  .toggle-group {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .keyword-suggestions strong {
    display: block;
    margin-bottom: 5px;
  }

  button, input, select, textarea {
    font-size: 0.95rem;
  }

  pre {
    font-size: 0.85rem;
  }
}
