/* ===== CSS Variables (matching main site) ===== */
:root {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --text: #1c1917;
  --text-muted: #78716c;
  --accent: #0d0d0d;
  --accent-soft: #e7e5e4;
  --white: #ffffff;
  --red: #dc2626;
  --green: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 960px;
  --nav-height: 60px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Blog Navigation ===== */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-soft);
  min-height: var(--nav-height);
}

.blog-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 16px;
}

.blog-nav-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  z-index: 91;
}

/* Hamburger button - hidden on desktop */
.blog-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
  padding: 4px 8px;
  line-height: 1;
  z-index: 91;
}

.blog-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.blog-nav-link {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-nav-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.blog-nav-link.active {
  color: var(--white);
  background: var(--accent);
}

.blog-nav-link--add {
  color: var(--green);
  font-weight: 600;
}

.blog-nav-link--add:hover {
  color: var(--green);
  background: #dcfce7;
}

.blog-nav-link--add.active {
  color: var(--white);
  background: var(--green);
}

.blog-nav-back {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.blog-nav-back:hover { color: var(--accent); }

.blog-nav-back-mobile {
  display: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 18px;
  border-top: 1px solid var(--accent-soft);
  margin-top: 8px;
}

/* Mobile: hamburger menu */
@media (max-width: 700px) {
  .blog-nav-hamburger { display: block; }
  .blog-nav-back { display: none; }
  .blog-nav-back-mobile { display: block; }

  .blog-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 90;
  }

  .blog-nav-links.open { right: 0; }

  .blog-nav-link {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .blog-nav-back-mobile {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }
}

/* ===== Main Content ===== */
.blog-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: calc(100vh - var(--nav-height));
}

/* ===== Password Overlay ===== */
.pw-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pw-overlay.hidden { display: none; }

.pw-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: pwSlideIn 0.3s ease;
}

@keyframes pwSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pwShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pw-card.shake { animation: pwShake 0.4s ease; }

.pw-icon { font-size: 3rem; margin-bottom: 12px; }

.pw-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.pw-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pw-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: inherit;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.pw-input:focus { border-color: var(--accent); }

.pw-identity { margin-top: 20px; }

.pw-identity-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pw-identity-options {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pw-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--accent-soft);
  border-radius: 20px;
  transition: all 0.2s;
}

.pw-radio:hover { border-color: var(--accent); }
.pw-radio:has(input:checked) {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.pw-radio input { display: none; }

.pw-submit {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.pw-submit:hover { background: #292524; }

.pw-error {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--red);
  min-height: 20px;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease;
  cursor: pointer;
}

.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
.toast--info { background: var(--accent); }

.toast--out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 40px 0 32px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== Calendar Grid ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .calendar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .calendar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .calendar-grid { grid-template-columns: 1fr; } }

/* ===== Day Card ===== */
.day-card {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.day-card--empty {
  opacity: 0.5;
  cursor: default;
  border-style: dashed;
}

.day-card--empty:hover {
  transform: none;
  box-shadow: none;
}

.day-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-size: 2rem;
  color: var(--text-muted);
  text-decoration: none;
}

.day-card--add:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.day-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
}

.day-card__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-soft);
}

.day-card__body {
  padding: 14px 16px;
}

.day-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.day-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.day-card__location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.day-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

.day-card__author {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Post Detail (Timeline / Feed Style) ===== */
.post-detail {
  animation: fadeIn 0.3s ease;
  max-width: 680px;
  margin: 0 auto;
}

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

/* Day navigation bar */
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.post-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.post-nav__btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.post-nav__btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.post-nav__center {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feed card */
.feed-card {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.feed-card__cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
}

.feed-card__header {
  padding: 24px 28px 0;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.feed-card__badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.feed-card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feed-card__location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.feed-card__author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--accent-soft);
}

.feed-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.feed-card__author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.feed-card__content {
  padding: 24px 28px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.feed-card__content p { margin-bottom: 1em; }
.feed-card__content img { max-width: 100%; border-radius: var(--radius-sm); margin: 1em 0; }
.feed-card__content h2, .feed-card__content h3 { margin: 1.5em 0 0.5em; }
.feed-card__content ul, .feed-card__content ol { margin: 0.5em 0 1em; padding-left: 1.5em; }

.feed-card__gallery {
  padding: 0 28px 24px;
}

.feed-card__gallery-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feed-card__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}

.feed-card__gallery-item {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--bg-alt);
}

