/* --- Default Light Theme --- */
:root {
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --primary: #07be90;
  --primary-hover: #059669;
  --color-bg: #f8fafc;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-card-bg: rgba(255, 255, 255, 0.95);
  --color-input-bg: #f8fafc;
  --color-header-bg: rgba(248, 250, 252, 0.85);
  --color-post-bg: #ffffff;
  --color-modal-bg: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}


html {
  scrollbar-gutter: stable; /* Keeps layout perfectly steady when content grows */
}
body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1px;
  overflow-x: hidden;
  overflow-y: scroll; /* Fallback for browsers that don't support scrollbar-gutter */
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  background: var(--color-header-bg); /* <-- handles both light and dark automatically */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #139064);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 1px 1px 1px black;
  box-shadow: 2px 4px 15px rgba(19, 17, 53, 0.25);
  transition: var(--transition);
}

.logo-group:hover .logo-badge {
  transform: scale(1.05);
}
.logo-badge >p{
  margin: 1px;
  padding: 1px;
  height: 75px;
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgb(37, 32, 6);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 5px;
}


/* --- User Avatar Menu & Dropdown --- */
.user-menu {
  position: relative;
  display: inline-block;
}

.avatar-btn {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  outline: none;
}

.avatar-btn:hover .avatar {
  transform: scale(1.05);
}

.avatar-btn .avatar {
  width: 70px;
  height: 70px;
  border: 2px solid var(--color-border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-btn:focus-visible .avatar {
  border-color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -20px;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: fadeIn 0.15s ease-out;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-header {
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.user-handle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 0.4rem 0;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
}

.dropdown-item.text-danger {
  color: #e11d48;
}

.dropdown-item.text-danger:hover {
  background-color: #fee2e2;
}
/* --- Top-Right User Badge (Avatar + Username underneath) --- */


#nav-username {
  display: block;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* --- Single Filter Toggle Button --- */

.btn-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-bg-secondary, #f1f5f9);
  border: 1px solid var(--color-border, #cbd5e1);
  color: var(--color-text-muted, #64748b);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-toggle-pill:hover {
  background-color: var(--color-bg-hover, #e2e8f0);
}

/* ON State */
.btn-toggle-pill.active {
  background-color: var(--primary, #4f46e5);
  border-color: var(--primary, #4f46e5);
  color: #ffffff;
}

.btn-toggle-pill.active .pill-dot {
  background-color: #22c55e; /* Green active indicator */
  transform: scale(1.2);
} 



/* --- Buttons --- */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

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

.btn-outline {
  background: #ffffff;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: #f1f5f9;
}

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

.btn-sm.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- Grid Layout --- */
.layout {
  max-width: 1200px; /* Gives enough space for left sidebar + main feed + right sidebar */
  margin: 16px auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px; /* minmax(0, 1fr) ensures feed stays responsive */
  gap: 1.5rem;
  width: 100%;
}
/* Collapse right sidebar on medium laptops/tablets */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
    max-width: 900px;
  }
  .trends-panel {
    display: none;
  }
}

/* Single column on mobile and small tablets */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
    margin: 8px auto;
  }
  .sidebar, .trends-panel {
    display: none;
  }
}

.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  margin-left: 10px;
  margin-right: 10px;
}
/* ================= REFINED POST CARDS ================= */
.card.post {
  position: relative;
  overflow: visible;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 1;
}

.card.post:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

/* Elevate only the currently open post above all neighboring cards */
.card.post.active-comments {
  border-color: var(--primary);
  box-shadow: 0 12px 30px -4px rgba(7, 190, 144, 0.15);
  z-index: 9999;
  position: relative;
}
/* Update around line 297 */
.card.post.active-comments .comments-section {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-card-bg); /* was #ffffff */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.deacum{
  text-align: end;
  margin-right: 10px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.stat-val {
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- Feed & Post Creation --- */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;   /* Prevents feed column from expanding past grid tracks */
  width: 100%;
}
.main-feed-area {
  position: relative; /* Anchors the absolute composer */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}
.create-post textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.4;
  resize: none;
  min-height: 42px;
  max-height: 240px;
  overflow-y: hidden;
  outline: none;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s, height 0.1s ease;
  padding-right: 32px !important;
}
/* Container to maintain layout flow and prevent layout shift */
/* Container footprint in normal flow */
#create-post-card {
  position: relative;
  z-index: 10;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Float card over feed when typing so it DOES NOT push feed elements down */
#create-post-card.composer-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-card-bg); /* Replaced #ffffff */
  border-color: var(--primary);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 
              0 6px 16px -4px rgba(15, 23, 42, 0.08);
}

.create-post textarea:focus {
  border-color: var(--primary);
  background: var(--color-input-bg); /* Replaced #ffffff */
}
.post-textarea-wrapper {
  position: relative;
  width: 100%;
}
.btn-clear-content {
  position: absolute;
  top: 7px;
  right: 10px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
}

.btn-clear-content:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Unified style for both the <label> photo button and the <button> location button */
.post-action-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
  user-select: none;
}

