/* Additional theme CSS - professional look & components (used alongside style.css)
   This file adds refined components, shadows, typography and utility helpers.
   Include it in pages where you want the upgraded professional UI.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --muted: #64748b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero accent box */
/* Made visually integrated: remove bold blue stripe and use subtle transparent background */
.hero-accent {
  background: transparent;
  /* removed border-left to eliminate the prominent blue stripe */
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: none;
}

/* Modern card */
.mod-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.mod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Profile avatar */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.avatar:hover {
  transform: scale(1.05);
}

/* Match card improved */
.match-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.match-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.match-card .meta { flex: 1; }
.match-card .meta h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.match-card .meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

/* Primary CTA */
.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}
.btn-cta:active {
  transform: translateY(0);
}

/* Secondary */
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Form group inline */
.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.form-row .field {
  flex: 1;
  min-width: 140px;
}
.form-row .field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}
.form-row .field input,
.form-row .field select,
.form-row .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}
.form-row .field input:focus,
.form-row .field select:focus,
.form-row .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sidebar snapshot */
.sidebar-snapshot {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.sidebar-snapshot .name {
  font-weight: 700;
  font-size: 20px;
  margin-top: 12px;
  color: var(--text-primary);
}
.sidebar-snapshot .progress {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
/* Small utilities */
.kicker {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Profile summary component */
.profile-summary {
  padding: 20px;
  border-radius: 12px;
}
.profile-summary .profile-photo-gallery { border-radius: 12px; overflow: hidden; }
.profile-summary h2 { margin: 0 0 6px 0; font-size: 1.6rem; }
.profile-summary .status-badge { margin-left:6px; }

/* visual refinements to match reference */
.profile-summary .personal-line {
  margin-bottom:10px;
  color:var(--text-primary);
  font-weight:600;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.profile-summary .meta-line { color:var(--text-secondary); margin-bottom:8px; }

/* Badges */
.status-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  box-shadow: var(--shadow-sm);
}
.status-badge.success { background: linear-gradient(90deg,#e6ffed,#d1fae5); color: #059669; border:1px solid rgba(16,185,129,0.12); }
.status-badge.paid { background: linear-gradient(90deg,var(--accent),var(--accent-dark)); color: #fff; }

/* Action buttons in profile header */
.profile-summary .actions { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.profile-summary .actions .btn-cta { padding:10px 20px; border-radius:24px; font-weight:700; }
.profile-summary .actions .btn-outline { padding:8px 16px; border-radius:20px; }

/* Contact CTA for premium visitors */
.contact-cta {
  background: linear-gradient(180deg,#fff, var(--bg-secondary));
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.contact-cta .masked {
  font-weight:700;
  letter-spacing:0.06em;
}
.contact-cta .upgrade-btn {
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  border-radius:20px;
  background: linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:white;
  font-weight:700;
  text-decoration:none;
}

/* Personal information list style */
.profile-personal-dl dt { font-weight:700; color:var(--text-muted); margin-bottom:6px; }
.profile-personal-dl dd { margin:0 0 12px 0; color:var(--text-primary); }

/* Responsive tweaks for profile summary */
@media (max-width: 900px) {
  .profile-summary { padding: 16px; }
  .profile-summary .profile-photo-gallery { height:260px; }
}

/* Remove rounded blue 'stripe' hero look: make hero flat and integrated */
.profile-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 36px 0;
  margin-bottom: 12px; /* reduce gap */
  text-align: center;
  border-radius: 0; /* remove rounded corners */
  box-shadow: none;
}

/* Make header area visually lighter and more integrated */
.hero-accent {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Personal information card styling (to match reference) */
.profile-personal-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(237,242,247,0.8);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.profile-personal-card .card-header {
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border-light);
  margin-bottom:12px;
}
.profile-personal-card .card-title {
  font-weight:700;
  font-size:1.05rem;
}
.profile-personal-dl { display:grid; grid-template-columns: 1fr 1fr; gap:12px 24px; }
.profile-personal-dl dt { color:var(--text-muted); font-weight:600; font-size:0.9rem; }
.profile-personal-dl dd { margin:0; color:var(--text-primary); font-weight:700; }

/* Slight spacing tweak to match reference layout */
.container--profile {
  padding-top: 18px;
  padding-bottom: 28px;
}

/* Responsive tweaks for the personal info card */
@media (max-width: 900px) {
  .profile-personal-dl { grid-template-columns:1fr; }
}


/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-badge.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-badge.error { background: rgba(239, 68, 68, 0.1); color: var(--error); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .match-card { flex-direction: column; align-items: center; text-align: center; }
  .container { padding: 0 16px; }
  .form-row { flex-direction: column; gap: 12px; }
  .form-row .field { min-width: unset; }
}

/* Topbar / brand adjustments for consistent look */
/* Removed bold blue gradient to produce a flatter, cleaner header */
.topbar {
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.topbar .brand-link { display:inline-flex; align-items:center; gap:12px; text-decoration:none; }
.topbar .logo { height:42px; display:block; }

/* Harmonize auth buttons used in templates */
.auth .btn-cta, .auth .btn-cta:visited {
  display: inline-flex;
  align-items: center;
  gap:10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: none;
}
.auth .btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Outline variant used for secondary actions */
.auth .btn-outline, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap:8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.auth .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.04); }

/* Small utility: make topbar responsive */
@media (max-width: 768px) {
  .topbar .container { display:flex; align-items:center; gap:12px; padding:8px 12px; }
  .main-nav { display:none; }
  .auth { margin-left:auto; gap:8px; }
  .topbar .logo { height:36px; }
}

/* Form inputs and buttons - subtle consistent sizing */
button, .btn-cta, .btn-outline, .btn {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  font-family: inherit;
}

/* Accessibility: focus outlines */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(37,99,235,0.14);
  outline-offset: 2px;
}