/*
Theme Name: LATW — LLM Automatic Translation
Theme URI: https://llm-automatic-translation.top/
Author: AdsPol / Szymon Zawadzki
Author URI: https://x.com/szymon_eryk
Description: Marketing theme for LLM Automatic Translation — AI translation plugins for WordPress (WPML and Loco Translate). Ships a home page template plus dedicated landing-page templates for each plugin. All copy is fully translation-ready via the "latw" text domain.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latw
*/

/* ===== Design tokens — mirrors @heroui/theme's dark layout exactly,
   so this theme matches llm-automate-translate-wpml-web pixel-for-pixel. ===== */
:root {
  --accent: #006FEE;        /* HeroUI primary.DEFAULT (blue.500) */
  --accent-foreground: #fff;
  --background: #000000;    /* HeroUI dark background.DEFAULT */
  --content1: #18181b;      /* HeroUI dark content1.DEFAULT (zinc.900) */
  --content2: #27272a;      /* HeroUI dark content2.DEFAULT (zinc.800) */
  --content1-foreground: #fafafa;
  --divider: rgba(255, 255, 255, .15);
  --focus: #006FEE;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 14px;
  --shadow-medium: 0px 0px 15px 0px rgb(0 0 0 / .06), 0px 2px 30px 0px rgb(0 0 0 / .22), inset 0px 0px 1px 0px rgb(255 255 255 / .15);
  --shadow-large: 0px 0px 30px 0px rgb(0 0 0 / .07), 0px 30px 60px 0px rgb(0 0 0 / .26), inset 0px 0px 1px 0px rgb(255 255 255 / .15);
  --transition: 250ms ease;
}

/* ===== Global base (shared by every template) ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}
::selection { background: rgba(0, 111, 238, .4); }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===== Global typography scale — same px values site-wide, every template =====
   Uses !important to win over per-element inline font-size attributes. */
body, p { font-size: 16px !important; }
h1 { font-size: 68px !important; }
h2 { font-size: 48px !important; }
h3 { font-size: 24px !important; }
@media (max-width: 767px) {
  body, p { font-size: 14px !important; }
  h1 { font-size: 40px !important; }
  h2 { font-size: 36px !important; }
  h3 { font-size: 20px !important; }
}

/* ===== Section spacing — same vertical rhythm site-wide ===== */
section { margin: 120px 0 !important; }
@media (max-width: 767px) {
  section { margin: 60px 0 !important; }
}

/* ===== Mobile hamburger nav ===== */
.latw-menu-checkbox { display: none; }
.latw-menu-burger { display: none; }
.latw-mobile-menu { display: none; }
@media (max-width: 767px) {
  .latw-nav-links, .latw-nav-ctas-desktop { display: none !important; }
  .latw-menu-burger { display: flex !important; }
  .latw-menu-checkbox:checked ~ .latw-mobile-menu { display: flex !important; }
}

/* ===== About-me media row (home page) — image full-width on top on mobile ===== */
@media (max-width: 767px) {
  .latw-about-row { flex-direction: column !important; }
  .latw-about-img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
}

/* ===== Pricing card divider between CTA button and feature list ===== */
.latw-pricing-features { margin: 20px -24px 0; padding: 16px 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.latw-free-features { border-left: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 767px) {
  .latw-free-features { border-left: none !important; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; }
}

/* FAQ accordion (used on the plugin landing templates) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }

/* Modest responsive fallbacks so the fixed grids degrade on small screens */
@media (max-width: 860px) {
  .latw-grid-2,
  .latw-grid-3,
  .latw-grid-4 { grid-template-columns: 1fr !important; }
  .latw-split { grid-template-columns: 1fr !important; }
}

/* ===== HeroUI-equivalent Button =====
   Mirrors @heroui/theme's button.js: size md (h-10, px-4, rounded-medium,
   text-small), 250ms transform/colors/opacity transition, hover opacity .9
   (HeroUI dark hoverOpacity), active/pressed scale .97, focus ring in the
   primary color. */
.latw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-medium);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}
.latw-btn:active { transform: scale(.97); }
.latw-btn:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--focus); }

