/* Bento Design System — tokens & foundations (Neon Dark Mode) */
:root {
  /* Palette mapping to your spec */
  --color-surface: #0B0C10;       /* Glavno ozadje aplikacije */
  --color-card: #141526;          /* Sekundarno ozadje (kartice, paneli, meniji) */
  --color-border: #252841;        /* Robovi in ločilne črte */

  --color-secondary: #00D2FF;     /* Primarni poudarki / linki */
  --color-primary: #FF007F;       /* Interakcija / všečki */
  --color-focus: #8A2BE2;         /* Komentarji / obvestila / fokus */

  --color-text: #FFFFFF;          /* Primarno besedilo */
  --color-text-muted: #9499C3;    /* Sekundarno besedilo */

  /* Keep the semantic tokens for success/warn/danger as-is or subtle dark variants */
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;

  --radius-sm: 4px;
  --radius-md: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--color-surface);
  color: var(--color-text);
}

/* Splash component styles using Neon Dark palette */
.splash {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-surface);
  color: var(--color-text);
}
.splash__header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20,21,38,0.8), rgba(20,21,38,0));
  border-bottom: 1px solid var(--color-border);
}
.splash__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}
.splash__logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0,210,255,0.35));
}
.splash__image {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
}
.splash__image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 0 2px rgba(0,210,255,0.10), 0 0 40px rgba(138,43,226,0.15);
}
.splash__promo {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(20,21,38,0.72); /* uses card tone */
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0,210,255,0.22), inset 0 0 0 1px rgba(138,43,226,0.35);
}
.splash__promo a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}
.splash__promo a:hover {
  color: var(--color-focus);
  text-decoration: underline;
}
.promo-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--color-focus);
  color: #fff;
}
.splash__footer {
  text-align: center;
  color: var(--color-text-muted);
  padding: 12px 16px 20px;
  border-top: 1px solid var(--color-border);
}

/* Player promo overlay for in-cycle splashes */
.player-promo-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6; /* above images, below controls if needed */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(20,21,38,0.75);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(0,210,255,0.25), inset 0 0 0 1px rgba(138,43,226,0.35);
}
.player-promo-overlay a {
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.player-promo-overlay a:hover { color: var(--color-focus); text-decoration: underline; }
.player-promo-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--color-focus);
  color: #fff;
}

h1, h2, h3 {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-3); }

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.label-caps {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.muted { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Layout shell */
.site-header {
  flex-shrink: 0;
}

main.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4);
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.site-footer {
  flex-shrink: 0;
  border-bottom: none;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.logo {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.site-header nav a {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Buttons */
.btn,
button.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: #f5c4a8;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn.secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn.secondary:hover { background: #6d8fb0; }

.btn.danger,
button.danger {
  background: var(--color-danger);
  color: #fff;
}

.btn.danger:hover,
button.danger:hover { background: #b91c1c; }

.btn:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.bento-card,
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.bento-card h3,
.card h3 {
  margin-bottom: var(--space-3);
}

/* Bento grid */
.bento-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(12, 1fr);
}

.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

.bento-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.bento-hero h1 { margin-bottom: 0; }

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.empty-state p { margin-bottom: var(--space-4); }

/* Event cards (dashboard) */
.event-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.event-card-header {
  flex: 1;
}

.event-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-secondary);
}

textarea { resize: vertical; }

/* Alerts */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.alert.error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert.success {
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Auth */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.auth-card input {
  margin-top: var(--space-1);
}

/* Key-value list */
.kv {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kv li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.kv li:last-child { border-bottom: none; }

.kv code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--color-surface);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* QR code */
.qr-code {
  max-width: 180px;
  background: #fff;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Thumbs grid */
.thumbs {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}

.thumbs img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* Frame picker (guest upload) */
.frame-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.frame-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  min-width: 88px;
  max-width: 120px;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-xs);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.frame-option:hover {
  border-color: var(--color-secondary);
}

.frame-option.is-selected {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(128, 161, 193, 0.35);
}

.frame-option img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.frame-option-label {
  text-align: center;
  line-height: 1.2;
}

/* Frame admin list */
.frame-admin-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-4);
}

.frame-admin-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.frame-admin-preview {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-card);
  border: 1px solid var(--color-border);
}

.frame-admin-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.frame-add-form {
  margin-bottom: var(--space-3);
}

/* Pending comments (admin) */
.pending-comments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.pending-comments li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.pending-comments img {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pending-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Gallery header */
.event-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.event-header-card .event-meta {
  flex: 1;
}

.event-description {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Gallery grid */
.bento-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.bento-gallery .bento-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-card .note {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.photo-card .actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
}

.like-btn,
.comment-toggle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.like-btn:hover {
  background: var(--color-primary);
}

.comment-toggle:hover {
  background: var(--color-focus);
}

.like-btn.liked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.photo-card .comments {
  display: none;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.photo-card .comments.is-open {
  display: block;
}

.comment {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) 0;
  font-size: var(--text-sm);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.comment-form input {
  font-size: var(--text-sm);
}

/* Legacy list (kept for compatibility) */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: var(--space-2) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Responsive */
@media (max-width: 720px) {
  .bento-span-4,
  .bento-span-6,
  .bento-span-8 {
    grid-column: span 12;
  }

  .bento-gallery .bento-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .form-grid,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .bento-hero,
  .event-header-card {
    flex-direction: column;
    align-items: stretch;
  }

  .event-header-card .btn {
    width: 100%;
    text-align: center;
  }
}


/* Player (fullscreen slideshow) */
.player-stage {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: #000;
  display: block;
}
.player-stage .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
}
.player-stage .slide.visible {
  opacity: 1;
}
.player-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  color: rgba(255,255,255,0.95);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.85);
  z-index: 3;
  max-width: 90vw;
}
.player-overlay .player-line { display: block; }
.player-overlay .player-line#player-status { font-family: var(--font-mono); font-size: 16px; opacity: 0.95; }
.player-overlay .player-line#player-note { font-size: 20px; font-weight: 600; }
.player-overlay .player-line#player-likes { font-size: 18px; }
.player-overlay .player-line:not(:empty) { margin-top: 2px; }
.player-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.player-controls .btn,
.player-controls .btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.player-controls .btn:hover {
  background: rgba(255,255,255,0.2);
}

