/* friend_requests.css — styles for friend_requests.php */

.requests-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.request-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.req-avatar-link {
  flex: 0 0 auto;
  margin-right: 12px;
}

.req-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.req-username {
  font-weight: bold;
  color: #004D40;
  text-decoration: none;
  margin-right: 12px;
}

.req-username:hover {
  text-decoration: underline;
}

.request-item time {
  font-size: 0.8em;
  color: #666;
  margin-right: 12px;
}

.req-actions {
  margin-left: auto;
}

.req-actions button {
  background: #00796B;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 8px;
}

.req-actions button[value="reject"] {
  background: #d32f2f;
}

.req-actions button:hover {
  opacity: 0.9;
}

.req-actions button[value="cancel"] {
  background: #d32f2f;
}

.friend-requests-page main.container{
  max-width: 900px !important;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
}

.friend-requests-page .request-card{
  background: var(--container-bg, #fff);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.friend-requests-page .request-actions{ display:flex; gap:8px; }

/* Friend Requests — keep the main column aligned */
.friend-requests-page main.container{
  max-width: 900px !important;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
}

/* Sections */
.friend-requests-page .fr-section{ margin: 16px 0 24px; }
.friend-requests-page .fr-section h2{
  margin: 0 0 8px; color: var(--heading-color, inherit);
}
.friend-requests-page .fr-empty{
  color: var(--muted-color, #666);
  text-align: center;
  margin: 20px 0;
}

/* Cards */
.friend-requests-page .request-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;
}
.friend-requests-page .req-avatar{
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.friend-requests-page .req-meta{
  font-size: 12px; color: var(--muted-color, #666);
}
.friend-requests-page .request-actions{ display:flex; gap:8px; }

/* Buttons (scoped, won’t affect homepage) */
.friend-requests-page .btn{
  display:inline-block; border:0; cursor:pointer;
  padding:8px 12px; border-radius:8px; font-weight:600; text-decoration:none;
  color:#fff;
}
.friend-requests-page .btn-accept { background:#16a34a; }
.friend-requests-page .btn-accept:hover { filter:brightness(.95); }
.friend-requests-page .btn-decline{ background:#dc2626; }
.friend-requests-page .btn-decline:hover{ filter:brightness(.95); }
.friend-requests-page .btn-cancel { background:#6b7280; }
.friend-requests-page .btn-cancel:hover { filter:brightness(.95); }

/* Small screens */
@media (max-width: 600px){
  .friend-requests-page .request-card{
    grid-template-columns: 40px 1fr;
  }
  .friend-requests-page .request-actions{
    grid-column: 1 / -1;
    justify-self: end;
  }
}
