/*
Theme Name: Perú Real Store
Theme URI: https://perureal.store
Author: Perú Real Store
Description: Plataforma profesional para productos y servicios legales en Perú.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: peru-real-store
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  --bg:          hsl(210,20%,98%);
  --fg:          hsl(217,19%,12%);
  --card:        hsl(0,0%,100%);
  --card-fg:     hsl(217,19%,12%);
  --primary:     hsl(217,71%,47%);
  --primary-fg:  hsl(0,0%,100%);
  --secondary:   hsl(142,47%,42%);
  --accent:      hsl(32,94%,54%);
  --accent-fg:   hsl(217,19%,12%);
  --muted:       hsl(210,20%,96%);
  --muted-fg:    hsl(217,13%,45%);
  --border:      hsl(217,20%,88%);
  --radius:      0.75rem;
  --shadow-soft: 0 2px 8px -2px rgba(0,0,0,.08),0 4px 16px -4px rgba(0,0,0,.06);
  --shadow-el:   0 4px 16px -2px rgba(0,0,0,.1),0 8px 32px -4px rgba(0,0,0,.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; }

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--muted { background: hsl(210,20%,96%,.4); }
.text-center { text-align: center; }
.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-header p  { font-size: 1.125rem; color: var(--muted-fg); max-width: 40rem; margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: inherit; font-size: .875rem; font-weight: 600;
  padding: .625rem 1.25rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s ease; line-height: 1;
  white-space: nowrap;
}
.btn--lg  { font-size: 1rem; padding: 1rem 2rem; }
.btn--sm  { font-size: .8125rem; padding: .375rem .875rem; }
.btn--primary {
  background: var(--primary); color: var(--primary-fg); border-color: var(--primary);
}
.btn--primary:hover { background: hsl(217,71%,40%); border-color: hsl(217,71%,40%); }
.btn--accent {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}
.btn--accent:hover { background: hsl(32,94%,46%); }
.btn--outline {
  background: transparent; color: var(--fg); border-color: var(--border);
}
.btn--outline:hover { background: var(--muted); }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.site-logo {
  display: flex; align-items: center; gap: .625rem;
  font-size: 1.25rem; font-weight: 700; color: var(--fg);
}
.site-logo .logo-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.site-logo .logo-icon svg { width: 1.375rem; height: 1.375rem; color: #fff; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem 1rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--muted-fg);
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: hsl(217,71%,47%,.08); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
/* mobile */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; border-radius: .5rem; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; color: var(--fg); }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.mobile-menu a {
  display: block; padding: .75rem 1rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--muted-fg);
}
.mobile-menu a:hover { background: var(--muted); color: var(--fg); }
.mobile-menu .mobile-actions { display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: .5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: hsl(217,19%,10%); color: hsl(210,20%,80%);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .site-logo { color: #fff; }
.footer-brand p { color: hsl(210,20%,65%); font-size: .9rem; line-height: 1.7; max-width: 26rem; }
.footer-col h4 { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .875rem; color: hsl(210,20%,65%); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid hsl(217,20%,20%); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8125rem; color: hsl(210,20%,50%); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(248,250,252,.95) 0%, rgba(248,250,252,.90) 50%, rgba(248,250,252,.85) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.hero-content h1 {
  font-size: clamp(2rem,5vw,3.75rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 1.5rem; line-height: 1.1;
}
.hero-content p { font-size: clamp(1rem,2vw,1.25rem); color: var(--muted-fg); margin-bottom: 2.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.categories-grid--bottom { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 1.5rem; max-width: 53rem; margin-left: auto; margin-right: auto; }
.category-card {
  background: var(--card); border-radius: 1rem; padding: 2rem;
  border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: all .3s; cursor: pointer; height: 100%;
}
.category-card:hover { border-color: hsl(217,71%,47%,.3); box-shadow: var(--shadow-el); }
.category-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: .75rem;
  background: hsl(217,71%,47%,.1); color: var(--primary);
  margin-bottom: 1.5rem; transition: all .3s;
}
.category-card:hover .category-card__icon { background: var(--primary); color: #fff; }
.category-card__icon svg { width: 1.75rem; height: 1.75rem; }
.category-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .75rem; transition: color .3s; }
.category-card:hover h3 { color: var(--primary); }
.category-card p { color: var(--muted-fg); font-size: .9rem; line-height: 1.6; flex-grow: 1; margin-bottom: 1.5rem; }
.category-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.category-card__count { font-size: .875rem; color: var(--muted-fg); font-weight: 500; }
.category-card__arrow { color: var(--primary); opacity: 0; transition: all .3s; }
.category-card:hover .category-card__arrow { opacity: 1; transform: translateX(4px); }

/* ============================================================
   PUBLICATION CARDS
   ============================================================ */
.publications-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.pub-card {
  background: var(--card); border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: all .3s;
}
.pub-card:hover { border-color: hsl(217,71%,47%,.3); box-shadow: var(--shadow-el); }
.pub-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.pub-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pub-card:hover .pub-card__img img { transform: scale(1.05); }
.pub-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(248,250,252,.9); backdrop-filter: blur(4px);
  padding: .25rem .75rem; border-radius: 2rem;
  font-size: .75rem; font-weight: 600; color: var(--fg);
}
.pub-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.pub-card__body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; transition: color .3s; line-height: 1.4; }
.pub-card:hover .pub-card__body h3 { color: var(--primary); }
.pub-card__author { display: flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--muted-fg); margin-bottom: 1rem; }
.pub-card__author svg { width: 1rem; height: 1rem; }
.pub-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.pub-card__price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.pub-card__type { font-size: .75rem; color: var(--muted-fg); }
.pub-card__views { display: flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted-fg); margin-top: .75rem; }
.pub-card__views svg { width: .875rem; height: .875rem; }