.feed-card__gallery-item:hover { transform: scale(1.03); }

.feed-card__video {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.feed-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 28px 16px;
  flex-wrap: wrap;
}

.feed-card__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--accent-soft);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.feed-card__action-btn:hover { background: var(--accent-soft); color: var(--accent); }

/* Timeline day strip */
.timeline-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline-strip::-webkit-scrollbar { display: none; }

.timeline-day {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.timeline-day:hover { border-color: var(--accent); color: var(--accent); }
.timeline-day--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.timeline-day--has-post { border-color: var(--green); }

.timeline-day__num { font-size: 0.85rem; font-weight: 700; }

@media (max-width: 600px) {
  .feed-card__header { padding: 20px 16px 0; }
  .feed-card__content { padding: 16px; font-size: 1rem; }
  .feed-card__gallery { padding: 0 16px 16px; }
  .feed-card__actions { padding: 0 16px 16px; flex-wrap: wrap; }
  .feed-card__title { font-size: 1.2rem; }
  .post-nav__btn { padding: 8px 14px; font-size: 0.8rem; }
  .timeline-strip { gap: 6px; padding: 4px 0 16px; }
  .timeline-day { width: 44px; height: 44px; }
}

/* ===== Gallery ===== */
.gallery-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--bg-alt);
}

.gallery-item:hover { transform: scale(1.03); }

.video-item {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.hidden { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ===== Add / Edit Form ===== */
.form-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-section h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-input:focus { border-color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ===== File Upload ===== */
.upload-zone {
  border: 2px dashed var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-alt);
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--white);
}

.upload-zone__icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone__text { font-size: 0.9rem; color: var(--text-muted); }
.upload-zone__formats { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.upload-zone input { display: none; }

/* Mobile: camera buttons row */
.upload-actions {
  display: none;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.upload-actions.visible { display: flex; }

.upload-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
  min-width: 100px;
}

.upload-action-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.upload-action-btn__icon { font-size: 1.2rem; }

@media (max-width: 600px) {
  .upload-zone { padding: 24px 16px; }
  .upload-zone__icon { font-size: 1.5rem; }
  .upload-zone__text { font-size: 0.85rem; }
  .upload-actions.visible { display: flex; }
  .upload-action-btn { padding: 14px 12px; font-size: 0.82rem; }
}

/* ===== Upload Previews ===== */
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.upload-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Progress Bar ===== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ===== Public Toggle ===== */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: var(--accent-soft);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}

.toggle-switch.on { background: var(--green); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.on::after { transform: translateX(20px); }

/* ===== Submit Button ===== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #292524;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Quill Editor ===== */
.editor-container {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.editor-container .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--accent-soft);
  background: var(--bg-alt);
}

.editor-container .ql-container {
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  min-height: 250px;
}

.editor-container .ql-editor {
  min-height: 250px;
  line-height: 1.7;
}

/* ===== Comments ===== */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--accent-soft);
}

.comments-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--accent-soft);
}

.comment:last-child { border-bottom: none; }

.comment__author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.comment__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}

.comment__content {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.comment-form select {
  padding: 10px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  outline: none;
}

.comment-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.comment-form input:focus,
.comment-form select:focus { border-color: var(--accent); }

.comment-form button {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-form button:hover { background: #292524; }
.comment-form button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state__icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state__title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state__text { font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .blog-nav-inner { gap: 8px; }
  .blog-nav-brand { font-size: 0.8rem; }
  .blog-nav-link { padding: 6px 12px; font-size: 0.78rem; }
  .blog-nav-back { font-size: 0.75rem; }

  .blog-main { padding: 24px 16px 60px; }

  .post-detail__content { font-size: 1rem; }

  .comment-form { flex-direction: column; }
  .comment-form input { min-width: auto; }

  /* Mobile form */
  .form-section { padding: 0 4px; }
  .form-section h1 { font-size: 1.3rem; }
  .form-input { font-size: 1rem; padding: 14px 16px; } /* Larger tap targets */
  .btn-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { width: 40px; height: 40px; font-size: 2rem; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .pw-card { padding: 32px 24px; }
  .pw-input { font-size: 1rem; padding: 16px; }
  .pw-submit { padding: 16px; }
}

/* ===== Utility ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
