/* ============================================
   Blog styles — scoped to .blog-page / .blog-post
   Deletable with the rest of the blog/ folder.
   ============================================ */

.blog-page {
  background: #F6F2EB;
  padding: 7rem 1.5rem 6rem;
  min-height: 60vh;
}

@media (max-width: 700px) {
  .blog-page { padding-top: 5rem; }
}

.blog-page__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-page__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.blog-page__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  color: #14120F;
  margin: 0 0 0.5rem;
  letter-spacing: 0.5px;
}

.blog-page__subtitle {
  font-family: 'Nunito Sans', sans-serif;
  color: #6E655B;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

.blog-page__empty {
  font-family: 'Nunito Sans', sans-serif;
  text-align: center;
  color: #6E655B;
  font-size: 1.05rem;
  padding: 3rem 0;
}

.blog-page__empty-wrap {
  text-align: center;
}

/* --- List view --- */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60, 50, 30, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(60, 50, 30, 0.12);
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #efe8db;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.blog-card__date {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  color: #a39580;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #14120F;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.blog-card__excerpt {
  font-family: 'Nunito Sans', sans-serif;
  color: #3A342D;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.blog-card__more {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.92rem;
  color: #9A7B4F;
  font-weight: 600;
}

/* --- Single post --- */
.blog-post {
  background: #F6F2EB;
}

.blog-post__inner {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post__header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-post__date {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  color: #a39580;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 0.75rem;
}

.blog-post__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  color: #14120F;
  line-height: 1.2;
  margin: 0;
}

.blog-post__hero {
  margin: 2rem 0 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(60, 50, 30, 0.1);
}

.blog-post__hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #3a3225;
}

.blog-post__body h2,
.blog-post__body h3,
.blog-post__body h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #14120F;
  font-weight: 500;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post__body h2 { font-size: 1.85rem; }
.blog-post__body h3 { font-size: 1.5rem; }
.blog-post__body h4 { font-size: 1.25rem; }

.blog-post__body p {
  margin: 0 0 1.25rem;
}

.blog-post__body a {
  color: #9A7B4F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post__body a:hover {
  color: #7A6039;
}

.blog-post__body blockquote {
  border-left: 3px solid #c9b48a;
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  color: #3A342D;
  font-style: italic;
}

.blog-post__body ul,
.blog-post__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.blog-post__body li {
  margin-bottom: 0.5rem;
}

.blog-post__body code {
  background: #f1ece1;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.95em;
}

.blog-post__body pre {
  background: #14120F;
  color: #EFE9E0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post__body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.blog-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.blog-post__footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8dfcd;
  text-align: center;
}

.blog-back {
  font-family: 'Nunito Sans', sans-serif;
  color: #9A7B4F;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.blog-back:hover {
  color: #7A6039;
}

/* --- Admin --- */
.blog-admin {
  font-family: 'Nunito Sans', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  color: #14120F;
  min-height: 60vh;
}

.blog-admin__table td:nth-child(3) { white-space: nowrap; }  /* date */
.blog-admin__table td:nth-child(4) { word-break: break-all; }  /* slug */

@media (max-width: 700px) {
  .blog-admin { padding-top: 5rem; }
}

.blog-admin h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.25rem;
  margin: 0 0 1.5rem;
}

.blog-admin__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-admin__actions a,
.blog-admin__actions button {
  font-family: inherit;
}

.blog-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #9A7B4F;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: inherit;
  box-sizing: border-box;
  vertical-align: middle;
  transition: background 0.2s;
}

