/* System error pages (Access Denied / 404 / 500 / Maintenance).
   Shared markup: frontend/views/site/_errorCard.php */

.ydo-error-page {
  display: flex;
  justify-content: center;
  padding: 48px 16px 64px;
  min-height: 45vh;
}

.ydo-error-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ydo-error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, #EAEEF6);
  color: var(--platform-primary, #151f36);
}

.ydo-error-icon svg {
  width: 28px;
  height: 28px;
}

.ydo-error-icon--denied {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.ydo-error-icon--server {
  color: var(--attention-primary, #F59E0B);
  background: rgba(245, 158, 11, 0.1);
}

.ydo-error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--platform-primary, #151f36);
  margin: 0 0 12px;
}

.ydo-error-message {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 28px;
}

.ydo-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ydo-error-support {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.ydo-error-support a {
  color: var(--discover-primary, #274bd0);
}

@media (max-width: 480px) {
  .ydo-error-card {
    padding: 32px 20px;
  }

  .ydo-error-actions {
    flex-direction: column;
  }

  .ydo-error-actions .ydo-btn {
    width: 100%;
  }
}
