/* notifications.css – Version 2
   • Full styling for notifications.php
   • Ensures avatars are small, circular, and aligned
   • Integrates with existing theme colors
*/

/* Container resets */
main.container {
  padding: 20px;
}

/* Notification list */
ul.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual notification */
.notification-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}
.notification-item.notif-unread {
  background: #e8f5e9;
}

/* Avatar for actor */
.notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Content block */
.notif-content {
  flex: 1;
  font-size: 0.95em;
  color: #333;
}

/* Timestamp */
.notif-time {
  display: block;
  font-size: 0.8em;
  color: #666;
  margin-top: 4px;
}

/* Mark-as-read button */
.notif-mark-read button {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: 12px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .notif-avatar {
    margin-bottom: 8px;
  }
  .notif-mark-read button {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Keep the main column identical to profile/home (900px, centered) */
.notifications-page main.container{
  max-width: 900px !important;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto; /* plays nice if .layout uses flex */
}

/* Optional: tidy cards */
.notifications-page .card{
  background: var(--container-bg, #fff);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
}
.notifications-page h1,
.notifications-page h2{
  color: var(--heading-color, inherit);
  margin: 8px 0;
}

/* Notifications page — keep main column identical to others */
.notifications-page main.container{
  max-width: 900px !important;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
}

/* Cards */
.notifications-page .notif-card{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--container-bg, #fff);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.notifications-page .notif-card.is-read{
  opacity: .75;
}

.notifications-page .notif-avatar{
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.notifications-page .notif-text{ line-height: 1.45; }
.notifications-page .notif-meta{ font-size: 12px; color: var(--muted-color, #666); }

.notifications-page .notif-actions .btn{
  display:inline-block; border:0; cursor:pointer;
  padding:8px 12px; border-radius:8px; font-weight:600; text-decoration:none;
  background: #6b7280; color: #fff;
}
.notifications-page .notif-actions .btn:hover{ filter: brightness(.95); }
.notifications-page .badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#e5e7eb; color:#111; font-size:12px;
}

/* Small screens */
@media (max-width: 600px){
  .notifications-page .notif-card{
    grid-template-columns: 40px 1fr;
  }
  .notifications-page .notif-actions{
    grid-column: 1 / -1;
    justify-self: end;
  }
}
