/* MedLink+ Emergency Profile Stylesheet */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --danger-text: #991b1b;
  --danger-accent: #dc2626;

  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;

  --success-bg: #16a34a;
  --success-hover: #15803d;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding: 16px 12px 32px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header */
.header {
  text-align: center;
  padding: 8px 0 4px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 18px;
  height: 18px;
}

.logo-text span {
  color: var(--danger-accent);
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Warning Card */
.warning-card {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.warning-icon {
  font-size: 20px;
  line-height: 1;
}

.warning-content h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.warning-content p {
  font-size: 12px;
  color: var(--danger-text);
  opacity: 0.9;
  line-height: 1.4;
}

/* General Card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Blood Group Hero Card */
.hero-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.blood-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blood-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Largest Visual Element */
.blood-group {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  width: 110px;
  height: 110px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
  letter-spacing: -2px;
}

.user-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.meta-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.pill-dot {
  color: #cbd5e1;
}

/* Contact Card & Call Button */
.contact-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 4px;
}

.contact-name {
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: -0.3px;
}

.contact-relation {
  font-size: 14px;
  font-weight: 600;
  color: #047857;
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--success-bg);
  color: #ffffff;
  text-decoration: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.call-btn:active {
  background-color: var(--success-hover);
  transform: scale(0.98);
}

.call-icon {
  width: 22px;
  height: 22px;
}

/* Medical Information Card */
.medical-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.danger-group .info-title { color: var(--danger-text); }
.warning-group .info-title { color: var(--warning-text); }
.neutral-group .info-title { color: var(--text-muted); }

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding-left: 24px;
}

.divider {
  height: 1px;
  background-color: #f1f5f9;
  width: 100%;
}

/* Timestamp */
.timestamp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.timestamp-label {
  font-weight: 600;
  color: var(--text-muted);
}

.timestamp-value {
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.footer {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 8px 12px;
  line-height: 1.4;
}
