/* Bold Text Generator - textibox styling */

.bold-generator {
  padding: 9rem 0 4rem;
  min-height: 100vh;
}

.bold-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bold-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.bold-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted-foreground);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.generator-section {
  max-width: 900px;
  margin: 0 auto;
}

/* Input Area */
.input-area {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

.input-area:focus-within {
  border-color: var(--foreground);
}

#text-input {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}

#text-input:focus {
  outline: none;
  border-color: var(--foreground);
  background: white;
}

#text-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

#clear-btn {
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

#clear-btn:hover {
  background: var(--border);
  transform: translateY(-1px);
}

#clear-btn:active {
  transform: translateY(0);
}

.char-count {
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 500;
}

#char-count {
  font-weight: 600;
  color: var(--foreground);
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}

.category-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 0.25rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-btn.social-btn {
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  border-color: var(--border);
}

.category-btn:hover {
  background: var(--secondary);
  border-color: var(--foreground);
  transform: translateY(-1px);
}

.category-btn.social-btn:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--border) 100%);
}

.category-btn.active {
  background: var(--foreground);
  color: white;
  border-color: var(--foreground);
}

.category-btn.social-btn.active {
  background: var(--foreground);
  color: white;
}

/* Fonts Grid */
.fonts-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.font-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.font-card:hover {
  border-color: var(--foreground);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.font-card:active {
  transform: translateY(0);
}

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

.font-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  padding: 0.375rem 0.875rem;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: var(--foreground);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 1;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.copy-btn:active {
  transform: scale(0.95);
}

.font-preview {
  font-size: 20px;
  color: var(--foreground);
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  user-select: all;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.empty-state .empty-subtext {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--foreground);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .bold-generator {
    padding: 5.5rem 0 3rem;
  }

  .bold-title {
    font-size: 1.75rem;
  }

  .bold-description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .generator-section {
    padding: 0 1rem;
  }

  .input-area {
    padding: 1rem;
    border-radius: 10px;
  }

  #text-input {
    min-height: 100px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 6px;
  }

  .input-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #clear-btn {
    width: 100%;
  }

  .char-count {
    text-align: center;
  }

  .category-filter {
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    padding: 0 0.5rem;
  }

  .category-divider {
    display: none;
  }

  .category-btn {
    padding: 0.4rem 0.75rem;
    font-size: 12px;
    flex: 0 1 auto;
  }

  .category-btn.social-btn {
    font-size: 11px;
  }

  .font-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .font-preview {
    font-size: 18px;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .bold-generator {
    padding: 5rem 0 2.5rem;
  }

  .bold-header {
    margin-bottom: 1.5rem;
  }

  .bold-title {
    font-size: 1.5rem;
  }

  .bold-description {
    font-size: 0.9375rem;
  }

  .input-area {
    padding: 0.75rem;
  }

  #text-input {
    min-height: 80px;
    padding: 0.75rem;
  }

  .category-filter {
    gap: 0.25rem;
    padding: 0;
  }

  .category-btn {
    padding: 0.35rem 0.5rem;
    font-size: 11px;
  }

  .font-card {
    padding: 0.875rem;
  }

  .font-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .font-name {
    font-size: 11px;
  }

  .copy-btn {
    opacity: 1;
    width: 100%;
    padding: 0.5rem;
  }

  .font-preview {
    font-size: 16px;
  }
}

/* Loading State */
.fonts-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Smooth Transitions */
.font-card,
.category-btn,
#text-input,
.copy-btn {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.content-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.section-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
}

.section-content p {
  margin-bottom: 1.25rem;
}

.section-content strong,
.section-content em {
  color: var(--foreground);
}

.section-intro {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* How to Use - Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--foreground);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.use-case {
  text-align: center;
  padding: 1.5rem;
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.use-case h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.use-case p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--foreground);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.faq-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0;
}

/* Code styling */
.section-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  background: var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--foreground);
  word-break: break-all;
}

.best-practices .section-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Better line height for FAQ content */
.faq-item p {
  line-height: 1.8;
}

/* Responsive for Content Sections */
@media (max-width: 768px) {
  .content-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .section-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .use-case h3 {
    font-size: 1rem;
  }

  .use-case p {
    font-size: 0.875rem;
    line-height: 1.8;
  }

  .section-content {
    font-size: 1rem;
  }

  .section-content p {
    margin-bottom: 1rem;
  }

  /* Better spacing for list items on mobile */
  .section-content p[style*="padding-left"] {
    padding-left: 1rem !important;
    font-size: 0.9375rem;
    line-height: 1.9;
  }

  .faq-item {
    padding: 1.25rem;
  }

  .faq-item h3 {
    font-size: 1rem;
    line-height: 1.5;
  }

  .faq-item p {
    font-size: 0.9375rem;
    line-height: 1.8;
  }

  .best-practices .section-content {
    padding: 1.5rem;
  }

  /* Code blocks on mobile */
  .section-content code {
    font-size: 0.85em;
    padding: 0.1rem 0.3rem;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }

  .section-intro {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .use-case {
    padding: 1.25rem;
  }

  .use-case-icon {
    font-size: 2.5rem;
  }

  .use-case h3 {
    font-size: 0.9375rem;
  }

  .use-case p {
    font-size: 0.8125rem;
    line-height: 1.7;
  }

  .best-practices .section-content {
    padding: 1rem;
  }

  /* Smaller padding for indented lists on small screens */
  .section-content p[style*="padding-left"] {
    padding-left: 0.75rem !important;
    font-size: 0.875rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .faq-item h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
  }

  .faq-item p {
    font-size: 0.875rem;
  }

  .section-content code {
    font-size: 0.8em;
    word-break: break-all;
  }

  /* Adjust step cards */
  .step-card {
    padding: 1.5rem 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .step-card h3 {
    font-size: 1rem;
  }

  .step-card p {
    font-size: 0.875rem;
  }
}


/* Dark mode fixes */
[data-theme="dark"] .category-btn.active {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .copy-btn {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .toast {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .step-number {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] #text-input:focus {
  background: var(--card);
}

[data-theme="dark"] .best-practices .section-content {
  background: var(--card);
}
