/*
Theme Name: oopbuy Studio
Theme URI: https://sheetfinds.com/
Author: oopbuy Studio Team
Author URI: https://sheetfinds.com/
Description: A clean, modern SEO-optimized WordPress theme for the oopbuy Studio shopping guide. Mint and lavender palette with magazine-style studio layout, pill-tab categories, and studio-note article cards.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oopbuy-studio
Tags: blog, e-commerce, custom-menu, featured-images, full-width-template, responsive-layout, seo-friendly, three-columns, two-columns
*/

/* ========== DESIGN TOKENS ========== */
:root {
  --color-bg: #f6f4f0;
  --color-surface: #ffffff;
  --color-surface-raised: #ecece6;
  --color-accent: #4fa394;
  --color-accent-dark: #2f7566;
  --color-accent-soft: #d9efea;
  --color-accent-2: #a99cc9;
  --color-accent-2-dark: #7f71a3;
  --color-accent-2-soft: #ebe6f4;
  --color-text: #1f2426;
  --color-text-muted: #6c7378;
  --color-text-faint: #a3a8ab;
  --color-border: #e4e0d8;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 6px 20px rgba(31,36,38,.06);
  --shadow-lg: 0 18px 48px rgba(31,36,38,.1);
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.18s ease;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1a1f22;
    --color-surface: #262d31;
    --color-surface-raised: #2e363b;
    --color-accent: #5fc0b0;
    --color-accent-dark: #4fa394;
    --color-accent-soft: #28413d;
    --color-accent-2: #c9bce8;
    --color-accent-2-dark: #a99cc9;
    --color-accent-2-soft: #39354a;
    --color-text: #f0ede6;
    --color-text-muted: #b1b6b8;
    --color-text-faint: #767c80;
    --color-border: #3a4247;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 6px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 18px 48px rgba(0,0,0,.5);
  }
}

/* ========== BASE ========== */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
h1,h2,h3,h4 { color: var(--color-text); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); letter-spacing: -0.015em; }
h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
::selection { background: var(--color-accent-soft); color: var(--color-text); }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container-narrow { width: min(900px, 92%); margin: 0 auto; }

/* ========== ANNOUNCEMENT BAR ========== */
.announce-bar {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}
.announce-bar span { border-bottom: 1px solid var(--color-accent); padding-bottom: 2px; }

/* ========== HEADER ========== */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark .brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.brand-mark .brand-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-accent-2-dark);
}

.primary-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.primary-nav > a, .primary-nav .nav-item > span, .primary-nav .nav-item > a {
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  cursor: pointer;
}
.primary-nav > a:hover, .primary-nav .nav-item > span:hover, .primary-nav .nav-item > a:hover { color: var(--color-accent-dark); }
.primary-nav > a::after, .primary-nav .nav-item > span::after, .primary-nav .nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--color-accent);
  transition: right var(--transition);
}
.primary-nav > a:hover::after, .primary-nav .nav-item:hover > span::after, .primary-nav .nav-item:hover > a::after { right: 0; }

.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 90;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-item:hover > .nav-dropdown, .nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
}
.nav-dropdown a:hover { background: var(--color-accent-soft); color: var(--color-accent-dark); }

.header-cta { display: flex; gap: 10px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-secondary:hover { background: var(--color-text); color: var(--color-bg); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ========== MOBILE MENU ========== */
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--color-text); }
#mobile-menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav, .header-cta { display: none; }
  #mobile-menu-toggle:checked ~ .masthead .primary-nav,
  #mobile-menu-toggle:checked ~ .masthead .header-cta {
    display: flex; flex-direction: column; width: 100%; align-items: flex-start; gap: 14px; padding-top: 16px;
  }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 6px 12px; min-width: 0; }
}

/* ========== HERO ========== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-2-dark);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.hero h1 { max-width: 900px; margin: 0 auto 1rem; }
.hero-lede {
  max-width: 680px;
  margin: 0 auto 2.2rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--color-accent-soft);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(169,156,201,0.5);
  margin-bottom: 2rem;
}
.hero-mosaic .tile {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-raised);
}
.hero-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .tile:nth-child(2) { aspect-ratio: 4/5; transform: translateY(-10px); }
@media (max-width: 700px) {
  .hero-mosaic { grid-template-columns: 1fr; }
  .hero-mosaic .tile { aspect-ratio: 16/10; }
  .hero-mosaic .tile:nth-child(2) { transform: none; }
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== CATEGORY PILL ROW ========== */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head .eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-2-dark);
  font-size: 1.05rem;
}
.section-head h2 { margin-top: 0.4rem; }
.section-head p { color: var(--color-text-muted); max-width: 620px; margin: 0.6rem auto 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 48px 0;
}
.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pill-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.pill-tab .chip {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--color-accent-soft);
}
.pill-tab:nth-child(even) .chip { background: var(--color-accent-2-soft); }
.pill-tab .arrow { color: var(--color-text-faint); margin-left: 6px; font-weight: 500; }
.pill-tab:hover .arrow { color: var(--color-accent-dark); }

