/* ==========================================================================
   THE NEW PHYSICIAN - CANONICAL CORE THEME
   Strict styling parameters aligned with newphysician.org (Next.js layout)
   DO NOT MODIFY VARIABLE TOKENS DIRECTLY WITHOUT COMPLIANCE CHECKS
   ========================================================================== */

:root {
  --bg-dark: #0A0A0A;
  --bg-card: rgba(22, 26, 33, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #D4D4D4;
  --text-white: #FFFFFF;
  --text-muted: #A3A3A3;
  --accent-gold: #D4AF37;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

/* Global Selection & Core Styling */
::selection {
  background-color: var(--accent-gold);
  color: #000000;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* Subtle Kintsugi Top Border */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  z-index: 10000;
  opacity: 0.8;
}

/* Sticky Glassmorphic Header Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  z-index: 1000;
}

/* Logo Alignment matching Next.js App */
header .logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-white);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

header .logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  opacity: 0.5;
  transform: scaleX(1);
}

header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

header nav a:hover {
  color: var(--text-white);
}

/* Universal Dropdown Nav styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.dropdown:hover .dropdown-btn {
  color: var(--text-white);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #121212;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 8px 0;
  margin-top: 4px;
}

.dropdown-content a {
  color: var(--text-muted);
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Footer Styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 96px;
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #FFFFFF;
}
