/* ============================================================
   Imaginisce | Crafting, Scrapbooking & Creative DIY Blog
   Style Sheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rose:      #c8476b;
  --rose-dark: #a33356;
  --plum:      #7b4f8a;
  --amber:     #e8a020;
  --bg:        #fdf8f5;
  --surface:   #fff;
  --border:    #ecddd5;
  --text:      #2d2023;
  --muted:     #7a6068;
  --radius:    10px;
  --shadow:    0 2px 14px rgba(0,0,0,0.08);
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui:   system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1.1em; }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Site Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--rose);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--rose);
  color: var(--rose);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--rose);
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero Banner ---------- */
.hero {
  background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem 3.5rem;
}

.hero h1 { color: #fff; margin-bottom: 0.6rem; }

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section--alt { background: #fef3ec; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 { margin-bottom: 0.4rem; }

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Post Card Grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.post-card__img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.post-card__body {
  padding: 1.25rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.8rem;
}

.post-card__tag {
  background: #f3e5f5;
  color: var(--plum);
  padding: 0.15rem 0.55rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
}

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--rose); text-decoration: none; }

.post-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose);
}
.read-more::after { content: ' →'; }

/* ---------- Featured Post ---------- */
.featured-post {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

.featured-post__img {
  min-height: 320px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.featured-post__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.featured-post__body h2 { margin-bottom: 0.75rem; font-size: 1.55rem; }
.featured-post__body h2 a { color: var(--text); }
.featured-post__body h2 a:hover { color: var(--rose); text-decoration: none; }
.featured-post__body p { color: var(--muted); margin-bottom: 1.2rem; }

/* ---------- Article / Blog Post Page ---------- */
.article-hero {
  background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
  color: #fff;
}

.article-hero h1 { color: #fff; max-width: 780px; margin: 0 auto 0.8rem; }
.article-meta {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  opacity: 0.85;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.article-content {
  padding: 3rem 1.25rem;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--plum);
  font-size: 1.4rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--rose-dark);
}

.article-content ul,
.article-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.1em;
}

.article-content li { margin-bottom: 0.35em; }

.article-content blockquote {
  border-left: 4px solid var(--rose);
  background: #fef3ec;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.article-content .tip-box {
  background: #f3e5f5;
  border: 2px solid #c8a8d8;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.article-content .tip-box strong { color: var(--plum); }

.related-links {
  background: #fff7fb;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
}

.related-links h2 {
  margin: 0 0 0.7rem;
  color: var(--rose-dark);
  font-size: 1.2rem;
}

.related-links p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.related-links ul {
  margin: 0;
  padding-left: 1.35rem;
}

.related-links li {
  margin-bottom: 0.55rem;
}

.topic-links {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.topic-links li {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.topic-links a {
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 700;
}

.topic-links a:hover {
  color: var(--rose);
  text-decoration: none;
}

/* ---------- Post Emoji Placeholder Images ---------- */
.post-img-placeholder {
  background: linear-gradient(135deg, #f0d8e8 0%, #ddc8ea 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 0;
}

.post-hero-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 1.5rem;
}

/* ---------- Author Box ---------- */
.author-box {
  background: #fef3ec;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.author-info h4 { font-family: var(--font-ui); font-size: 1rem; margin-bottom: 0.2rem; }
.author-info p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Post Navigation ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 2px solid var(--border);
  padding-top: 2rem;
}

.post-nav > div {
  min-width: 0;
}

.post-nav a {
  display: block;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  border: 2px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
  overflow-wrap: anywhere;
}
.post-nav a:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }
.post-nav a strong { display: block; color: var(--text); font-size: 0.95rem; margin-top: 0.25rem; }
.post-nav__next { text-align: right; }
.post-nav__next a { text-align: right; }

/* ---------- Category Tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 30px;
  transition: border-color 0.15s, color 0.15s;
}
.tag:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }

/* ---------- Newsletter / CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-strip p { opacity: 0.88; margin-bottom: 1.5rem; }

.cta-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.1rem;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.cta-form input:focus { outline: 3px solid var(--amber); }

/* ---------- About / Contact / Static Pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { opacity: 0.88; max-width: 560px; margin: 0.6rem auto 0; }

.page-content {
  padding: 3rem 1.25rem;
}

.page-content h2 {
  color: var(--plum);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.page-content .related-links h2 {
  color: var(--rose-dark);
  margin: 0 0 0.7rem;
}

/* ---------- Contact Form ---------- */
.contact-form { max-width: 600px; margin: 2rem auto 0; }

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: #e8f5e9;
  border: 2px solid #81c784;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  color: #2e7d32;
  font-family: var(--font-ui);
}

/* ---------- Privacy / Legal ---------- */
.legal-content h2 { color: var(--plum); margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-content h3 { color: var(--rose-dark); margin-top: 1.25rem; }
.legal-content ul { padding-left: 1.6rem; margin-bottom: 1em; }

/* ---------- Site Footer ---------- */
.site-footer {
  background: #2d2023;
  color: #c9b0b8;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-brand .logo-name { color: #f0c0d0; font-size: 1.3rem; }
.footer-brand .logo-tagline { color: #9a7a84; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #f0c0d0;
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #c9b0b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #4a3038;
  padding-top: 1.2rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #9a7a84;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.35rem; }

/* ---------- Sidebar (future use placeholder) ---------- */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- AdSense placeholder zones ---------- */
.ad-slot {
  background: #f7efe8;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 3px solid var(--rose);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.1rem;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__img { min-height: 200px; font-size: 4rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; }
  .related-links { padding: 1.15rem 1.1rem; }

  .page-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 1rem 2rem; }
}
