/* Easyllmstxt.com shared styles */

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.logo span {
  color: var(--brand);
}

.nav-links a:hover {
  color: var(--brand);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-a {
  display: none;
}

.faq-item.active .faq-a {
  display: block;
}

.copyright {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* Shared blocks: blog.html + templates.html */
.nav-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.search i {
  color: #94a3b8;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 0.95rem;
  color: #0f172a;
}

.chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: .2s;
}

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

.chip.active {
  border-color: rgba(255,140,68,.35);
  background: rgba(255,140,68,.08);
  color: var(--brand);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3,1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: #475569;
  margin: 16px 0;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: #94a3b8;
  font-size: 1.2rem;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: #475569;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-grid + .copyright {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Shared toast + loading states */
.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  min-width: 260px;
  max-width: 420px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(255, 140, 68, 0.45);
  border-left: 4px solid #ff8c44;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.42);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.toast-message.toast-error {
  background: #fff1f2;
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.35);
  border-left-color: #f43f5e;
}

.toast-message.toast-success {
  background: #ecfdf3;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
  border-left-color: #22c55e;
}

button.is-loading,
.btn-primary.is-loading,
.btn-use-template.is-loading {
  opacity: 0.88;
  cursor: not-allowed;
}

/* Shared mobile nav */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  header .header-content {
    flex-wrap: wrap !important;
    align-items: center !important;
    flex-direction: row !important;
  }

  header .mobile-menu-btn {
    display: inline-flex !important;
    margin-left: auto;
    flex-shrink: 0;
  }

  header .nav-links {
    display: none !important;
    width: 100% !important;
    order: 3;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 8px 0 4px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
  }

  header .nav-links.open {
    display: flex !important;
  }

  header .nav-links a {
    width: 100%;
    padding: 10px 4px;
    font-size: 1rem;
    border-bottom: 1px solid #f8fafc;
    display: block;
  }

  header .nav-links a:last-of-type {
    border-bottom: none;
  }

  header .nav-links .btn-secondary,
  header .nav-links .btn-primary {
    display: inline-flex !important;
    margin-top: 8px;
    width: auto;
  }
}
