/*
Theme Name: Bluverie
Theme URI: https://example.com/bluverie
Author: Bluverie
Description: A warm, editorial beauty-blog theme with a hero story, category browsing, affiliate "Shop This Story" boxes, and a live search overlay. Every headline, image, product box, and stat is editable from the WordPress admin — no code required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bluverie
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FBFAF3;
  color: #2C2E36;
  font-family: 'Work Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(107,155,210,0.4); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.bl-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.bl-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.bl-form-narrow { max-width: 640px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.bl-header {
  position: sticky; top: 0; z-index: 40;
  background: #6E9FD1;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #5A8FC4;
}
.bl-header-inner {
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bl-logo {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 28px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none; color: #FFFFFF;
}
.bl-logo img { max-height: 40px; width: auto; }
.bl-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.bl-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; flex-wrap: wrap; }
.bl-nav a {
  text-decoration: none; color: #EDF3F9; font-size: 13px;
  letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500;
}
.bl-header-actions { display: flex; align-items: center; gap: 18px; }
.bl-icon-btn {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF;
}
.bl-btn-pill {
  background: #FFFFFF; color: #3B6EA0; border: none; border-radius: 999px;
  padding: 10px 22px; font-size: 13px; letter-spacing: 0.5px; font-weight: 500;
  cursor: pointer; font-family: 'Work Sans', sans-serif; text-decoration: none; display: inline-block;
}

/* ---------- Search overlay ---------- */
.bl-search-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(251,250,243,0.97);
  backdrop-filter: blur(6px);
  display: none; flex-direction: column; align-items: center;
  padding: 100px 24px 24px; overflow-y: auto;
  animation: fadeUp 0.25s ease;
}
.bl-search-overlay.is-open { display: flex; }
.bl-search-inner { width: 100%; max-width: 680px; }
.bl-search-close-row { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.bl-search-close {
  background: none; border: none; cursor: pointer; padding: 8px; color: #2C2E36;
}
.bl-search-field {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 2px solid #2C2E36; padding-bottom: 14px; margin-bottom: 28px;
}
.bl-search-field input {
  flex: 1; border: none; outline: none; background: none;
  font-family: 'Playfair Display', serif; font-size: 26px; color: #2C2E36;
}
.bl-search-label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #5B6472; margin-bottom: 14px;
}
.bl-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-pill {
  border: 1px solid #D7DEE6; border-radius: 999px; padding: 9px 18px; font-size: 14px;
  cursor: pointer; background: #FFFFFF; color: inherit; text-decoration: none; display: inline-block;
}
.bl-pill-soft {
  border-radius: 999px; padding: 9px 18px; font-size: 14px; background: #DCEAF7; color: #2F5E86;
  text-decoration: none; display: inline-block;
}
.bl-search-results .bl-result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid #E3E6EA; cursor: pointer;
  text-decoration: none; color: inherit;
}
.bl-result-row span:first-child { font-size: 16px; }
.bl-result-cat {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #3B6EA0;
  background: #DCEAF7; padding: 4px 10px; border-radius: 999px;
}
.bl-search-empty { font-size: 14px; color: #5B6472; padding: 12px 0; }
.bl-search-trending, .bl-search-related { margin-top: 32px; }
.bl-search-related { margin-top: 32px; }

/* ---------- Buttons / badges ---------- */
.bl-badge {
  display: inline-block; background: #DCEAF7; color: #2F5E86;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
}
.bl-badge-solid {
  display: inline-block; background: #6B9BD2; color: #FFFFFF;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.bl-hero-section { padding: 48px 32px 64px; }
.bl-hero {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 560px;
  display: flex; align-items: flex-end;
  background: linear-gradient(120deg, #DCEAF7, #AFCFEE);
  background-size: cover; background-position: center;
}
.bl-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30,32,38,0.65) 0%, transparent 60%);
}
.bl-hero-content { position: relative; z-index: 1; padding: 40px; max-width: 560px; text-decoration: none; color: inherit; display: block; }
.bl-hero-content h1 {
  font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1.15;
  color: #FFFFFF; margin: 0 0 14px; font-weight: 500;
}
.bl-hero-content p { color: #EDF3F9; font-size: 15px; line-height: 1.6; margin: 0 0 16px; max-width: 480px; }
.bl-hero-link { color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.bl-section { padding: 0 32px 72px; }
.bl-section h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 500; margin: 0 0 28px;
}

/* Trending Now */
.bl-trending-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.bl-trending-item { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.bl-trending-n { font-family: 'Playfair Display', serif; font-style: italic; font-size: 32px; color: #F3E8D7; line-height: 1; }
.bl-trending-cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #3B6EA0; font-weight: 600; }
.bl-trending-title { font-size: 15px; line-height: 1.4; font-weight: 500; }

/* Category grid */
.bl-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bl-cat-card {
  position: relative; border-radius: 20px; overflow: hidden; height: 220px; cursor: pointer;
  transition: transform 0.2s ease; background: linear-gradient(135deg, #DCEAF7, #8FB8E3);
  background-size: cover; background-position: center;
  text-decoration: none; color: inherit; display: block;
}
.bl-cat-card:hover { transform: scale(1.02); }
.bl-cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30,32,38,0.45), transparent 60%);
}
.bl-cat-card-label { position: absolute; left: 22px; bottom: 20px; z-index: 1; }
.bl-cat-card-label .name { font-family: 'Playfair Display', serif; font-size: 22px; color: #FFFFFF; font-weight: 500; }
.bl-cat-card-label .desc { font-size: 12px; color: #EDF3F9; margin-top: 2px; }

/* Latest articles */
.bl-articles-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.bl-articles-head h2 { margin: 0; }
.bl-filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.bl-filter-tab {
  font-size: 13px; padding: 7px 16px; border-radius: 999px; border: 1px solid #D7DEE6;
  color: #495160; cursor: pointer; background: #FFFFFF;
}
.bl-filter-tab.is-active { background: #2C2E36; color: #fff; border-color: #2C2E36; }
.bl-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bl-article-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.bl-article-thumb {
  border-radius: 16px; overflow: hidden; height: 200px; background: linear-gradient(60deg, #DCEAF7, #8FB8E3);
  background-size: cover; background-position: center;
}
.bl-article-cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #3B6EA0; font-weight: 600; }
.bl-article-title { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.3; font-weight: 500; }
.bl-article-excerpt { font-size: 14px; color: #5B6472; line-height: 1.5; }
.bl-article-date { font-size: 12px; color: #6B7280; }

/* Editor's picks */
.bl-picks-section { background: #DCEAF7; padding: 64px 0; }
.bl-picks-tagline { font-size: 14px; color: #3B6EA0; margin: 0 0 28px; }
.bl-picks-row { display: flex; align-items: center; gap: 16px; }
.bl-picks-arrow {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #9DBAD6;
  background: #EDF3F9; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bl-picks-track {
  flex: 1; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 4px;
}
.bl-picks-track::-webkit-scrollbar { height: 6px; }
.bl-pick-card { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.bl-pick-thumb {
  border-radius: 18px; overflow: hidden; height: 340px; background: linear-gradient(100deg, #DCEAF7, #AFCFEE);
  background-size: cover; background-position: center;
}
.bl-pick-kicker { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #3B6EA0; font-weight: 600; }
.bl-pick-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; line-height: 1.3; }

/* ---------- Article (single post) ---------- */
.bl-article { padding: 56px 32px 40px; }
.bl-article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; font-size: 13px; color: #5B6472; flex-wrap: wrap; }
.bl-article h1 { font-family: 'Playfair Display', serif; font-size: 42px; line-height: 1.2; font-weight: 500; margin: 0 0 20px; }
.bl-article-hero {
  border-radius: 24px; overflow: hidden; min-height: 420px; margin-bottom: 32px;
  background: linear-gradient(120deg, #DCEAF7, #8FB8E3); background-size: cover; background-position: center;
}
.bl-disclosure { background: #ECEDF1; border-radius: 12px; padding: 14px 18px; font-size: 13px; color: #495160; line-height: 1.5; margin-bottom: 36px; }
.bl-content { font-size: 18px; line-height: 1.85; color: #2C2E36; }
.bl-content p { margin: 0 0 24px; }
.bl-content a { color: #3B6EA0; font-weight: 600; }
.bl-content blockquote {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; line-height: 1.5;
  color: #2C2E36; border-left: 3px solid #6B9BD2; padding-left: 24px; margin: 40px 0;
}
.bl-content img { border-radius: 16px; margin: 24px 0; }
.bl-shop-box { background: #DCEAF7; border-radius: 20px; padding: 32px; margin: 40px 0; }
.bl-shop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.bl-shop-head h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; margin: 0; }
.bl-shop-head span { font-size: 11px; letter-spacing: 0.5px; color: #5B6472; }
.bl-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-shop-item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.bl-shop-thumb { border-radius: 14px; overflow: hidden; height: 140px; background: linear-gradient(100deg, #DCEAF7, #AFCFEE); background-size: cover; background-position: center; }
.bl-shop-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.bl-shop-price { font-size: 13px; color: #5B6472; }
.bl-shop-cta { font-size: 12px; font-weight: 600; color: #3B6EA0; }
.bl-tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid #E3E6EA; }
.bl-tag-chip { font-size: 12px; padding: 6px 14px; border-radius: 999px; background: #ECEDF1; color: #495160; text-decoration: none; }
.bl-related-section { padding: 24px 32px 72px; }

/* ---------- About page ---------- */
.bl-about { padding: 64px 32px 32px; }
.bl-about h1 { font-family: 'Playfair Display', serif; font-size: 42px; line-height: 1.2; font-weight: 500; margin: 0 0 24px; }
.bl-about-photo {
  border-radius: 24px; overflow: hidden; height: 340px; margin-bottom: 32px;
  background: linear-gradient(120deg, #DCEAF7, #8FB8E3); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.bl-about-photo span { font-family: monospace; font-size: 13px; color: rgba(40,42,50,0.5); }
.bl-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.bl-stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 500; color: #3B6EA0; }
.bl-stat-label { font-size: 13px; color: #5B6472; margin-top: 4px; }

/* ---------- Contact page ---------- */
.bl-contact { padding: 64px 32px 96px; }
.bl-contact h1 { font-family: 'Playfair Display', serif; font-size: 38px; line-height: 1.2; font-weight: 500; margin: 0 0 16px; }
.bl-contact-intro { font-size: 16px; line-height: 1.7; color: #495160; margin: 0 0 40px; }
.bl-form { display: flex; flex-direction: column; gap: 18px; }
.bl-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bl-field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.bl-field label { font-size: 12px; letter-spacing: 0.5px; color: #495160; }
.bl-field input, .bl-field textarea {
  border: 1px solid #D7DEE6; border-radius: 10px; padding: 12px 14px; font-size: 14px;
  outline: none; background: #FFFFFF; font-family: 'Work Sans', sans-serif; width: 100%;
}
.bl-field textarea { resize: vertical; }
.bl-submit {
  align-self: flex-start; background: #2C2E36; color: #FFFFFF; border: none; border-radius: 999px;
  padding: 14px 32px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'Work Sans', sans-serif; margin-top: 8px;
}
.bl-form-notice { border-radius: 10px; padding: 14px 18px; font-size: 14px; margin-bottom: 8px; }
.bl-form-notice.success { background: #DCEAF7; color: #2F5E86; }
.bl-form-notice.error { background: #F7DCDC; color: #8A2F2F; }
.bl-contact-emails { margin-top: 56px; padding-top: 32px; border-top: 1px solid #E3E6EA; display: flex; gap: 48px; flex-wrap: wrap; }
.bl-contact-emails .label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #5B6472; margin-bottom: 6px; }
.bl-contact-emails .value { font-size: 14px; }

/* ---------- Footer ---------- */
.bl-footer { background: #2C2E36; color: #EDF3F9; padding: 64px 32px 32px; margin-top: 48px; }
.bl-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.bl-footer-brand { font-family: 'Playfair Display', serif; font-style: italic; font-size: 26px; margin-bottom: 14px; }
.bl-footer-bio { font-size: 14px; color: #C7D3DD; line-height: 1.6; max-width: 280px; margin: 0; }
.bl-footer-heading { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #A9BAC9; margin-bottom: 16px; }
.bl-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bl-footer-links a, .bl-footer-links span { color: #D7E4EF; font-size: 14px; text-decoration: none; }
.bl-newsletter-row { display: flex; gap: 8px; }
.bl-newsletter-row input { flex: 1; background: #243444; border: 1px solid #5B6472; border-radius: 8px; padding: 10px 12px; color: #EDF3F9; font-size: 13px; outline: none; }
.bl-newsletter-row button { background: #6B9BD2; border: none; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: #FFFFFF; cursor: pointer; }
.bl-footer-bottom { border-top: 1px solid #2A3F52; padding-top: 24px; font-size: 12px; color: #B9C4CE; }

/* ---------- Misc pages (generic page.php, search, 404) ---------- */
.bl-plain-page { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
.bl-plain-page h1 { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 500; }
.bl-plain-page .bl-content { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bl-trending-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-article-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-footer-grid { grid-template-columns: 1fr 1fr; }
  .bl-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .bl-header-inner { padding: 16px 20px; flex-wrap: wrap; }
  .bl-nav ul { gap: 18px; }
  .bl-wrap, .bl-narrow, .bl-form-narrow, .bl-section, .bl-hero-section, .bl-article, .bl-about, .bl-contact { padding-left: 20px; padding-right: 20px; }
  .bl-trending-grid { grid-template-columns: 1fr 1fr; }
  .bl-cat-grid { grid-template-columns: 1fr; }
  .bl-article-grid { grid-template-columns: 1fr; }
  .bl-footer-grid { grid-template-columns: 1fr; }
  .bl-shop-grid { grid-template-columns: 1fr; }
  .bl-stats-grid { grid-template-columns: 1fr; }
  .bl-article h1, .bl-hero-content h1 { font-size: 30px; }
  .bl-hero { min-height: 420px; }
}
