/**
 * Discord invite widget styles
 * Consistent with Bootstrap 5 and site design
 */

.discord-invite-card {
  display: inline-block;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  max-width: 100%;
  width: 380px;
  text-align: left;
}

.discord-invite-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.discord-invite-icon-wrapper {
  flex-shrink: 0;
}

.discord-invite-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discord-invite-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discord-invite-info {
  flex: 1;
  min-width: 0;
}

.discord-invite-server-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.discord-invite-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: #495057;
}

.discord-invite-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.discord-invite-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-online {
  background-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.discord-offline {
  background-color: #868e96;
}

.discord-invite-stat-text {
  white-space: nowrap;
  font-weight: 500;
}

.discord-invite-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #0d6efd;
  border: none;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.discord-invite-button:hover {
  color: #fff;
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.discord-invite-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(13, 110, 253, 0.3);
}

.discord-invite-button:focus {
  color: #fff;
  background-color: #0b5ed7;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .discord-invite-card {
    width: 100%;
  }
  
  .discord-invite-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}