/* ============================================================
   MINI BLOG CARDS
   ============================================================ */
.blogs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card {
  background: var(--card); border-radius: 1rem; padding: 1.5rem;
  border: 1px solid var(--border); transition: all .3s;
}
.blog-card:hover { border-color: hsl(217,71%,47%,.3); box-shadow: var(--shadow-el); }
.blog-card__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.blog-card__avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: hsl(217,71%,47%,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.blog-card__name { font-size: 1rem; font-weight: 600; }
.blog-card__specialty { font-size: .8125rem; color: var(--muted-fg); }
.blog-card__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: 1.25rem; }
.blog-card__stat { text-align: center; }
.blog-card__stat-val { font-size: 1.125rem; font-weight: 700; color: var(--fg); display: block; }
.blog-card__stat-lbl { font-size: .7rem; color: var(--muted-fg); }

/* ============================================================
   RULES CARDS
   ============================================================ */
.rules-list { display: flex; flex-direction: column; gap: 1rem; max-width: 56rem; margin: 0 auto; }
.rule-card {
  background: var(--card); border-radius: 1rem; padding: 1.5rem;
  border: 1px solid var(--border); display: flex; gap: 1.25rem; align-items: flex-start;
}
.rule-card__icon {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: hsl(217,71%,47%,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.rule-card__icon svg { width: 1.375rem; height: 1.375rem; }
.rule-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .375rem; }
.rule-card p { font-size: .875rem; color: var(--muted-fg); }
.moderation-notice {
  margin-top: 2rem; padding: 1.5rem; background: hsl(217,71%,47%,.05);
  border: 1px solid hsl(217,71%,47%,.2); border-radius: 1rem;
  text-align: center; font-size: .875rem; color: var(--muted-fg);
  max-width: 56rem; margin-left: auto; margin-right: auto;
}
.moderation-notice strong { color: var(--fg); }

/* ============================================================
   PUBLISH FORM
   ============================================================ */
.publish-form {
  background: var(--card); border-radius: 1.25rem; padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-el);
  max-width: 50rem; margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.form-control {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: .9375rem; transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsl(217,71%,47%,.15); }
.form-control::placeholder { color: var(--muted-fg); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color .3s;
}
.upload-area:hover { border-color: hsl(217,71%,47%,.5); }
.upload-area svg { width: 2rem; height: 2rem; color: var(--muted-fg); margin: 0 auto .5rem; }
.upload-area p { font-size: .875rem; color: var(--muted-fg); }
.upload-area small { font-size: .75rem; color: var(--muted-fg); display: block; margin-top: .25rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.hero-about {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(217,71%,47%,.05) 0%, var(--bg) 50%, hsl(142,47%,42%,.05) 100%);
  text-align: center;
}
.hero-about h1 { font-size: clamp(1.75rem,4vw,3rem); font-weight: 800; margin-bottom: 1.5rem; }
.hero-about p { font-size: 1.125rem; color: var(--muted-fg); max-width: 40rem; margin: 0 auto; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mission-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: hsl(217,71%,47%,.1); color: var(--primary); margin-bottom: 1.5rem;
}
.mission-icon svg { width: 2rem; height: 2rem; }
.mission-text h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 700; margin-bottom: 1.5rem; }
.mission-text p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1rem; font-size: 1.0625rem; }
.mission-card {
  background: var(--card); border-radius: 1.25rem; padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-el);
}
.mission-card img { width: 100%; height: 16rem; object-fit: cover; border-radius: .75rem; margin-bottom: 1.5rem; }
.mission-checklist { display: flex; flex-direction: column; gap: .75rem; }
.mission-checklist-item { display: flex; align-items: center; gap: .75rem; }
.mission-checklist-item svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.value-card {
  background: var(--card); border-radius: 1rem; padding: 1.5rem;
  border: 1px solid var(--border); text-align: center;
}
.value-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: .875rem;
  background: hsl(217,71%,47%,.1); color: var(--primary); margin-bottom: 1rem;
}
.value-card__icon svg { width: 1.75rem; height: 1.75rem; }
.value-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.value-card p { font-size: .875rem; color: var(--muted-fg); }
.steps-list { display: flex; flex-direction: column; gap: 2rem; max-width: 44rem; margin: 0 auto; }
.step-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 4rem; height: 4rem; border-radius: 1rem;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.step-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; padding-top: .5rem; }
.step-body p { color: var(--muted-fg); }

