/*
Theme Name: Linda Greene Author Theme
Theme URI: https://lindagreene.com
Author: Linda Greene
Author URI: https://lindagreene.com
Description: A soft, elegant author theme featuring Great Vibes typography, a blush palette, and dedicated pages for About, Blog, and Novels Gallery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: linda-greene-theme
Tags: blog, custom-menu, featured-images, post-thumbnails, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Blush Palette
   ============================================================ */
:root {
  --color-blush:        #f7d6d0;  /* primary blush / background accent */
  --color-blush-light:  #fdf0ee;  /* very light blush, page bg */
  --color-blush-mid:    #f0b8ae;  /* deeper blush, hover states */
  --color-rose:         #c97b84;  /* accent / links */
  --color-rose-dark:    #a85c66;  /* active / pressed */
  --color-cream:        #fdf8f6;  /* main page background */
  --color-text:         #3c2a2d;  /* primary dark text */
  --color-text-muted:   #8a6b6e;  /* secondary / meta text */
  --color-border:       #e8c8c4;  /* subtle dividers */
  --color-white:        #ffffff;
  --font-display:       'Great Vibes', cursive;
  --font-body:          'Lato', sans-serif;
  --font-heading:       'Cormorant Garamond', serif;
  --max-width:          1100px;
  --content-width:      720px;
  --radius:             6px;
  --shadow:             0 2px 16px rgba(60, 42, 45, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}

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

a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-rose-dark); text-decoration: underline; }

ul, ol { padding-left: 1.5em; }
ul li, ol li { margin-bottom: 0.35em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1.2em; }

blockquote {
  border-left: 4px solid var(--color-blush-mid);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--color-blush-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

code, pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--color-blush-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
code { padding: 0.15em 0.45em; }
pre { padding: 1.2em 1.5em; overflow-x: auto; margin-bottom: 1.2em; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-area {
  flex: 1;
  padding: 3rem 0;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-blush);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(60, 42, 45, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-branding { text-align: center; }

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--color-rose);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-title a:hover { color: var(--color-rose-dark); text-decoration: none; }

.site-description {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ============================================================
   HERO BANNER (front page)
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--color-blush-light) 0%, var(--color-blush) 60%, var(--color-blush-mid) 100%);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--color-rose);
  margin-bottom: 0.4em;
}

.hero-banner .tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--color-rose);
  color: var(--color-white);
  padding: 0.65em 1.8em;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--color-rose-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-rose);
  color: var(--color-rose);
  margin-left: 0.75rem;
}
.btn-outline:hover {
  background: var(--color-rose);
  color: var(--color-white);
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.main-navigation {
  background: var(--color-blush-light);
  border-bottom: 1px solid var(--color-border);
}

.main-navigation .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
}

.main-navigation li { position: relative; }

.main-navigation li a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  color: var(--color-rose);
  background: var(--color-blush);
  text-decoration: none;
}

/* Dropdown */
.main-navigation li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  flex-direction: column;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation li ul a { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-rose);
  color: var(--color-rose);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    display: none;
    border-top: 1px solid var(--color-border);
  }
  .main-navigation ul.toggled { display: flex; }
  .main-navigation li ul { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* ============================================================
   POSTS / BLOG LOOP
   ============================================================ */
.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(60,42,45,0.12); }

.post-card .post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-body { padding: 1.5rem; }

.post-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.post-meta a { color: var(--color-rose); }

.post-card-body h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.post-card-body h2 a { color: var(--color-text); }
.post-card-body h2 a:hover { color: var(--color-rose); text-decoration: none; }

.post-excerpt { color: var(--color-text-muted); font-size: 0.95rem; }

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-rose);
}

/* Single post */
.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.entry-content { max-width: 100%; }
.entry-content p:last-child { margin-bottom: 0; }
.post-featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.post-navigation a {
  font-weight: 700;
  color: var(--color-rose);
  font-size: 0.9rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
@media (max-width: 700px) {
  .about-hero { grid-template-columns: 1fr; }
}
.about-photo img {
  border-radius: 50%;
  width: 320px;
  max-width: 100%;
  border: 6px solid var(--color-blush);
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.about-intro h1 { margin-bottom: 0.5rem; }
.about-intro .subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-rose);
  margin-bottom: 1.25rem;
}

.about-section {
  margin-bottom: 3rem;
  padding: 2rem 2.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.about-section h2 {
  font-size: 1.6rem;
  color: var(--color-rose);
  border-bottom: 2px solid var(--color-blush);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   NOVELS GALLERY PAGE
   ============================================================ */
.novels-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.novels-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  color: var(--color-rose);
}

.novels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.novel-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.novel-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(60,42,45,0.13); }

.novel-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--color-blush-light);
}
.novel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.novel-card:hover .novel-cover img { transform: scale(1.04); }

.novel-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-rose);
  text-align: center;
  padding: 1rem;
  background: linear-gradient(160deg, var(--color-blush-light), var(--color-blush));
}

.novel-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--color-rose);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: 50px;
}

.novel-info {
  padding: 1.2rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.novel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}
.novel-series {
  font-size: 0.78rem;
  color: var(--color-rose);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.novel-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.novel-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.novel-link-btn {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 0.4em 0.75em;
  background: var(--color-blush);
  color: var(--color-rose-dark);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.18s, color 0.18s;
  border: 1px solid var(--color-blush-mid);
}
.novel-link-btn:hover {
  background: var(--color-rose);
  color: var(--color-white);
  text-decoration: none;
  border-color: var(--color-rose);
}
.novel-link-btn.primary {
  background: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
}
.novel-link-btn.primary:hover {
  background: var(--color-rose-dark);
  border-color: var(--color-rose-dark);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-rose);
  border-bottom: 2px solid var(--color-blush);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-blush-light);
  font-size: 0.92rem;
}
.widget ul li:last-child { border-bottom: none; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.45em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-rose);
  transition: background 0.18s, color 0.18s;
}
.pagination a:hover { background: var(--color-blush); text-decoration: none; }
.pagination .current {
  background: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1.2rem 0; border-bottom: 1px solid var(--color-blush-light); }
.comment-author { font-weight: 700; color: var(--color-rose); }
.comment-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.comment-body p { margin: 0.5rem 0 0; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-blush);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.65; }

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--color-blush);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--color-blush); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   UTILITY / ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important; clip-path: none; color: #21759b;
  display: block; font-size: .875rem; font-weight: 700;
  height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; max-width: calc(100% + 4rem); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .about-photo img { width: 220px; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .novels-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
