/* ==========================================================================
   Exe Luco — Portfolio Stylesheet (UK Edition)
   Ultra-clean dark minimalist aesthetic inspired by weston.rc
   ========================================================================== */

:root {
  --bg-color: #121316;
  --bg-card: #17191e;
  --text-primary: #f2f3f5;
  --text-secondary: #8c929d;
  --text-muted: #545b67;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 680px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-color: #f7f8fa;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
}

/* Main Container */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 36px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  transform: rotate(15deg);
}

.theme-icon {
  width: 16px;
  height: 16px;
}

.login-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 0;
  transition: color 0.15s ease;
}

.login-btn:focus-visible,
.theme-btn:focus-visible {
  outline: 1px solid var(--accent-cyan);
  outline-offset: 4px;
}

.login-btn:hover {
  color: var(--text-primary);
}

.login-icon {
  width: 14px;
  height: 14px;
}

.login-modal[hidden] {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.login-dialog {
  position: relative;
  width: min(100%, 380px);
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.login-title {
  margin: 5px 0 6px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.login-note {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  color: var(--text-secondary);
  font-size: 12px;
}

.login-form input,
.login-form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-color);
  color: var(--text-primary);
  font: inherit;
  resize: vertical;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 6px;
  cursor: pointer;
}

.remember-option input {
  width: auto;
  margin: 0;
  accent-color: var(--accent-cyan);
}

.admin-action,
.admin-secondary {
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
}

.admin-action {
  border: 1px solid var(--accent-cyan);
  background: var(--accent-cyan);
  color: #07131b;
  font-weight: 600;
}

.admin-secondary {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
}

.login-error {
  color: #fda4af;
  font-size: 12px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  margin-top: 10px;
  margin-bottom: 48px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.location-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 1.5px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
}

.location-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-bio {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Map Card Wrapper & Overlays
   ========================================================================== */
.map-card-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #0b0d10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.map-container {
  width: 100%;
  height: 100%;
  background-color: #0b0d10;
  z-index: 1;
}

/* MapLibre Overrides */
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-top-right,
.maplibregl-ctrl-top-left,
.maplibregl-compact {
  display: none !important;
}

.maplibregl-canvas {
  outline: none;
}

/* Dark gradient scrim at the bottom so text is easily readable */
.map-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(15, 17, 21, 0.15) 0%,
    rgba(15, 17, 21, 0.05) 50%,
    rgba(15, 17, 21, 0.85) 100%
  );
  z-index: 400;
}

/* Top Right Live Time Pill */
.map-time-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(18, 20, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #e5e7eb;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: radar-blink 2s infinite ease-in-out;
}

@keyframes radar-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Bottom Left Location Label Overlay */
.map-location-overlay {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 500;
  pointer-events: none;
}

.map-overlay-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.map-overlay-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Animated Blue Beacon on Leaflet Map */
.custom-beacon {
  position: relative;
  width: 24px;
  height: 24px;
}

.beacon-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  background-color: var(--accent-cyan);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 2;
}

.beacon-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  animation: radar-pulse 2.2s infinite ease-out;
  z-index: 1;
}

@keyframes radar-pulse {
  0% {
    width: 9px;
    height: 9px;
    opacity: 0.9;
  }
  100% {
    width: 46px;
    height: 46px;
    opacity: 0;
  }
}

/* ==========================================================================
   Sections General Styling
   ========================================================================== */
.section-block {
  margin-top: 44px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.sub-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 10px 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 22px 0;
}

.section-divider.full-width {
  margin: 36px 0;
}

/* ==========================================================================
   Work Section
   ========================================================================== */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  padding: 4px 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-title a {
  color: inherit;
  text-decoration: none;
}

.project-title a:hover {
  color: var(--accent-cyan);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.status-active {
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.03);
}

.status-progress {
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.03);
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
}

/* ==========================================================================
   Writing Section
   ========================================================================== */
.empty-state-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Stack & Interests Section
   ========================================================================== */
.stack-group {
  margin-bottom: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  user-select: none;
  cursor: default;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Interactive pills under WORKING WITH */
.interactive-tags .pill-tag {
  cursor: pointer;
}

.interactive-tags .pill-tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Non-clickable static pills under AWAY FROM THE DESK */
.static-tags .pill-tag {
  cursor: default;
  pointer-events: none;
}

/* Gray state when toggled */
.pill-tag.is-gray {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #64748b !important;
  filter: grayscale(1) !important;
  box-shadow: none !important;
}

.pill-tag.is-gray .pill-icon {
  color: #64748b !important;
  stroke: #64748b !important;
}

.pill-tag.is-gray:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
}

.pill-tag.is-gray:hover .pill-icon {
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

.pill-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  transition: color 0.2s ease, stroke 0.2s ease;
}

/* Exact Pill Tints matching screenshot 3 */
.tag-blue {
  background-color: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.tag-cyan {
  background-color: rgba(6, 182, 212, 0.09);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: #a5f3fc;
}

.tag-purple {
  background-color: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
}

.tag-amber {
  background-color: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #fef08a;
}

.tag-teal {
  background-color: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: #99f6e4;
}

.tag-indigo {
  background-color: rgba(129, 140, 248, 0.09);
  border: 1px solid rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
}

.tag-emerald {
  background-color: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
}

.tag-rose {
  background-color: rgba(244, 63, 94, 0.09);
  border: 1px solid rgba(244, 63, 94, 0.22);
  color: #fecdd3;
}

.tag-green {
  background-color: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.tag-gold {
  background-color: rgba(234, 179, 8, 0.09);
  border: 1px solid rgba(234, 179, 8, 0.22);
  color: #fef08a;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.contact-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.contact-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-separator {
  margin: 0 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
  .page-container {
    padding: 28px 18px 48px;
  }

  .hero-name {
    font-size: 34px;
  }

  .map-card-wrapper {
    height: 190px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