/* ============================================================
   EXPLORE PAGE
   ============================================================ */
.explore-header { margin-bottom: 3rem; }
.explore-header h1 { font-size: clamp(1.75rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.explore-header p { font-size: 1.0625rem; color: var(--muted-fg); }
.filters-bar {
  background: var(--card); border-radius: 1.25rem; padding: 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  margin-bottom: 2rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem;
}
.search-wrapper { position: relative; }
.search-wrapper svg { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; color: var(--muted-fg); pointer-events: none; }
.search-wrapper .form-control { padding-left: 2.75rem; }
.results-count { font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.5rem; }
.results-count strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   CATEGORIES PAGE
   ============================================================ */
.categories-page-hero { padding: 5rem 0; background: linear-gradient(135deg,hsl(217,71%,47%,.05),var(--bg)); text-align: center; }
.category-detail { margin-bottom: 4rem; }
.category-detail__header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 2px solid var(--border);
}
.category-detail__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: hsl(217,71%,47%,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.category-detail__icon svg { width: 1.75rem; height: 1.75rem; }
.category-detail__title h2 { font-size: 1.5rem; font-weight: 700; }
.category-detail__title span { font-size: .875rem; color: var(--muted-fg); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-section { min-height: calc(100vh - 4rem); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.login-card {
  background: var(--card); border-radius: 1.5rem; padding: 2.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-el);
  width: 100%; max-width: 28rem;
}
.login-card__logo { text-align: center; margin-bottom: 2rem; }
.login-card__logo .logo-icon { margin: 0 auto .75rem; }
.login-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: .5rem; }
.login-card .subtitle { text-align: center; color: var(--muted-fg); font-size: .9rem; margin-bottom: 2rem; }
.forgot-link { font-size: .8125rem; color: var(--primary); text-align: right; display: block; margin-top: .375rem; }
.forgot-link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: .8125rem; color: var(--muted-fg); }
.register-link { text-align: center; font-size: .875rem; color: var(--muted-fg); margin-top: 1.5rem; }
.register-link a { color: var(--primary); font-weight: 600; }
.register-link a:hover { text-decoration: underline; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .625rem; border-radius: 2rem;
  font-size: .75rem; font-weight: 600;
}
.badge--secondary { background: var(--muted); color: var(--muted-fg); }
.badge--primary { background: hsl(217,71%,47%,.12); color: var(--primary); }
.badge--accent { background: hsl(32,94%,54%,.12); color: hsl(32,94%,40%); }

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .875rem; display: flex; gap: .625rem; align-items: flex-start;
}
.alert--success { background: hsl(142,47%,42%,.08); color: hsl(142,47%,32%); border: 1px solid hsl(142,47%,42%,.2); }
.alert--error   { background: hsl(0,84%,60%,.08);   color: hsl(0,84%,40%);   border: 1px solid hsl(0,84%,60%,.2);   }
.alert svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid     { grid-template-columns: repeat(2,1fr); }
  .publications-grid   { grid-template-columns: repeat(2,1fr); }
  .blogs-grid          { grid-template-columns: repeat(2,1fr); }
  .values-grid         { grid-template-columns: repeat(2,1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .mission-grid        { grid-template-columns: 1fr; }
  .filters-bar         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .categories-grid, .categories-grid--bottom { grid-template-columns: 1fr; }
  .publications-grid { grid-template-columns: 1fr; }
  .blogs-grid        { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .form-row          { grid-template-columns: 1fr; }
  .filters-bar       { grid-template-columns: 1fr; }
  .hero-actions      { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .publish-form { padding: 1.5rem; }
  .login-card { padding: 1.75rem; }
}

/* ============================================================
   WORDPRESS NATIVE
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.entry-content { max-width: 44rem; margin: 2rem auto; padding: 0 1.5rem; }
.entry-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.entry-content p  { margin-bottom: 1rem; color: var(--muted-fg); }
.entry-content a  { color: var(--primary); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.profile-avatar {
  width: 6rem; height: 6rem; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary);
  flex-shrink: 0;
}
.profile-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: hsl(217,71%,47%,.1); color: var(--primary);
  font-size: 1.5rem; font-weight: 700;
}
.profile-stats { display: flex; gap: 2rem; }
.profile-stat { text-align: center; }
.profile-stat__val { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.profile-stat__lbl { font-size: .75rem; color: var(--muted-fg); }

/* ============================================================
   RATINGS
   ============================================================ */
.rating-stars { font-size: 1.25rem; line-height: 1; }
.rating-big   { font-size: 3rem; font-weight: 800; color: var(--fg); }
.review-item {
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.review-item:last-child { border: none; padding-bottom: 0; }
.review-item__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .375rem;
}
.review-item__author { font-size: .875rem; font-weight: 600; }
.review-item__text   { font-size: .8125rem; color: var(--muted-fg); }

/* star picker */
#star-picker { display: flex; gap: .375rem; }
#star-picker label { cursor: pointer; font-size: 1.5rem; line-height: 1; }

/* ============================================================
   PROFILE EDIT SIDEBAR
   ============================================================ */
.profile-edit-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 1.75rem;
}
.profile-edit-card h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.section-label {
  font-size: .8125rem; font-weight: 600; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 1rem;
}
.danger-link {
  font-size: .875rem; color: hsl(0,84%,60%);
  display: block; text-align: center; margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.danger-link:hover { text-decoration: underline; }

/* ============================================================
   PUBLICATION LIST (profile)
   ============================================================ */
.pub-list-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow .2s;
}
.pub-list-item:hover { box-shadow: var(--shadow-soft); }
.pub-list-item__thumb {
  flex-shrink: 0; width: 5rem; height: 5rem;
  border-radius: .75rem; overflow: hidden; background: var(--muted);
}
.pub-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-list-item__body { flex: 1; min-width: 0; }
.pub-list-item__title {
  font-size: .9375rem; font-weight: 600; margin-bottom: .375rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-list-item__actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* Empty state */
.empty-state {
  background: var(--card); border: 2px dashed var(--border);
  border-radius: 1rem; padding: 3rem; text-align: center;
}
.empty-state svg { width: 2.5rem; height: 2.5rem; color: var(--muted-fg); margin: 0 auto .75rem; }
.empty-state p { color: var(--muted-fg); margin-bottom: 1.25rem; }