.post-action-trigger svg {
  display: block;
  stroke: var(--color-text-muted);
  transition: stroke 0.18s ease, transform 0.18s ease;
}

.post-action-trigger:hover {
  background-color: var(--color-border);
  border-color: #cbd5e1;
  color: var(--color-text-main);
}

.post-action-trigger:hover svg {
  stroke: var(--primary);
  transform: scale(1.08);
}

/* Active visual state when location input bar is open */
.post-action-trigger.active {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.post-action-trigger.active svg {
  stroke: #059669;
}

.upload-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
}

.upload-btn-label:hover {
  background-color: #e2e8f0;
  color: var(--color-text-main);
}

.image-preview-wrapper {
  position: relative;
  display: none;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 280px;
  border: 1px solid var(--color-border);
}

.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.remove-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.remove-img-btn:hover {
  background: rgba(239, 68, 68, 0.9);
}

/* --- Posts Stream --- */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.new-entry {
  animation: fadeIn 0.4s ease-out;
}

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

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background-color: #e2e8f0;
  display: block;
}

.author-info h4 {
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.1rem 0;
}
.post-body >p{
  margin: 0;
}
.post-header {
  position: relative;
  display: flex;
  align-items: center;
  gap:12px;
}
/* --- Header Post Action Buttons --- */
.post-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
/* Edit button styling */
.btn-edit-post {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.btn-edit-post,
.btn-delete-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: transparent; /* Removes hardcoded #f8fafc */
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  outline: none;
}

