/**
 * NIBRA ExpoHub — Public Frontend CSS
 * @since 1.0.0
 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
  --neh-pub-primary:   #2563eb;
  --neh-pub-primary-lt:#3b82f6;
  --neh-pub-success:   #059669;
  --neh-pub-gold:      #d97706;
  --neh-pub-danger:    #dc2626;
  --neh-pub-text:      #1f2937;
  --neh-pub-muted:     #6b7280;
  --neh-pub-border:    #e5e7eb;
  --neh-pub-bg:        #f9fafb;
  --neh-pub-card:      #ffffff;
  --neh-pub-radius:    10px;
  --neh-pub-font:      'Cairo', 'Segoe UI', sans-serif;
}

/* ---- Base ---- */
.neh-public * { box-sizing: border-box; }
.neh-public { font-family: var(--neh-pub-font); color: var(--neh-pub-text); direction: rtl; }

/* ---- Event Cards ---- */
.neh-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin: 20px 0;
}
.neh-event-card {
  background: var(--neh-pub-card);
  border: 1px solid var(--neh-pub-border);
  border-radius: var(--neh-pub-radius);
  overflow: hidden; transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.neh-event-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.neh-event-card-img   { width: 100%; height: 180px; object-fit: cover; background: var(--neh-pub-bg); }
.neh-event-card-body  { padding: 16px; }
.neh-event-card-type  { font-size: 11px; color: var(--neh-pub-primary); font-weight: 600; margin-bottom: 6px; }
.neh-event-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.neh-event-card-meta  { font-size: 12px; color: var(--neh-pub-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.neh-event-card-footer{ padding: 12px 16px; border-top: 1px solid var(--neh-pub-border); display: flex; justify-content: space-between; align-items: center; }
.neh-event-reg-btn {
  background: var(--neh-pub-primary); color: #fff;
  border: none; border-radius: 7px; padding: 8px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--neh-pub-font); text-decoration: none;
  display: inline-block; transition: background 0.15s;
}
.neh-event-reg-btn:hover { background: var(--neh-pub-primary-lt); }

/* ---- Registration Form ---- */
.neh-reg-form-wrap {
  background: var(--neh-pub-card);
  border: 1px solid var(--neh-pub-border);
  border-radius: var(--neh-pub-radius);
  padding: 28px; max-width: 720px; margin: 0 auto;
}
.neh-reg-form-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.neh-reg-form-sub   { font-size: 13px; color: var(--neh-pub-muted); margin-bottom: 24px; }

.neh-form-section { margin-bottom: 24px; }
.neh-form-section-title {
  font-size: 13px; font-weight: 600; color: var(--neh-pub-primary);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--neh-pub-border);
}
.neh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .neh-form-row { grid-template-columns: 1fr; } }

.neh-pub-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--neh-pub-text); margin-bottom: 5px;
}
.neh-pub-label .required { color: var(--neh-pub-danger); margin-right: 2px; }
.neh-pub-input {
  width: 100%; padding: 9px 13px;
  border: 1px solid var(--neh-pub-border);
  border-radius: 7px; font-size: 13px;
  font-family: var(--neh-pub-font); color: var(--neh-pub-text);
  outline: none; transition: border-color 0.15s;
}
.neh-pub-input:focus { border-color: var(--neh-pub-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.neh-pub-input.error { border-color: var(--neh-pub-danger); }
.neh-field-error { font-size: 11px; color: var(--neh-pub-danger); margin-top: 4px; }

.neh-type-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.neh-type-option   { display: none; }
.neh-type-label {
  padding: 8px 16px; border-radius: 7px;
  border: 1px solid var(--neh-pub-border);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}
.neh-type-option:checked + .neh-type-label {
  background: var(--neh-pub-primary); color: #fff; border-color: var(--neh-pub-primary);
}

.neh-submit-btn {
  width: 100%; background: var(--neh-pub-primary); color: #fff;
  border: none; border-radius: 8px; padding: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--neh-pub-font); transition: background 0.15s;
  margin-top: 8px;
}
.neh-submit-btn:hover:not(:disabled) { background: var(--neh-pub-primary-lt); }
.neh-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Status Page ---- */
.neh-status-card {
  background: var(--neh-pub-card);
  border: 1px solid var(--neh-pub-border);
  border-radius: var(--neh-pub-radius);
  padding: 24px; max-width: 560px; margin: 0 auto;
}
.neh-status-icon { font-size: 40px; margin-bottom: 12px; text-align: center; }
.neh-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.neh-status-badge.approved { background: #dcfce7; color: #166534; }
.neh-status-badge.pending  { background: #fef9c3; color: #854d0e; }
.neh-status-badge.rejected { background: #fee2e2; color: #991b1b; }
.neh-status-badge.attended { background: #dbeafe; color: #1e40af; }

/* ---- Alerts ---- */
.neh-pub-alert {
  padding: 14px 16px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px;
  border: 1px solid; display: flex; align-items: flex-start; gap: 10px;
}
.neh-pub-alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.neh-pub-alert.error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.neh-pub-alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.neh-pub-alert.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
