/* Join Requests Management Drawer Styles */
/* Follows Act 1 Stylesheet Standards */

/* ===== DRAWER PANEL ===== */
.join-requests-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10002;
}

/* ===== SCROLLABLE CONTENT AREA ===== */
.join-requests-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #FFFFFF;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 10px 40px 10px;
}

/* ===== DRAWER TITLE ===== */
.join-requests-title {
  font-size: 22px;
  font-weight: 800;
  color: #708090; /* Slate grey - Act 1 standard */
  margin: 0 0 30px;
  text-align: center;
  letter-spacing: -0.5px;
  padding: 0 16px;
}

/* ===== REQUESTS LIST ===== */
.join-requests-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px;
}

/* ===== REQUEST CARD ===== */
.join-request-card {
  background: #F5F5F5; /* Grey container - Act 1 standard */
  border: 1px solid #D3D3D3;
  border-radius: 12px;
  padding: 20px;
  box-shadow: -2px 2px 0px 0px #4682B4; /* Steel Blue shadow - Groups feature color */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== REQUEST INFO ===== */
.join-request-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.join-request-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937; /* Dark color - Act 1 standard */
}

.join-request-time {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280; /* Grey text */
}

/* ===== REQUEST ACTIONS ===== */
.join-request-actions {
  display: flex;
  gap: 8px;
}

/* ===== REQUEST BUTTONS ===== */
.join-request-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 40px;
  border: 2px solid;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

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

/* Approve button - Green */
.join-request-btn-approve {
  background: #FFFFFF;
  border-color: #3CB371; /* MediumSeaGreen - Act 1 success color */
  color: #3CB371;
}

.join-request-btn-approve:active:not(:disabled) {
  background: #3CB371;
  color: #FFFFFF;
}

/* Reject button - Red */
.join-request-btn-reject {
  background: #FFFFFF;
  border-color: #DC143C; /* Crimson - Act 1 danger color */
  color: #DC143C;
}

.join-request-btn-reject:active:not(:disabled) {
  background: #DC143C;
  color: #FFFFFF;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (min-width: 640px) {
  .join-requests-content {
    padding: 20px 20px 40px 20px;
  }

  .join-request-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .join-request-actions {
    flex-shrink: 0;
    width: auto;
  }

  .join-request-btn {
    flex: 0 0 auto;
    min-width: 100px;
  }
}