.btn-delete-post {
  color: #ef4444;
  background-color: transparent; /* Removes hardcoded #fef2f2 */
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-edit-post:hover {
  background-color: var(--color-input-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-delete-post:hover {
  background-color: rgba(239, 68, 68, 0.15); /* Soft translucent red instead of bright opaque #fee2e2 */
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}
.post-media {
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #f8fafc;
}

.post-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.post-media img:hover {
  transform: scale(1.01);
}

/* --- Refined Post Footer & Interaction Bar --- */
.post-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0.85rem;
  margin-top: 0.2rem;
  border-top: 1px solid #f1f5f9;
  color: var(--color-text-muted);
}


.interaction {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  margin: 1px;
}
/* Comment Trigger Pill */
.interaction-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.interaction:hover {
  color: var(--primary);
}
.interaction-comment .comment-icon-svg {
  display: block;
  flex-shrink: 0;
  stroke: var(--color-text-muted);
  transition: stroke 0.15s ease, transform 0.15s ease;
}
.interaction-comment:hover {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.interaction-comment .comment-icon-svg {
  stroke: #64748b;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.interaction-comment:hover .comment-icon-svg {
  stroke: var(--primary);
  transform: scale(1.08);
}

/* --- Interactive Comment Section --- */

/* --- Inline Split Like System (Option 3) --- */
/* --- Compact Like Action Button --- */
/* Like Cluster */
.like-group {
  display: inline-flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 3px 8px 3px 5px;
  border-radius: 20px;
  gap: 6px;
  transition: all 0.15s ease;
}
.like-group:hover {
  border-color: #cbd5e1;
}
/* Base button: circular, white background, red border */
.btn-like-action {
  border: 1.5px solid #ef4444 !important; /* Red button border */
  border-radius: 9999px; /* Rounded pill / circle */
  background: transparent;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-like-action.liked {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.08); /* Optional subtle red glow */
}

.btn-like-action:hover {
  background-color: #fff1f2;
}
/* Normal / Unliked state */



/* Heart outline in regular state */
.btn-like-action .heart-icon-svg {
  width: 20px;
  height: 20px;
  stroke: #ef4444 !important; /* Red outline */
  stroke-width: 2px;
  fill: transparent;
  transition: transform 0.15s ease, fill 0.15s ease;
}
/* Liked state: red outline + filled red body */
.btn-like-action.liked .heart-icon-svg {
  stroke: #ef4444 !important;
  fill: #ef4444 !important;
}
.btn-like-action.liked .heart-icon-svg path {
  stroke: #ef4444 !important;
  fill: #ef4444 !important;
}

.btn-like-action:active {
  transform: scale(0.85);
}
/*
@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1); }
  100% { transform: scale(1); }
}*/

/* Count Display */
/* 2. Force tabular (monospace) numerals so '1' takes the exact same width as '8' or '0' */
.like-count-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--color-text-main);
  user-select: none;
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

/* 3. Give the number span an inline-block display and a minimum width so 1 vs 2 digits stay stable */
.like-count {
 font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
  min-width: 1ch;
}
.like-count-display .count-heart-icon {
  width: 22px;
  height: 22px;
  fill: #e11d48;
  flex-shrink: 0;
}
/*========================*/
/* --- Trends --- */
.trends-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trend-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.trend-item .topic {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.trend-item .tag {
  font-weight: 600;
  font-size: 0.9rem;
}

.trend-item .posts-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- Auth Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease-out;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary);
  background: #ffffff;
  border-bottom-color: var(--primary);
}

.modal-content {
  padding: 2rem;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.form-group input {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.auth-feedback {
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: 8px;
  display: none;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-feedback.success {
  display: block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-feedback.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* --- Interactive Comment Section --- */

/* 2. Float the comments box below the post without pushing cards down */
/* Floating overlay comments drawer */
/* Let the comments section live inside the post layout flow */
.comments-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
  animation: fadeIn 0.15s ease-out;
}


/* 3. Give the comments list its own internal scrollbar */
/* Keep internal scroll compact so it never shoots off-screen */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 0.8rem;
  padding-right: 4px;
}
/* Comment auto-expanding textarea styling */
.comment-textarea {
  width: 100%;
  resize: none;
  min-height: 38px;
  max-height: 180px;
  padding: 8px 12px;
  line-height: 1.4;
  overflow-y: hidden;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  transition: border-color 0.15s ease;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--primary, #07be90);
}


.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.comment-bubble {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.comment-time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.comment-text {
  font-size: 0.88rem;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
/* Update around line 697 */
.comment-input:focus {
  border-color: var(--primary);
  background: var(--color-input-bg); /* was #ffffff */
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

.empty-comments, .comments-loading, .comments-error {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.8rem 0;
}
/* --- Comment Delete Button --- */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-delete-comment {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s, background-color 0.15s;
}

.btn-delete-comment:hover {
  opacity: 1;
  color: #e11d48;
  background-color: #fee2e2;
}

.comment-item {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* --- Badges for Admin & Superadmin --- */
.badge-role {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.badge-admin {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-superadmin {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* --- Admin Users Management Modal --- */
.modal-box-large {
  max-width: 760px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.admin-users-search {
  padding: 0.8rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.admin-users-search input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  outline: none;
  background: #ffffff;
}

.admin-users-search input:focus {
  border-color: var(--primary);
}

.admin-users-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.admin-users-table {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem; /* Reduced from 0.8rem 1rem */
  gap: 8px;                /* Keeps actions and text from colliding */
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: box-shadow 0.15s ease;
}


.admin-user-card:hover {
  box-shadow: var(--shadow-sm);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.admin-user-info .avatar {
  width: 38px;
  height: 38px;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrapp;
  line-height: 1.2;
}

.admin-user-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-main);
}

.admin-user-handle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.admin-user-subdetails {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user-subdetails .user-sub-email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.btn-admin-action {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-main);
  transition: all 0.15s ease;
}

/* Forțează culoarea roșie pe butoanele periculoase (Șterge, Revocă Admin) */
.btn-admin-action.text-danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-admin-action.text-danger:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
/* Stiluri de bază pentru mesajele din Inbox Admin */
.admin-message-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-message-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-message-subject {
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.admin-message-sender {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.admin-message-body {
  font-size: 0.9rem;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  width: 100%;
}


/* --- Post Header Actions --- */
.post-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: -2px;
  margin-bottom: 4px;
}

.post-meta-row .deacum {
  margin-right: 0;
  text-align: right;
}

.post-meta-row .post-location-tag {
  padding: 2px 6px;
  font-size: 0.82rem;
  border-radius: 6px;
}
.btn-edit-post,
.btn-delete-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  outline: none;
}
.btn-delete-post svg {
  display: block;
  stroke: #ef4444;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.btn-edit-post:hover {
  background-color: #f1f5f9;
  color: var(--color-text-main);
}
.btn-delete-post:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.btn-delete-post:hover svg {
  stroke: #dc2626;
  transform: scale(1.08);
}
.btn-delete-post:active {
  transform: scale(0.95);
}

/* --- Inline Edit Container --- */
.post-edit-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0.5rem 0;
}
.edit-post-textarea {
  width: 100%;
  background: var(--color-input-bg); /* Înlocuiește #ffffff */
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text-main);
  outline: none;
  resize: vertical;
}

.edit-post-textarea:focus {
  border-color: var(--primary);
}

.edit-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* --- Global Announcement Banner --- */
.announcement-banner {
  box-sizing: border-box;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
  position: relative;
  z-index: 90;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.announcement-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 0.9rem;
  min-width: 0
}

.announcement-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.announcement-text {
  font-weight: 500;
  line-height: 1.4;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-btn-admin, .banner-btn-dismiss {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.banner-btn-admin:hover, .banner-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner-btn-admin.text-danger:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* --- Mobile specific adjustments --- */
@media (max-width: 640px) {
  .announcement-banner {
    padding: 0.5rem 0.75rem;
  }
 
  .announcement-content {
    flex-wrap: wrap; /* On very narrow screens, wraps the text below the tag if necessary */
    gap: 4px 8px;
  }

}
/* --- Comment Actions & Edit Form --- */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-edit-comment {
  background: none;
  border: none;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s, background-color 0.15s;
}

.btn-edit-comment:hover {
  opacity: 1;
  background-color: #e2e8f0;
}

.comment-edit-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.comment-edit-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  outline: none;
  background: #ffffff;
}

.comment-edit-input:focus {
  border-color: var(--primary);
}

.comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-link-action {
  background: none;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 2px 4px;
}

.btn-link-action:hover {
  color: var(--color-text-main);
}

.btn-link-action.font-bold {
  font-weight: 700;
  color: var(--primary);
}

.btn-link-action.font-bold:hover {
  color: var(--primary-hover);
}

/* --- Clickable Author & Filter Banner --- */
/* --- Clickable Author Target --- */
.author-avatar-wrap.post-author-clickable {
  cursor: pointer;
  display: inline-flex;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.author-avatar-wrap.post-author-clickable:hover {
  transform: scale(1.05);
}
.author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

h4.post-author-clickable {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.15s ease;
}

h4.post-author-clickable:hover {
  color: var(--primary);
}

.author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.author-subtext {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.author-subtext.deacum {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: -4px;
  margin-bottom: 0;
}

.author-filter-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.25s ease-out;
}

.author-filter-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.author-filter-info .filter-label {
  color: var(--color-text-muted);
}

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

/* --- User Profile Full-Card View --- */
.user-profile-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

.profile-card-banner {
  height: 80px;
  background: linear-gradient(135deg, #07be90, #5ef0cb);
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-bg);
  font-family: var(--font-main);
  font-weight:800;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.5rem;
  margin-top: -45px;
}

.profile-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background-color: #ffffff;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.profile-card-details {
  padding: 1rem 1.5rem 0.5rem 1.5rem;
}

.profile-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-title-row h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.profile-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-card-stats {
  display: flex;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  background-color: #fafbfd;
}

.profile-stat-box {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  border-right: 1px solid var(--color-border);
}

.profile-stat-box:last-child {
  border-right: none;
}

.profile-stat-box .stat-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.profile-stat-box .stat-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- Profile Photos Gallery --- */
.profile-gallery-container {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gallery-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.gallery-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.gallery-upload-form input[type="text"] {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
}

.gallery-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Responsive Flex Box Container */
.gallery-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 12px); /* 3 per row on laptops */
  max-width: calc(33.333% - 8px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.gallery-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item-body {
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}

.gallery-item-desc {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.35;
  word-break: break-word;
}

.gallery-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  margin-top: 4px;
}

.btn-make-avatar {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-make-avatar:hover {
  text-decoration: underline;
}

.btn-del-photo {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

/* Tablet (2 per row) */
@media (max-width: 900px) {
  .gallery-item {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 6px);
  }
  .about-card{
    display: none;
  }
}

/* Mobile (1 per row) */
@media (max-width: 600px) {
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .logo-badge{
    display: none;
  }
  .brand-name{
    font-size: 1.8rem;
    position:absolute;
    top: 20px;
  }
  .nav-container{
    align-items: baseline;
  }


  .modal-box-large {
    width: 96%;
    max-height: 90vh;
    border-radius: 12px;
    background-color: #059669;
  }

  .admin-modal-header {
    padding: 0.8rem 1rem;
  }

  .admin-users-search {
    padding: 0.6rem 0.8rem;
  }

  .admin-users-body {
    padding: 0.6rem 0.5rem;
  }

  .admin-user-card {
    padding: 0.5rem 0.6rem;
    align-items: center;
  }

  .admin-user-info .avatar {
    width: 34px;
    height: 34px;
  }

  .admin-user-name {
    font-size: 0.85rem;
  }

  .admin-user-handle {
    font-size: 0.75rem;
  }

  .admin-user-subdetails {
    font-size: 0.7rem;
    gap: 6px;
  }

  .admin-user-subdetails .user-sub-email {
    max-width: 120px;
  }

  .admin-user-actions {
    margin-left: 6px;
    gap: 4px;
  }

  .btn-admin-action {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}

/* --- Lightbox Full-Screen Viewer --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  z-index: 2010;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
}

/* Cursor pointer indicator for gallery cards */
.gallery-item-img {
  cursor: zoom-in;
}

/* --- Nav Search Bar & Dropdown --- */
.nav-search-wrapper {
  position: relative;
  flex: 0 1 340px;
  margin: 0 1rem;
}

.nav-search-input-box {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  transition: all 0.2s ease;
}
.nav-search-input-box:focus-within {
  background-color: var(--color-input-bg); /* înlocuiește #ffffff */
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 190, 144, 0.15);
}

.nav-search-icon {
  font-size: 0.85rem;
  margin-right: 6px;
  color: var(--color-text-muted);
}

#nav-user-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.88rem;
  color: var(--color-text-main);
}

.nav-search-clear {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.nav-search-clear:hover {
  color: var(--color-text-main);
}

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 500;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.15s ease-out;
}

.nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease;
}

.nav-search-item:last-child {
  border-bottom: none;
}

.nav-search-item:hover {
  background-color: #f8fafc;
}

.nav-search-item .avatar {
  width: 38px;
  height: 38px;
}

.nav-search-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-search-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-item-handle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.nav-search-item-location {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.nav-search-empty, .nav-search-loading {
  padding: 0.85rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .nav-search-wrapper {
    flex: 1;
    margin: 0 0.5rem;
  }
}

/* --- Post Location Input Bar --- */
.post-location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 5px;
}

.post-location-bar .post-location-icon {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
#post-link-bar{
  margin-bottom: 10px;
}

.post-location-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: var(--color-text-main);
  flex: 1;
  width: 100%;
}

.btn-clear-loc {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.btn-clear-loc:hover {
  color: #ef4444;
}

/* Post Card Location Badge */
/* Post Card Location Badge */
.post-location-tag {
  background: none;
  border: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  width: fit-content;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.post-location-tag:hover {
  background-color: #e0f2fe;
  color: #0369a1;
  text-decoration: underline;
}
/* To this: */
.locbtn {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0;
}

/* --- Share Button in Post Footer --- */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;


}

.btn-share:hover {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-share:disabled {
  opacity: 1;
  color: #16a34a; /* Subtle green when "Link copiat!" is active */
  cursor: default;
}

/* --- Share Popover System --- */
.share-wrapper {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.share-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  z-index: 50;
  animation: fadeIn 0.15s ease-out;
}

.share-opt-btn {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background-color 0.15s ease;
  width: 100%;
}

.share-opt-btn:hover {
  background-color: #f1f5f9;
} 
.btn-share .share-icon-svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-share:hover .share-icon-svg {
  transform: translateY(-1px);
}

/* --- Inline Hashtags in Posts --- */
.post-tag-inline {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 4px;
  display: inline;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.post-tag-inline:hover {
  background-color: #ede9fe;
  color: var(--primary-hover);
  text-decoration: underline;
}
/* --- Clickable URLs in Posts --- */
.post-link-inline {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all; /* Prevents long URLs from overflowing cards on mobile */
  transition: color 0.15s ease;
}

.post-link-inline:hover {
  color: var(--primary-hover);
}

.trend-item:hover .tag {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Quick Trending Tags Bar (All Screens) --- */
/* --- Quick Trending Tags Bar (All Screens) --- */

.trending-tags-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px 14px;
  margin: 0 10px 1px 10px; /* Matches card side gutters */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.tags-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;   /* Keeps label intact while pills scroll */
}

.tags-scroll-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  min-width: 0;      /* Crucial: allows child to scroll instead of widening container */
  flex: 1;           /* Take remaining space without expanding past it */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.tags-scroll-container::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--color-text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.tag-pill:hover {
  background: #ede9fe;
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.tag-pill.active {
  background: var(--primary);
  color: #ffffff;
}

/* --- Centered Confirmation Modal --- */
.confirm-modal-box {
  max-width: 380px;
  text-align: center;
  padding: 1.5rem;
}

.confirm-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.confirm-modal-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.confirm-modal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.confirm-modal-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 0.75rem;
}

.confirm-modal-actions .btn {
  flex: 1;
}

.btn-danger-action {
  background-color: #e11d48;
}

.btn-danger-action:hover {
  background-color: #be123c;
}
/* ================= UI/UX POLISH ADDITIONS ================= */

/* --- 1. Shimmer Skeleton Loader --- */
.skeleton-card {
  pointer-events: none;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}

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

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.skeleton-line-title {
  width: 140px;
  height: 16px;
  margin-bottom: 6px;
}

.skeleton-line-sub {
  width: 80px;
  height: 12px;
}

.skeleton-line-w90 { width: 90%; }
.skeleton-line-w75 { width: 75%; }
.skeleton-line-w50 { width: 50%; }

.skeleton-image {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  margin-top: 6px;
}

/* --- 2. Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-text-main);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 5px solid var(--primary);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.toast-error {
  border-left-color: #ef4444;
}

.toast.toast-info {
  border-left-color: #3b82f6;
}

.toast-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast.toast-hide {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- 3. Refined Mobile Responsiveness --- */
@media (max-width: 600px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  
  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .nav-container {
    padding: 0.6rem 0.8rem;
    gap: 8px;
  }

  /* Prevent automatic iOS zoom on text inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea {
    font-size: 16px !important;
  }

  .post-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-like-action {
    min-width: 28px;
    min-height: 28px;
  }
}

/* ================= NOTIFICATION BELL & DROPDOWN ================= */
.notif-menu {
  position: relative;
  display: inline-block;
}

.notif-bell-btn {
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  color: var(--color-text-main);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  background: var(--color-card-bg); /* was #ffffff */
  transition: all 0.2s ease;
  padding: 0;
}

.notif-bell-btn:hover {
  background-color: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -50px;
  width: 330px;
  max-height: 430px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 250;
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.notif-dropdown.active {
  display: flex;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: #fafbfd;
}

.notif-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
}

.mark-all-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}

.mark-all-btn:hover {
  text-decoration: underline;
}

.notif-list {
  overflow-y: auto;
  max-height: 360px;
}

.notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background-color: #f8fafc;
}

.notif-item.unread {
  background-color: #ecfdf5;
}

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 0.82rem;
  color: var(--color-text-main);
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  display: block;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .notif-dropdown {
    right: -75px;
    width: 290px;
  }
  .nav-container{
    align-items:end;
  }
  /* 1. Global root scale bump */
  html {
    font-size: 16px;
  }

  /* 2. Main post content readability */
  .post-body {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  /* 3. Post author & header text */
  .author-info h4 {
    font-size: 1.05rem;
  }

  .author-subtext {
    font-size: 0.85rem;
  }

  .author-subtext.deacum {
    font-size: 0.82rem;
  }

  /* 4. Comments font size */
  .comment-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .comment-author {
    font-size: 0.92rem;
  }

  /* 5. Interaction counts and buttons */
  .like-count,
  .interaction-comment,
  .btn-share {
    font-size: 0.88rem;
  }

}
/* ================= COMPACT MOBILE POST FOOTER (iPhone SE & under 400px) ================= */
@media (max-width: 400px) {
  .post-footer {
    gap: 8px;
    padding-top: 0.65rem;
    justify-content: space-between;
  }

  /* 1. Tighten the like button pill */
  .like-group {
    padding: 2px 6px 2px 4px;
    gap: 4px;
  }

  .btn-like-action {
    width: 24px;
    height: 24px;
  }

  .like-count {
    font-size: 0.78rem;
  }

  /* 2. Compact comments pill: shrink padding */
  .interaction-comment {
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .interaction-comment .comment-label {
    display: none;
  }
  /* 3. Compact share button: shrink padding and drop auto margin */
  .btn-share {
    margin-left: 0;
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  /* 4. Hide long word labels on tiny screens, keeping only icons and numbers */
  .btn-share .share-label {
    display: none;
  }
}

/* --- Showcase Container --- */
/* --- Showcase Container --- */
.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.showcase-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.mock-showcase-card .mock-action {
  cursor: default;
  opacity: 0.85;
  min-width: 50px;
}

.mock-showcase-card .author-avatar-wrap,
.mock-showcase-card .post-author {
  cursor: default;
}
/* --- Rich Link Preview Card --- */
.post-link-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.link-card-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.link-card-content {
  padding: 12px 14px;
}

.link-card-domain {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: lowercase;
  display: inline-block;
  margin-bottom: 4px;
}

.link-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.link-card-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.composer-link-preview {
  margin-top: 10px;
  position: relative;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card, #ffffff);
}

.composer-link-preview .post-link-card {
  margin: 0;
  border: none;
  box-shadow: none;
}

.btn-remove-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}

.btn-remove-preview:hover {
  background: rgba(0, 0, 0, 0.85);
}
/* Image preview container relative positioning */
/*
#image-preview-container {
  position: relative;
  display: inline-block;
  margin-top: 10px;
} */

/* Translucent dark overlay with centered spinner and label */
/* Ensure the preview container bounds the overlay */
#image-preview-box {
  position: relative;
  overflow: hidden;
}

/* Translucent dark overlay with centered spinner and label */
.image-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10;
  backdrop-filter: blur(2px);
}

/* CSS spinner */
.upload-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--primary, #07be90);
  border-radius: 50%;
  animation: uploadSpin 0.8s linear infinite;
}

@keyframes uploadSpin {
  to {
    transform: rotate(360deg);
  }
}
.btn-install-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary, #07be90);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(7, 190, 144, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-install-app:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
/* Base wrapper */
.pwa-install-wrapper {
  text-align: right;
  width: 100%;
  max-width: 1140px;
  margin: 6px auto 2px auto; /* Small top margin, minimal bottom margin */
  padding: 0 16px;
  box-sizing: border-box;
}
/* 1. Reduce top spacing on the main layout container */
.layout {
  margin-top: 0.5rem !important; /* Pulls the entire grid up */
  padding-top: 0 !important;
}
/* Mobile screen optimization */
@media (max-width: 768px) {
  
  .layout {
    margin-top: -8px !important;
  }

  .pwa-install-wrapper {
    margin: 4px auto 0 auto !important;
    padding: 0 12px !important;
  }
  /* Ensure the feed area or composer doesn't push down with big default margins */
  .main-feed-area > :first-child,
  #create-post-card {
    margin-top: 4px !important;
  }
}
/* 1. Global compact padding for buttons */
.btn {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Small button variant (.btn-sm) used on Publică, action pills, etc. */
.btn.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* 2. Compact padding for composer triggers (Foto, Locație, Link) */
.create-post .post-action-trigger {
  padding: 6px 8px;
  gap: 4px;
  font-size: 0.82rem;
}

/* 3. Extra-tight padding on mobile to save maximum row space */
@media (max-width: 768px) {
  .btn {
    padding: 8px 10px;
  }

  .btn.btn-sm,
  #btn-publish {
    padding: 6px 10px;
  }

  .create-post .post-action-trigger {
    padding: 6px 6px;
    gap: 4px;
  }
}
@media (max-width: 768px) {
  /* 1. Reduce side padding on the outer layout container */
  .layout {
    padding-left: 6px !important;
    padding-right: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. Expand the main feed column to use available width */
  .main-feed-area,
  .feed-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 3. Trim horizontal margins and inner padding on all cards */
  .card,
  .create-post-card,
  .post,
  .mock-showcase-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding: 12px 10px !important; /* Tightens internal card breathing room */
    box-sizing: border-box !important;
  }

  /* 4. Keep the install wrapper aligned with the widened cards */
  .pwa-install-wrapper {
    padding-left: 6px !important;
    padding-right: 18px !important;
  }
}