/* ============================================
   GAMING PARTY SYSTEM
   ============================================ */

.party-modal, .party-lobby-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.party-modal-backdrop, .party-lobby-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.party-modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.party-lobby-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.party-modal-header, .party-lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.party-modal-header h3, .party-lobby-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.party-lobby-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.party-leader-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
}

.party-modal-close, .party-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.party-modal-close:hover, .party-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.party-modal-body {
  padding: 24px;
}

.party-lobby-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: #06d6a0;
}

.form-hint {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 16px;
}

.party-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.party-modal-footer button {
  flex: 1;
}

/* Party Members */
.party-members-section h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.party-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.party-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s;
}

.party-member-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.party-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.party-member-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.party-member-badge {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
}

/* Party Actions */
.party-actions-section h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.party-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.party-leave-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-ghost-sm {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost-sm:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: white;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .party-lobby-content {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .party-actions-grid {
    grid-template-columns: 1fr;
  }

  .party-member-card {
    flex-wrap: wrap;
  }
}
