/*
Theme Name: Swellness Pro
Theme URI: https://example.com/swellness-pro
Author: Swellness
Description: Professional sexual wellness blog theme with lead form and monetization-ready layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: swellness-pro
*/

:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --text: #1d2030;
  --muted: #636a85;
  --brand: #6b3df5;
  --brand-dark: #5128cb;
  --border: #e3e7f4;
  --radius: 16px;
  --shadow-sm: 0 8px 18px rgba(33, 41, 77, 0.06);
  --shadow-md: 0 16px 40px rgba(33, 41, 77, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(1280px, 96%);
  margin: 0 auto;
}

main.container {
  padding-top: 16px;
  padding-bottom: 26px;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
  display: block;
  visibility: visible;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-wrap {
  display: grid;
  gap: 2px;
}

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.site-nav li a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #394164;
  font-weight: 600;
}

.site-nav li a:hover,
.site-nav li.current-menu-item a {
  background: #ece8ff;
  color: #3e2a92;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.hero {
  background: radial-gradient(circle at top right, #d6ccff 0%, #f4f0ff 38%, #ffffff 100%);
  border: 1px solid #ddd7fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: 2px;
  padding: 42px 34px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 1.03rem;
}

.section {
  margin: 22px 0;
}

.section-head {
  margin-bottom: 14px;
}

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

.section-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.blog-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card h1,
.card h2 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.post-card {
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-tile {
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9ff 0%, #f7f5ff 60%, #eceffb 100%);
  margin-bottom: 10px;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #4d3e94;
  font-weight: 700;
  font-size: 0.9rem;
}

.post-thumb-fallback::after {
  content: "Wellness Blog";
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.lead-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.lead-intro {
  background: linear-gradient(160deg, #efe9ff 0%, #f6f4ff 100%);
  border: 1px solid #ddd2ff;
  border-radius: var(--radius);
  padding: 20px;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.lead-form input,
.lead-form textarea,
.lead-form select,
.lead-form button {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #d8d6ea;
  padding: 11px 12px;
  font: inherit;
}

.lead-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.lead-form button:hover {
  background: var(--brand-dark);
}

.tag-cloud a {
  display: inline-block;
  background: #efedfb;
  color: #412d91;
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0 8px 8px 0;
  font-size: 0.9rem !important;
  border: 1px solid #e2ddfb;
}

.adsense-slot {
  background: var(--surface);
  border: 1px dashed #c9c3eb;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  background: #171a29;
  padding: 20px 0;
  color: #c5cbe2;
  display: block;
  visibility: visible;
}

.site-footer a {
  color: #f0eefe;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 12px;
}

.footer-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.02rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.footer-bottom p {
  margin: 0;
}

.post-layout {
  display: grid;
  gap: 14px;
}

.post-layout > .section-head {
  grid-column: 1 / -1;
}

.content-card {
  max-width: 100%;
  margin: 0;
  padding: 16px;
}

.content-media {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.content-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

@media (max-width: 920px) {
  .content-media img {
    max-height: 240px;
  }
}

.entry-content {
  color: #2b3149;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 12px;
}

.lead-alert {
  background: #ecfff3;
  border: 1px solid #b9ebcb;
  color: #165c2c;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

@media (max-width: 920px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .blog-tiles {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 18px;
  }
}
