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

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

: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);
  background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.95)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 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;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-weight: 600;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

/* 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);
}

/* Primary Glassmorphic Card styles */
.glass-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #000000;
  border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Input Fields */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Layout Wrapper */
main {
  margin-top: 120px;
  flex: 1;
  padding: 0 6%;
}

/* 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%;
  right: 0;
  background-color: #121212;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  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;
  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;
}

/* Modal styling (Support modal, etc.) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 500px;
  background-color: rgba(22, 26, 33, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Toast Notification Utility */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* Applied Job Opacity styling */
.applied-job-opacity {
  opacity: 0.65;
  border-color: rgba(46, 125, 50, 0.3) !important;
}
