/* GlobalHealthLink AI - Modern Medical Tech Ecosystem CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0A192F;
  --bg-darker: #020C1B;
  --bg-card-dark: rgba(16, 30, 54, 0.7);
  --primary-cyan: #00D2FF;
  --primary-blue: #0066FF;
  --accent-purple: #7000FF;
  --accent-green: #00E676;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --bg-light: #F8FAFC;
  --bg-card-light: #FFFFFF;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: #E2E8F0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #38E0FF;
}

.gradient-text {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 50%, #7000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Header & Navbar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #FFF;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #FFF;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
  color: #FFF;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.lang-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* Hero Section & AI Assistant Box */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 60%);
}

.hero-title {
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

.ai-search-box {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(16, 30, 54, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 210, 255, 0.15);
  text-align: left;
}

.ai-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-cyan);
}

.ai-box-header i {
  font-size: 18px;
}

.ai-textarea {
  width: 100%;
  background: rgba(2, 12, 27, 0.7);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 16px;
  color: #FFF;
  font-family: var(--font-body);
  font-size: 15px;
  resize: none;
  height: 90px;
  outline: none;
  transition: border-color 0.3s;
}

.ai-textarea:focus {
  border-color: var(--primary-cyan);
}

.ai-box-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-chip:hover {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
}

/* Classic Search Bar */
.search-bar-classic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  padding: 16px;
  border-radius: 16px;
  margin-top: 30px;
}

.search-field input, .search-field select {
  width: 100%;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid var(--border-dark);
  padding: 12px;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Badges & Scores */
.badge-match {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-verified {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.globalhealth-score-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-cyan) 0% 92%, rgba(255, 255, 255, 0.1) 92% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.globalhealth-score-ring::before {
  content: '';
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-dark);
  position: absolute;
}

.globalhealth-score-val {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #FFF;
}

/* Doctor & Clinic Cards */
.doctor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--primary-cyan);
  background: linear-gradient(135deg, #101E36, #0A192F);
}

img {
  max-width: 100%;
  height: auto;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(112, 0, 255, 0.1));
}

.doctor-info h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.doctor-title {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.doctor-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.doctor-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 16px;
}

/* Patient Story Cards (Netflix Style) */
.story-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 380px;
  background-size: cover;
  background-position: center;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.1) 0%, rgba(10, 25, 47, 0.95) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-tag {
  background: rgba(0, 210, 255, 0.2);
  color: var(--primary-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 10px;
}

.story-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: #FFF;
}

.story-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Price Intelligence Matrix Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.price-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary-cyan);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
}

.price-table td {
  font-size: 15px;
}

/* Footer */
footer.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 16px;
  color: #FFF;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title { font-size: 36px; }
  .nav-links { display: none; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
}