.latw-btn-sm { height: auto; padding: 16px 26px; border-radius: var(--radius-small); font-size: 16px; }
.latw-btn-lg { height: 48px; padding: 0 24px; border-radius: var(--radius-large); font-size: 16px; }

/* Hero CTA (directly under the H1 on each landing page) — bigger than the standard lg button */
.latw-btn-hero { height: auto; padding: 20px 30px; font-size: 20px; }
@media (max-width: 767px) {
  .latw-btn-hero { font-size: 16px; }
}

/* solid / primary — the main CTA style */
.latw-btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
}
.latw-btn-primary:hover { opacity: .9; }

/* bordered — secondary CTA style */
.latw-btn-bordered {
  background: transparent;
  color: #fff;
  border: 1px solid var(--divider);
}
.latw-btn-bordered:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }

/* flat / ghost — low-emphasis CTA style */
.latw-btn-flat {
  background: rgba(0, 111, 238, .15);
  color: var(--accent);
}
.latw-btn-flat:hover { background: rgba(0, 111, 238, .25); }

.latw-btn-light {
  background: transparent;
  color: #fff;
}
.latw-btn-light:hover { background: rgba(255, 255, 255, .08); }

/* ===== HeroUI-equivalent Card =====
   Mirrors @heroui/theme's card.js: bg-content1, rounded-large (14px),
   shadow-medium, data-[hover=true]:bg-content2 + a subtle lift, 250ms
   transition on transform/colors. */
.latw-card {
  background: var(--content1);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.latw-card-hoverable { cursor: pointer; }
.latw-card-hoverable:hover {
  background: var(--content2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}
.latw-card-hoverable:active { transform: translateY(-2px) scale(.99); }

/* ===== Testimonials — real review screenshots on light cards =====
   Two featured WordPress.org reviews on top, then a masonry of shorter
   email/chat feedback. Screenshots are dark text, so cards are white. */
.latw-reviews-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}
.latw-reviews-masonry { columns: 3; column-gap: 18px; }
.latw-review-shot {
  display: block;
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  padding: 20px;
}
.latw-reviews-masonry .latw-review-shot { break-inside: avoid; margin-bottom: 18px; }
.latw-review-shot img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 860px) {
  .latw-reviews-featured { grid-template-columns: 1fr !important; }
  .latw-reviews-masonry { columns: 2; }
}
@media (max-width: 560px) {
  .latw-reviews-masonry { columns: 1; }
}

/* ===== Blog post content (the_content() output — arbitrary editor HTML) ===== */
.latw-prose { color: #C7CCDA; line-height: 1.75; }
.latw-prose > * + * { margin-top: 22px; }
.latw-prose h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.latw-prose h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.latw-prose p { margin: 0; }
.latw-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.latw-prose strong { color: #fff; }
.latw-prose ul, .latw-prose ol { margin: 0; padding-left: 1.4em; }
.latw-prose li + li { margin-top: 8px; }
.latw-prose blockquote { margin: 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: #9CA3AF; font-style: italic; }
.latw-prose img { max-width: 100%; height: auto; border-radius: var(--radius-medium); display: block; }
.latw-prose figure { margin: 0; }
.latw-prose figcaption { margin-top: 8px; font-size: 13px; color: #6B7185; text-align: center; }
.latw-prose pre { background: var(--content1); border-radius: var(--radius-medium); padding: 18px 20px; overflow-x: auto; font-size: 14px; }
.latw-prose code { background: var(--content1); border-radius: 4px; padding: 2px 6px; font-size: .9em; }
.latw-prose pre code { background: none; padding: 0; }
.latw-prose hr { border: none; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ===== Blog pagination (archive.php) ===== */
#latw-pagination a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--divider);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color var(--transition), border-color var(--transition);
}
#latw-pagination a:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
