/* ==========================================
   MICROBLOG — Warm Editorial Journal
   ========================================== */

/* --- Custom Properties --- */
:root {
  --bg: #FAF8F5;
  --card-bg: #FFFFFF;
  --text: #2C2825;
  --accent: #C4654A;
  --accent-soft: #E8D5CF;
  --sage: #8B9E8B;
  --meta: #8A8380;
  --border: #EDE8E3;
  --shadow: 0 2px 20px rgba(44, 40, 37, 0.06);
  --shadow-hover: 0 4px 28px rgba(44, 40, 37, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 640px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #A8503A;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ==========================================
   HERO BANNER
   ========================================== */

.site-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px 20px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 240px;
  width: 85%;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 4px 16px rgba(44, 40, 37, 0.10));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.02);
}

.hero-logo.hidden {
  display: none;
}


/* ==========================================
   MAIN CONTENT & TIMELINE
   ========================================== */

.main-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ==========================================
   MEMO CARD
   ========================================== */

.memo-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;

  /* Animation — startet unsichtbar */
  opacity: 0;
  transform: translateY(20px);
}

.memo-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

@media (hover: hover) {
  .memo-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
  }

  .memo-card.visible:hover {
    transform: translateY(-1px);
  }
}

/* --- Meta (Datum) --- */
.memo-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--meta);
  letter-spacing: 0.02em;
}

.memo-meta-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* --- Content --- */
.memo-content {
  font-size: 0.95rem;
  line-height: 1.72;
  word-break: break-word;
  overflow-wrap: break-word;
}

.memo-content strong {
  font-weight: 600;
}

.memo-content em {
  font-style: italic;
}

.memo-content a {
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.memo-content a:hover {
  text-decoration-color: var(--accent);
}

.memo-content br + br {
  display: block;
  content: "";
  margin-top: 0.4em;
}

.memo-content .inline-tag {
  color: var(--sage);
  font-weight: 500;
  font-size: 0.88em;
}

/* Markdown code blocks */
.memo-content .md-codeblock {
  background: var(--border);
  padding: 12px;
  border-radius: var(--radius-xs);
  overflow-x: auto;
  font-size: 0.85em;
  margin: 8px 0;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  line-height: 1.5;
}

.memo-content .md-inline-code {
  background: var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
}

/* Markdown lists */
.memo-content ul {
  margin: 8px 0;
  padding-left: 24px;
}

.memo-content li {
  list-style: disc;
  margin-bottom: 2px;
}


/* --- Tags --- */
.memo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease;
}

.tag-badge:hover {
  background: #ddc4bb;
}


/* ==========================================
   IMAGE GRID
   ========================================== */

.memo-images {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Base grid */
.image-grid {
  display: grid;
  gap: 3px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* 1 image */
.image-grid--1 {
  grid-template-columns: 1fr;
}

/* 2 images */
.image-grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 images: 1 large left + 2 stacked right */
.image-grid--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.image-grid--3 .image-thumb:first-child {
  grid-row: 1 / 3;
}

/* 4+ images: 2x2 */
.image-grid--multi {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Thumbnail link */
.image-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--border);
  cursor: zoom-in;
}

.image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 37, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .image-thumb:hover::after {
    background: rgba(44, 40, 37, 0.06);
  }

  .image-thumb:hover .image-thumb__img {
    transform: scale(1.03);
  }
}

/* Aspect ratio container */
.image-thumb__ratio {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 default */
}

.image-grid--1 .image-thumb__ratio {
  padding-top: 56.25%; /* 16:9 for single images */
}

.image-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* "+N more" overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 40, 37, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

/* Image load error */
.image-thumb__img.error {
  opacity: 0;
}

.image-thumb.has-error {
  background: var(--border);
}

.image-thumb.has-error::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238A8380' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0022.5 18.75V5.25A2.25 2.25 0 0020.25 3H3.75A2.25 2.25 0 001.5 5.25v13.5A2.25 2.25 0 003.75 21z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}


