/*
Theme Name: LovelySMS
Theme URI: https://lovelysms.info
Description: Love messages, texts & relationship guides — warm, modern, readable.
Version: 1.0
Author: LovelySMS
Text Domain: lovelysms
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --color-rose: #c23a5e;
  --color-rose-dark: #8f2643;
  --color-rose-light: #fbe4ea;
  --color-plum: #5b3256;
  --color-gold: #d3a54d;
  --color-bg: #fffaf8;
  --color-surface: #ffffff;
  --color-text: #2b1e24;
  --color-text-muted: #7a6169;
  --color-border: #f0dfe3;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(140,40,70,.08);
  --shadow-md: 0 6px 18px rgba(140,40,70,.12);
  --max-w: 780px;
}

/* =============================================
   BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

a { color: var(--color-rose); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: .5em;
  margin-top: 1.5em;
}
h1 { font-size: 2.1rem; color: var(--color-rose-dark); }
h2 { font-size: 1.5rem; color: var(--color-rose-dark); border-bottom: 2px solid var(--color-rose-light); padding-bottom: .3em; }
h3 { font-size: 1.15rem; color: var(--color-plum); font-family: var(--font-sans); }

p { margin-bottom: 1em; }

/* =============================================
   LAYOUT
   ============================================= */
.site-container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.content-area { max-width: var(--max-w); margin: 0 auto; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-rose);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .site-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-logo a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-rose-dark); text-decoration: none; letter-spacing: -.5px; }
.site-logo a:hover { color: var(--color-rose); text-decoration: none; }
.site-logo .tagline { font-family: var(--font-sans); font-size: .78rem; color: var(--color-text-muted); font-weight: 400; display: block; letter-spacing: 0; }

.primary-nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.primary-nav a { color: var(--color-text); font-weight: 600; font-size: .92rem; padding: .25rem 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--color-rose); border-bottom-color: var(--color-rose); text-decoration: none; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main { padding: 2.5rem 0 3rem; }

/* =============================================
   MESSAGE CARDS (occasion/recipient pillar content)
   ============================================= */
.message-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-rose);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.message-card p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--color-text); line-height: 1.55; }
.message-card .copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .75rem;
  background: var(--color-rose-light); color: var(--color-rose-dark);
  border: none; border-radius: 2rem; padding: .4rem 1rem;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.message-card .copy-btn:hover { background: var(--color-rose); color: #fff; }
.message-card .copy-btn.copied { background: var(--color-gold); color: #fff; }

/* =============================================
   ROLE SUMMARY / RATE-CARD STYLE BOXES (advice guides)
   ============================================= */
.highlight-box {
  background: var(--color-rose-light);
  border-left: 5px solid var(--color-rose);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
}
.highlight-box p { margin: 0; font-size: 1.05rem; font-weight: 500; }

.faq-section { margin-top: 1rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; background: var(--color-surface); }
.faq-item h3 { margin: 0 0 .4rem; color: var(--color-rose-dark); font-size: 1rem; }
.faq-item p { margin: 0; color: var(--color-text-muted); font-size: .95rem; }

/* =============================================
   HOMEPAGE
   ============================================= */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-rose-light) 0%, #fff 100%);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.hero h1 { font-size: 2.4rem; margin-top: 0; }
.hero .subtitle { font-family: var(--font-sans); font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

.search-form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; max-width: 500px; margin: 0 auto; }
.search-form input[type=search] { flex: 1; min-width: 220px; padding: .75rem 1rem; border: 2px solid var(--color-rose); border-radius: 8px; font-size: 1rem; outline: none; }
.search-form input[type=search]:focus { border-color: var(--color-plum); }
.search-form button { background: var(--color-rose); color: #fff; border: none; border-radius: 8px; padding: .75rem 1.25rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.search-form button:hover { background: var(--color-rose-dark); }

.section-title { font-size: 1.4rem; color: var(--color-rose-dark); margin: 2rem 0 1rem; border-bottom: 2px solid var(--color-rose-light); padding-bottom: .4rem; }

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.pillar-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; text-align: center; }
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.pillar-card .pillar-icon { font-size: 2rem; margin-bottom: .5rem; }
.pillar-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--color-rose-dark); }
.pillar-card p { font-size: .85rem; color: var(--color-text-muted); margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.post-card h3 a { color: var(--color-rose-dark); }
.post-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

.about-blurb { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }

/* =============================================
   CATEGORY / ARCHIVE PAGE
   ============================================= */
.category-header { margin-bottom: 1.5rem; }
.posts-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.post-list-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-list-item h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.post-list-item h3 a { color: var(--color-rose-dark); }
.post-list-item .excerpt { font-size: .9rem; color: var(--color-text-muted); margin: 0; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #2b1e24; color: #e4d3d8; padding: 2rem 0; margin-top: 3rem; font-size: .9rem; }
.site-footer .footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-copy { color: #b89aa2; }
.footer-nav ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: #e4d3d8; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 6px; font-size: .9rem; color: var(--color-text); }
.pagination .current { background: var(--color-rose); color: #fff; border-color: var(--color-rose); }
.pagination a:hover { border-color: var(--color-rose); color: var(--color-rose); text-decoration: none; }

/* =============================================
   POST NAV
   ============================================= */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav-link { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); min-width: 0; }
.post-nav-link:hover { border-color: var(--color-rose); text-decoration: none; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label { font-size: .78rem; font-weight: 700; color: var(--color-rose); text-transform: uppercase; letter-spacing: .04em; }
.post-nav-title { font-size: .95rem; line-height: 1.4; }

/* =============================================
   RELATED POSTS
   ============================================= */
.related-posts { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.related-posts-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: .75rem 0 0; }
.related-posts-list li a { display: inline-block; padding: .4rem .9rem; background: var(--color-rose-light); color: var(--color-rose-dark); border-radius: 2rem; font-size: .85rem; }
.related-posts-list li a:hover { background: var(--color-rose); color: #fff; text-decoration: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .site-header .site-container { gap: .75rem; }
  .primary-nav ul { gap: 1rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; margin-left: 0; }
}