/* Player comments */
.player-comments { 
  margin-top: 10px; 
  max-width: 90vw; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 8px;
}
.player-comments .comment-line {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
.player-comments .comment-author { font-weight: 700; opacity: 0.98; margin-right: 8px; }

/* Social feed (Instagram/FB-style) */
.feed .feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.post-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.post-header { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.post-media img { width: 100%; height: auto; display: block; background: transparent; }
.post-note { padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.post-actions { padding: 12px 16px; display: flex; gap: 12px; border-top: 1px solid var(--color-border); }
.post-actions .like-btn.liked { filter: saturate(1.2); }
.post-card .comments { padding: 0 16px 16px 16px; }
.post-card .comments .comment { background: var(--color-surface); border: 1px solid var(--color-border); padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
.post-card .comments .comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.post-card .comments .comment-form input[type="text"] { width: 100%; }

/* Feed: make name/comment inputs light with dark text for better readability */
.feed .comment-form input[type="text"],
.feed .comment-form input[type="password"],
.feed .comment-form input[type="number"],
.feed .comment-form textarea,
.feed .comment-form select {
  background: #f6f8fb; /* light field */
  color: #0b0c10;      /* dark text */
  border: 1px solid #c9cfdd; /* subtle border visible on dark cards */
}
.feed .comment-form input::placeholder,
.feed .comment-form textarea::placeholder {
  color: #6b7280; /* medium gray for placeholders */
}
.feed .comment-form input:focus-visible,
.feed .comment-form textarea:focus-visible,
.feed .comment-form select:focus-visible {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,210,255,0.25);
}

@media (max-width: 720px) {
  .feed .feed-header { flex-direction: column; align-items: stretch; }
}

/* Floating hearts */
.hearts-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.hearts-layer .heart {
  position: absolute;
  left: 0; top: 0;
  color: #ff6b8a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  will-change: transform, opacity;
  animation: heart-float var(--dur, 1200ms) ease-out forwards;
  animation-delay: var(--delay, 0ms);
  font-size: var(--size, 28px);
  opacity: 0;
}
@keyframes heart-float {
  0%   { transform: translate(var(--x, 0px), var(--y, 0px)) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(calc(var(--x, 0px) + var(--dx, 0px)), calc(var(--y, 0px) - var(--dy, 180px))) scale(1.6); opacity: 0; }
}


/* Desktop layout for feed: ensure full post (image to "Objavi") fits the viewport */
@media (min-width: 1024px) {
  .post-list { gap: var(--space-8); }

  .post-card {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(380px, 520px);
    grid-template-rows: auto 1fr; /* header + main area */
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
  }

  .post-header {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .post-media {
    grid-column: 1;
    grid-row: 2;
    background: #000; /* black letterbox instead of white */
  }
  .post-media img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show the whole image */
  }

  .post-body {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    overflow: auto; /* internal scroll for long comments */
    padding: 12px 16px; /* move padding inside right column */
  }

  /* Tweak spacings inside right column on desktop */
  .post-note { padding: 0 0 12px 0; }
  .post-actions { padding: 0 0 12px 0; border-top: none; border-bottom: 1px solid var(--color-border); }
  .post-card .comments { padding: 12px 0 0 0; }

  /* Make comment list take remaining space so the form stays visible */
  .post-card .comments .comment-list {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0; /* needed for flex children to shrink properly */
  }
  .post-card .comments .comment-form {
    flex: 0 0 auto;
    margin-top: 12px;
  }
}

/* Share menu */
.share-menu {
  position: absolute;
  z-index: 2000;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 6px;
}
.share-menu .share-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
}
.share-menu .share-item:hover {
  background: #f6f7f8;
}
.share-menu .share-sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}


/* Share menu: icon-only row for social networks */
.share-icons {
  display: flex;
  gap: 8px;
  padding: 6px 6px 0 6px;
  justify-content: space-between;
}
.share-item.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.share-item.icon-only svg {
  width: 22px;
  height: 22px;
}
/* Brand accents (color only; we keep neutral background) */
.share-item.icon-only.fb { color: #1877F2; }
.share-item.icon-only.ig { color: #E1306C; }
.share-item.icon-only.tt { color: #000000; }

/* Hover/focus background for icon buttons */
.share-item.icon-only:hover,
.share-item.icon-only:focus {
  background: #f1f3f5;
}