.blog-btn:hover { background: #7A6039; }

.blog-btn--ghost {
  background: transparent;
  color: #9A7B4F;
  border: 1px solid #c9b48a;
}
.blog-btn--ghost:hover { background: #EFE9E0; color: #7A6039; }

.blog-btn--danger { background: #9a3a2a; }
.blog-btn--danger:hover { background: #7a2c20; }

.blog-btn--ghost-danger {
  background: transparent;
  color: #9a3a2a;
  border: 1px solid #d8a89d;
}
.blog-btn--ghost-danger:hover { background: #fbe6e1; color: #7a2c20; }

.blog-admin__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.blog-admin__table th,
.blog-admin__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.blog-admin__table th {
  background: #EFE9E0;
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-admin__table tr:last-child td { border-bottom: none; }

.blog-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.blog-form__field {
  margin-bottom: 1.5rem;
}

.blog-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.blog-form__help {
  display: block;
  font-size: 0.85rem;
  color: #6E655B;
  margin-top: 0.3rem;
}

.blog-form__input,
.blog-form__textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d8cdb5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #F6F2EB;
  box-sizing: border-box;
}

.blog-form__textarea { resize: vertical; min-height: 320px; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.95rem; line-height: 1.55; }

.blog-form__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.blog-form__actions form { display: inline; }

.blog-flash {
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.blog-flash--ok { background: #e8f3e2; color: #2f5d1e; border: 1px solid #b9d8a5; }
.blog-flash--err { background: #fbe6e1; color: #7a2c20; border: 1px solid #e0a59a; }

.blog-login {
  max-width: 380px;
  margin: 9rem auto 6rem;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  font-family: 'Nunito Sans', sans-serif;
}

.blog-login h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 2rem;
}

.blog-thumb {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
}

/* ============================================================
   Focal-point picker (edit form)
   ============================================================ */
.focal-picker { margin-bottom: 0.75rem; }
.focal-picker.is-empty .focal-picker__stage {
  background: #EFE9E0;
  color: #6E655B;
  font-size: 0.9rem;
  text-align: center;
}
.focal-picker__stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background: #efe8db;
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.focal-picker__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: crosshair;
}
.focal-picker__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9434a;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.12s ease, top 0.12s ease;
  z-index: 2;
}

/* Ripple animation triggered on every click */
.focal-picker__ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c9434a;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: focal-ripple 600ms ease-out forwards;
}
@keyframes focal-ripple {
  0%   { opacity: 0.7; width: 12px; height: 12px; }
  100% { opacity: 0;   width: 70px; height: 70px; }
}
.focal-picker__empty { padding: 1.5rem; font-style: italic; }
.focal-picker__hint {
  font-size: 0.88rem;
  color: #3A342D;
  margin: 0.6rem 0 0;
  max-width: 520px;
}
.focal-picker__hint strong { color: #14120F; }
.focal-picker__reset {
  margin-left: 0.5rem;
  background: none;
  border: 1px solid #c9b48a;
  color: #9A7B4F;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.focal-picker__reset:hover { background: #EFE9E0; color: #7A6039; }
.focal-picker__remove {
  display: block;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.75rem;
  color: #3A342D;
}

@media (max-width: 600px) {
  .blog-admin__table { font-size: 0.9rem; }
  .blog-admin__table th, .blog-admin__table td { padding: 0.6rem 0.5rem; }
  .blog-thumb { width: 50px; height: 32px; }
}

/* ============================================================
   Blog admin — post list (modern card rows)
   ============================================================ */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid #ece4d5;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 1px 3px rgba(60,45,25,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(60,45,25,0.10);
  border-color: #ddd0ba;
}
.post-row__thumb-wrap { flex: 0 0 auto; }
.post-row__thumb {
  width: 118px;
  height: 74px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  box-shadow: 0 3px 10px rgba(60,45,25,0.18);
}
.post-row__thumb--empty {
  background: linear-gradient(135deg, #f0e8db, #e4d9c5);
  box-shadow: inset 0 0 0 1px rgba(60,45,25,0.05);
}
.post-row__main { flex: 1 1 auto; min-width: 0; }
.post-row__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.22;
  color: #14120F;
  margin: 0 0 8px;
}
.post-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Nunito Sans', sans-serif;
}
.post-row__date {
  font-size: 0.78rem;
  color: #a1937c;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-row__slug {
  font-size: 0.8rem;
  color: #9A7B4F;
  text-decoration: none;
  background: #f6efe3;
  padding: 3px 12px;
  border-radius: 999px;
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .15s ease;
}
.post-row__slug:hover { background: #ece0cb; text-decoration: none; }
.post-row__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.post-row__delete { color: #a23e3e; }
.post-row__delete:hover { background: #f7e9e6; border-color: #d8b3ab; color: #8a2f2f; }

@media (max-width: 720px) {
  .post-row { flex-wrap: wrap; gap: 14px; }
  .post-row__thumb { width: 88px; height: 56px; }
  .post-row__actions { width: 100%; justify-content: flex-end; }
}