/* ==========================================
   VIDEO PLAYER
   ========================================== */

.memo-videos {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.video-player {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-sm);
}

.video-wrapper.has-error {
  background: var(--border);
  padding: 24px;
  text-align: center;
}

.video-error {
  color: var(--meta);
  font-size: 0.85rem;
}


/* ==========================================
   SKELETON LOADER
   ========================================== */

.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.skeleton-meta,
.skeleton-line,
.skeleton-image {
  border-radius: var(--radius-xs);
  background: linear-gradient(
    90deg,
    var(--border) 0%,
    #f5f0eb 40%,
    var(--border) 80%
  );
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-meta {
  width: 140px;
  height: 14px;
  margin-bottom: 16px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-line--full {
  width: 100%;
}

.skeleton-line--3q {
  width: 75%;
}

.skeleton-line--half {
  width: 50%;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  margin-top: 12px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


/* ==========================================
   STATUS MESSAGES
   ========================================== */

.status-message {
  text-align: center;
  padding: 60px 20px;
}

.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.status-message.error .status-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C4654A' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z'/%3E%3C/svg%3E");
}

.status-message.empty .status-icon {
  background: #e8ede8;
}

.status-message.empty .status-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238B9E8B' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z'/%3E%3C/svg%3E");
}

.status-text {
  font-size: 0.95rem;
  color: var(--meta);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ==========================================
   LOAD MORE BUTTON
   ========================================== */

.load-more-container {
  text-align: center;
  padding: 32px 0 16px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}

.load-more-btn:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.75;
}

.load-more-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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


/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 0.78rem;
  color: var(--meta);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--meta);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}


/* ==========================================
   PHOTOSWIPE OVERRIDES
   ========================================== */

.pswp {
  --pswp-bg: rgba(44, 40, 37, 0.92);
}

