/* modern.css — community-server visual refresh (overlay, loaded last) */

/* ---------- typography & smoothing ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  letter-spacing: 0.01em;
  line-height: 1.55;
}

/* ---------- cards: softer, rounder, subtle lift ---------- */
.feed-item {
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feed-item:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07), 0 12px 30px rgba(15, 23, 42, 0.10);
}

/* ---------- post photos: rounded corners, natural ratio ---------- */
.activity_content_photos_list {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* ---------- header: subtle blur when sticky ---------- */
.main-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- dropdown menus ---------- */
.dropdown-menu-box {
  border-radius: 0.75rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

/* ---------- PrimeVue buttons & inputs ---------- */
.p-button {
  border-radius: 0.65rem !important;
  transition: box-shadow 0.2s ease, transform 0.12s ease, background-color 0.2s ease;
}
.p-button:not(:disabled):hover { transform: translateY(-1px); }
.p-button:not(:disabled):active { transform: translateY(0); }
.p-inputtext,
.p-password input,
textarea.p-inputtextarea {
  border-radius: 0.65rem !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.p-inputtext:enabled:focus,
.p-password input:focus,
textarea.p-inputtextarea:focus {
  box-shadow: 0 0 0 3px rgba(102, 199, 244, 0.22) !important;
  border-color: #66c7f4 !important;
}

/* ---------- light-theme polish ---------- */
html:not(.dark) .bg-body {
  background-color: #f2f4f8;
}
html:not(.dark) .feed-item {
  background-color: #ffffff;
}
html:not(.dark) .text-main-color {
  color: #1f2430;
}

/* ---------- links ---------- */
.text-color-link { transition: color 0.2s ease; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- subtle scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120, 130, 150, 0.35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 130, 150, 0.55); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- images ---------- */
img { -webkit-user-drag: none; }
