/*
Theme Name: Humanize AI Text Free
Theme URI: https://humanizeaitextfree.com/
Author: Converted from AI Studio
Description: Single-page AI Humanizer tool theme with multilingual UI, ad slots, and server-side LLM proxy via WP REST.
Version: 1.0.5
License: GPLv2 or later
Text Domain: humanizeaitextfree
*/

/* Base typography + layout (matches the AI Studio design closely) */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --genesis-bg: #f5f5f5;
  --genesis-text: #333;
  --genesis-head: #222;
  --container-max: 1140px;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* fixes "space to slide right" on mobile */
}

body {
  background: var(--genesis-bg);
  color: var(--genesis-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  color: var(--genesis-head);
}

a { color: inherit; text-decoration: none; }

.genesis-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  background: #fff;
  min-height: 100vh;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow-x: hidden;
}

.genesis-header {
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 24px;
}

.genesis-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.genesis-title-row img {
  height: auto;
  max-width: 100%;
}

.custom-logo-link img {
  max-width: 100%;
  height: auto;
}

.genesis-tagline {
  color: #9ca3af;
  font-style: italic;
  font-size: 18px;
  margin: 0;
}

.genesis-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 40px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #666;
}

.genesis-nav a:hover { color: #000; }

/* Mobile nav */
.genesis-nav-toggle {
  display: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .genesis-nav { justify-content: space-between; }
  .genesis-nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .genesis-nav-links { width: 100%; display: none; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
  .genesis-nav-links.is-open { display: flex; }
}

/* 2-column layout */
.genesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .genesis-grid { grid-template-columns: 2fr 1fr; gap: 48px; }
}

.card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 28px;
}

.card.shadow { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.btn-genesis {
  width: 100%;
  background: #333;
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  cursor: pointer;
}

.btn-genesis:hover { background: #555; }
.btn-genesis:disabled { opacity: .5; cursor: not-allowed; }

textarea.genesis-textarea {
  width: 100%;
  height: 260px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

textarea.genesis-textarea:focus { border-color: #9ca3af; }

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  justify-content: space-between;
}

.mini-pill strong { font-weight: 800; }

.output {
  margin-top: 22px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  font-size: 14px;
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.output-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 800;
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: #9ca3af;
}

.icon-btn:hover { background: #e5e7eb; color: #111; }

.sidebar-dark {
  background: #333;
  color: #fff;
  border-radius: 14px;
  padding: 28px;
}

.sidebar-dark h3 { color: #fff; margin-top: 0; }

.sidebar-muted { color: #9ca3af; font-size: 12px; line-height: 1.55; }

.sidebar-pro p { color: #6b7280; font-size: 12px; line-height: 1.55; }

/* SEO content spacing */
.seo-content h2 { font-size: 30px; margin: 44px 0 18px; }
.seo-content h3 { font-size: 24px; margin: 34px 0 14px; }
.seo-content p { margin: 0 0 16px; color: #4b5563; }
.seo-content strong { color: #111827; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.modal-close:hover { color: #111; }

.footer {
  padding: 44px 0;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

/* Widget ad containers */
.ad-slot { margin: 18px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
