/* Community-specific styles */

/* Floating Action Button */
.floating-action-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #4f46e5;
  color: white;
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  transition: all 0.2s ease;
}

.floating-action-button:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating-action-button svg {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* Hide on small screens */
@media (max-width: 640px) {
  .floating-action-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
  }

  .floating-action-button span {
    display: none;
  }

  .floating-action-button svg {
    margin-right: 0;
  }
}

/* Community header */
.community-header {
  position: relative;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.community-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.community-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.community-header-actions {
  display: flex;
  gap: 1rem;
}

/* Question list */
.question-list {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.question-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.question-card:hover {
  border-color: #d1d5db;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.question-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}

.question-meta {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.question-meta > * {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.question-meta svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.question-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-weight: 600;
  color: #4b5563;
}

.author-info {
  font-size: 0.875rem;
}

.author-name {
  font-weight: 600;
  color: #111827;
}

.author-date {
  color: #6b7280;
}

/* Answered badge */
.answered-badge {
  background-color: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.answered-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

/* Unanswered badge */
.unanswered-badge {
  background-color: #f59e0b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.unanswered-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}