.pswp__button--close,
.pswp__button--arrow--prev,
.pswp__button--arrow--next {
  color: #fff;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

/* Small phones */
@media (max-width: 380px) {
  :root {
    --header-height: 56px;
  }

  .header-title {
    font-size: 1.3rem;
  }

  .memo-card {
    padding: 18px;
  }

  .memo-content {
    font-size: 0.9rem;
  }

  .image-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .image-grid--3 .image-thumb:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

/* Tablets and up */
@media (min-width: 640px) {
  .hero-logo {
    max-width: 340px;
  }

  body {
    font-size: 16px;
  }

  .main-content {
    padding: 32px 24px 64px;
  }

  .timeline {
    gap: 24px;
  }

  .memo-card {
    padding: 28px;
  }

  .header-title {
    font-size: 1.65rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-logo {
    max-width: 520px;
  }

  .main-content {
    padding-top: 40px;
  }
}


/* ==========================================
   UTILITIES
   ========================================== */

[hidden] {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .memo-card {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================
   ADMIN BAR
   ========================================== */

.admin-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 20px;
  letter-spacing: 0.02em;
}

.admin-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.admin-bar-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7cff7c;
  border-radius: 50%;
}

.admin-bar-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.admin-bar-link:hover {
  color: #fff;
}


/* ==========================================
   ADMIN: CARD TOOLBAR
   ========================================== */

.is-admin .memo-card {
  position: relative;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.memo-card:hover .admin-toolbar,
.memo-card.is-editing .admin-toolbar {
  opacity: 1;
}

.admin-toolbar-actions {
  display: flex;
  gap: 4px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--meta);
  transition: all 0.15s ease;
}

.admin-btn svg {
  width: 16px;
  height: 16px;
}

.admin-btn:hover {
  background: var(--border);
  color: var(--text);
}

.admin-btn:active {
  transform: scale(0.93);
}

.admin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Drag handle */
.admin-btn--drag {
  cursor: grab;
}

.admin-btn--drag:active {
  cursor: grabbing;
}

/* Edit */
.admin-btn--edit:hover {
  background: #e8f0e8;
  color: var(--sage);
}

/* Pin */
.admin-btn--pin:hover {
  background: #fef3e8;
  color: #d4942a;
}

.admin-btn--pin.active {
  background: #fef3e8;
  color: #d4942a;
}

/* Delete */
.admin-btn--delete:hover {
  background: #fce8e5;
  color: #c0392b;
}


/* ==========================================
   ADMIN: PIN BADGE
   ========================================== */

.memo-card.is-pinned {
  border-color: #e8d5a0;
  box-shadow: 0 2px 20px rgba(212, 148, 42, 0.08);
}

.memo-card.is-pinned::before {
  content: "Angepinnt";
  position: absolute;
  top: -1px;
  right: 16px;
  background: #d4942a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px 3px;
  border-radius: 0 0 4px 4px;
}

.is-admin .memo-card.is-pinned::before {
  top: -1px;
}


/* ==========================================
   ADMIN: INLINE EDIT
   ========================================== */

.memo-card.is-editing {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(139, 158, 139, 0.15), var(--shadow);
}

.admin-edit-container {
  margin: 4px 0;
}

.admin-edit-textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-edit-textarea:focus {
  border-color: var(--sage);
}

.admin-edit-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.admin-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-edit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-edit-btn--save {
  background: var(--sage);
  color: #fff;
}

.admin-edit-btn--save:hover:not(:disabled) {
  background: #7a8e7a;
}

.admin-edit-btn--cancel {
  background: var(--border);
  color: var(--meta);
}

.admin-edit-btn--cancel:hover:not(:disabled) {
  background: #ddd7d0;
}

.admin-edit-btn--delete {
  background: #c0392b;
  color: #fff;
}

.admin-edit-btn--delete:hover:not(:disabled) {
  background: #a93226;
}

.admin-edit-hint {
  font-size: 0.72rem;
  color: var(--meta);
  opacity: 0.6;
  margin-left: auto;
}


/* ==========================================
   ADMIN: DATE INPUT
   ========================================== */

.admin-editable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
}

.admin-editable:hover {
  border-bottom-color: var(--meta);
}

.admin-date-input {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 4px 8px;
  border: 1px solid var(--sage);
  border-radius: var(--radius-xs);
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.admin-date-input:disabled {
  opacity: 0.5;
}


/* ==========================================
   ADMIN: CONFIRM DIALOG
   ========================================== */

.admin-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  background: #fce8e5;
  border-radius: var(--radius-sm);
  border: 1px solid #f0c0b8;
}

.admin-confirm-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #c0392b;
  flex: 1;
}


/* ==========================================
   ADMIN: DRAG & DROP
   ========================================== */

.memo-card.is-dragging {
  opacity: 0.4;
}

.admin-drop-indicator {
  position: fixed;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  z-index: 1000;
  pointer-events: none;
  transition: top 0.1s ease;
  box-shadow: 0 0 8px rgba(196, 101, 74, 0.4);
}

.admin-drop-indicator::before,
.admin-drop-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.admin-drop-indicator::before {
  left: -5px;
}

.admin-drop-indicator::after {
  right: -5px;
}


/* ==========================================
   ADMIN: MEDIA CONTROLS
   ========================================== */

.image-thumb,
.video-wrapper {
  position: relative;
}

.admin-media-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
}

.admin-media-delete svg {
  width: 14px;
  height: 14px;
}

.image-thumb:hover .admin-media-delete,
.video-wrapper:hover .admin-media-delete {
  opacity: 1;
}

.admin-media-delete:hover {
  background: #c0392b;
}

.admin-media-delete:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.admin-upload-wrapper {
  margin-top: 8px;
}

.admin-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--meta);
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-upload-btn:hover:not(:disabled) {
  border-color: var(--sage);
  color: var(--sage);
  background: rgba(139, 158, 139, 0.05);
}

.admin-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ==========================================
   ADMIN: TOAST NOTIFICATIONS
   ========================================== */

.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px;
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.admin-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-toast.success {
  background: var(--sage);
  color: #fff;
}

.admin-toast.error {
  background: #c0392b;
  color: #fff;
}
