/*
Theme Name: AI Girlfriend
Theme URI: https://example.com/ai-girlfriend-theme
Author: AI Girlfriend
Author URI: https://example.com
Description: Lightweight Gutenberg-ready WordPress theme for AI chat discovery, reviews, and editorial content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ourdreamai
Tags: custom-logo, custom-menu, full-site-editing, block-styles, accessibility-ready, responsive-layout, editor-style
*/

:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --surface-strong: #f1ebff;
  --text: #1f1645;
  --muted: #5f4f8f;
  --accent: #8e7bf9;
  --accent-strong: #6747ff;
  --border: rgba(111, 87, 255, 0.16);
  --shadow: 0 24px 80px rgba(95, 70, 190, 0.08);
  --button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(142, 123, 249, 0.12), transparent 35%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(246, 243, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 20;
  border-bottom: 1px solid rgba(142, 123, 249, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.site-logo img {
  display: block;
  max-height: 3.2rem;
  width: auto;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:focus-visible {
  outline: 3px solid rgba(103, 71, 255, 0.12);
  outline-offset: 3px;
}

.button-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text);
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  box-shadow: 0 18px 40px rgba(103, 71, 255, 0.18);
}

.button-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(103, 71, 255, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(103, 71, 255, 0.18);
  color: var(--accent-strong);
  padding: 0.8rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-1px);
  background: rgba(103, 71, 255, 0.12);
  border-color: rgba(103, 71, 255, 0.24);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(142, 123, 249, 0.08);
  color: var(--accent-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(103, 71, 255, 0.06);
  transform: translateY(-1px);
}

.hero,
.page-hero,
.article-hero,
.category-hero,
.about-hero,
.contact-hero,
.legal-hero,
.error-hero,
.review-hero {
  padding: 3rem 0 2rem;
}

.hero-copy,
.page-hero .hero-copy,
.article-hero .hero-copy,
.category-hero .hero-copy,
.about-hero .hero-copy,
.contact-hero .hero-copy,
.legal-hero .hero-copy,
.error-hero .hero-copy {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.hero-content,
.review-hero .hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.post-badge,
.badge {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(103, 71, 255, 0.08);
}

h1,
.page-hero h1,
.article-hero h1,
.category-hero h1,
.about-hero h1,
.contact-hero h1,
.legal-hero h1,
.error-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-copy,
.page-hero .section-copy,
.article-hero .section-copy,
.category-hero .section-copy {
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 58ch;
}

.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.quick-link {
  background: rgba(103, 71, 255, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.internal-links,
.category-links,
.cta-block,
.safety-note,
.legal-toc,
.error-action,
.quick-verdict,
.faq,
.related-posts,
.contact-layout,
.review-summary {
  padding: 2rem 0;
}

.content-column,
.content-block {
  padding: 2rem 0;
  max-width: 70ch;
  display: grid;
  gap: 1.25rem;
}

.content-column h2,
.content-column h3,
.content-block h2,
.content-block h3,
.feature-card h3,
.post-card h3 {
  margin: 0;
}

.callout-box,
.callout-secondary {
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(103, 71, 255, 0.12);
  background: rgba(103, 71, 255, 0.06);
  color: var(--muted);
}

.callout-secondary {
  background: rgba(255, 255, 255, 0.95);
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-grid,
.category-grid,
.safety-grid,
.reviews-grid,
.feature-grid,
.related-grid,
.alternatives-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.post-card,
.shipping-card,
.article-card,
.error-action,
.contact-panel,
.legal-toc {
  background: var(--surface);
  border: 1px solid rgba(142, 123, 249, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(95, 70, 190, 0.06);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 260px;
}

.card .meta,
.feature-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-badge,
.feature-card .badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(103, 71, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.card p,
.category-card p,
.safety-card p,
.review-card p,
.post-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card .card-foot,
.feature-card .card-foot {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-card,
.privacy-card,
.platform-card {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(241, 235, 255, 0.6));
  border: 1px solid rgba(142, 123, 249, 0.06);
  text-decoration: none;
  color: inherit;
}

.safety-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(142, 123, 249, 0.06);
  box-shadow: 0 16px 40px rgba(95, 70, 190, 0.06);
  min-height: 180px;
}

.review-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(142, 123, 249, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.review-card a {
  align-self: flex-start;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 12px 32px rgba(95, 70, 190, 0.06);
  min-height: 180px;
}

.faq .accordion,
.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(142, 123, 249, 0.12);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.accordion-panel {
  display: none;
  padding: 1rem;
  border-left: 1px solid rgba(142, 123, 249, 0.08);
  border-right: 1px solid rgba(142, 123, 249, 0.08);
  border-bottom: 1px solid rgba(142, 123, 249, 0.08);
  border-radius: 0 0 16px 16px;
  background: rgba(246, 243, 255, 0.6);
  color: var(--muted);
}

.site-footer {
  background: rgba(142, 123, 249, 0.06);
  color: var(--text);
  padding-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

.footer-grid h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.footer-grid a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer-bottom {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(142, 123, 249, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-disclaimer {
  max-width: 42rem;
  line-height: 1.45;
}

.post-badge,
.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(103, 71, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(142, 123, 249, 0.16);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: var(--surface);
  color: var(--text);
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.search-row input {
  flex: 1;
  min-width: 16rem;
  border: 1px solid rgba(142, 123, 249, 0.16);
  border-radius: 999px;
  padding: 0.95rem 1rem;
  background: white;
  color: var(--text);
}

.chat-hero-frame,
.start-chat-hero {
  width: 100%;
  margin-bottom: 1.5rem;
}

.chat-hero-content {
  position: relative;
  width: 100%;
}

.chat-iframe-shell {
  width: 100%;
  min-height: 580px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 22px;
}

.start-chat-hero {
  padding: 3.5rem 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-chat-hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 80px rgba(95, 70, 190, 0.08);
}

.start-chat-hero .post-badge {
  margin-bottom: 1rem;
}

.start-chat-hero h1 {
  margin-bottom: 0.85rem;
}

.start-chat-hero .hero-copy {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.start-chat-hero .button.button-cta {
  padding: 1rem 2rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .chat-iframe-shell {
    aspect-ratio: 4 / 3;
  }

  .start-chat-hero {
    padding: 2rem 0;
  }

  .start-chat-hero-inner {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .chat-iframe-shell {
    aspect-ratio: 1 / 1;
  }

  .start-chat-hero-inner {
    padding: 1.25rem 1rem;
  }
}

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar .widget {
  background: var(--surface);
  border: 1px solid rgba(142, 123, 249, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(95, 70, 190, 0.06);
}

.page-fullwidth .content-column,
.single-fullwidth .content-column {
  max-width: 100%;
}

@media (max-width: 768px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

}

section[id] {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 1000px) {
  .cards-grid,
  .category-grid,
  .safety-grid,
  .reviews-grid,
  .feature-grid,
  .related-grid,
  .alternatives-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .review-hero .hero-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .main-nav {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: center;
  }

  .hero-actions .button,
  .panel-actions .button,
  .quick-link {
    width: 100%;
  }

  .hero {
    padding: 2.25rem 0;
  }

  .hero-content {
    align-items: stretch;
  }

  .hero-panel,
  .contact-layout,
  .related-grid,
  .alternatives-grid {
    width: 100%;
  }

  .cards-grid,
  .category-grid,
  .safety-grid,
  .reviews-grid,
  .feature-grid,
  .related-grid,
  .alternatives-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .internal-links .quick-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .card .card-foot,
  .review-card,
  .contact-form,
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-card {
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    font-size: 0.9rem;
    gap: 0.5rem;
    padding-bottom: 1rem;
    align-items: start;
  }
}