/* ========== STUDIO ARTICLE BODY ========== */
.studio-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 56px clamp(24px, 5vw, 72px);
  box-shadow: var(--shadow-md);
  margin: 48px 0;
}
.studio-article h2 { margin-top: 2.4rem; }
.studio-article h2:first-of-type { margin-top: 0; }
.studio-article h3 { margin-top: 1.6rem; color: var(--color-accent-dark); }
.studio-article p, .studio-article li { color: var(--color-text); font-size: 1.05rem; }
.studio-article ul { padding-left: 1.2rem; }
.studio-article li { margin-bottom: 0.4rem; }
.studio-article a { color: var(--color-accent-dark); border-bottom: 1px dotted var(--color-accent); }
.studio-article a:hover { background: var(--color-accent-soft); }
.studio-article blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ========== STUDIO NOTE ARTICLE CARDS ========== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding: 48px 0;
}
.note-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.note-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--color-accent-2);
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-2);
}
.note-card .inner { padding: 32px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.note-card .num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-accent-2);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.note-card .note-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.note-card .note-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex: 1;
}
.note-card .note-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ========== CTA STRIP ========== */
.cta-strip {
  background: var(--color-accent);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 56px 0;
}
.cta-strip .eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-soft);
  margin-bottom: 1rem;
}
.cta-strip h2 { color: #fff; max-width: 720px; margin: 0 auto 2rem; }
.cta-strip .btn-primary { background: #fff; color: var(--color-accent-dark); }
.cta-strip .btn-primary:hover { background: var(--color-bg); color: var(--color-accent-dark); }
.cta-strip .btn-secondary { color: #fff; border-color: #fff; }
.cta-strip .btn-secondary:hover { background: #fff; color: var(--color-accent-dark); }

/* ========== GUIDE / PAGE ========== */
.page-wrap { padding: 48px 0 72px; }
.guide-crumb {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.guide-crumb a { color: var(--color-text-muted); }
.guide-crumb a:hover { color: var(--color-accent-dark); }
.guide-title-band { text-align: center; padding: 24px 0 40px; }
.guide-title-band .eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-2-dark);
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.guide-title-band h1 { max-width: 820px; margin: 0 auto 1.2rem; }
.guide-title-band .mint-rule {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
}
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
}
.guide-content { font-size: 1.05rem; line-height: 1.7; }
.guide-content h2 { margin-top: 2rem; }
.guide-content h3 { margin-top: 1.4rem; }
.guide-content a { color: var(--color-accent-dark); border-bottom: 1px dotted var(--color-accent); }
.guide-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--color-accent-2);
  background: var(--color-accent-2-soft);
  font-family: var(--font-serif);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sidebar-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  margin: 0 0 0.8rem;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 0.5rem; }
.sidebar-box a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
}
.sidebar-box a:hover { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.sidebar-cta { background: var(--color-accent-2-soft); border-color: var(--color-accent-2); }
.sidebar-cta .btn { display: block; text-align: center; margin-bottom: 8px; }
.sidebar-cta .btn:last-child { margin-bottom: 0; }

.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.related h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.6rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 56px 0 24px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent); margin-bottom: 0.8rem; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--color-bg); opacity: 0.85; font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; color: var(--color-accent); }
.footer-col .brand-name { color: var(--color-bg); font-size: 1.3rem; }
.footer-col .brand-tag { color: var(--color-accent-2); }
.footer-col p { color: var(--color-bg); opacity: 0.75; font-size: 0.95rem; }
.footer-col .footer-cta { display: flex; gap: 10px; margin-top: 1rem; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========== STANDARD PAGE ========== */
.page-standard { background: var(--color-surface); border-radius: var(--radius-lg); padding: 48px clamp(24px, 5vw, 72px); margin-top: 32px; box-shadow: var(--shadow-sm); }
.page-standard h1 { margin-bottom: 1.5rem; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .pill-tab:hover, .note-card:hover, .btn:hover { transform: none; }
}

/* ========== SCREEN-READER ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}
