/* ══════════════════════════════════════════
   FRIBOURG EXPORT – style.css
   Dark tech / Swiss precision aesthetic
══════════════════════════════════════════ */

html,
body {
  height: 100%;
  overflow: hidden; /* removes page scroll dead space */
}
/* ── CSS Variables ── */
:root {
  --red: #e8192c;
  --red-hover: #c9111f;
  --red-glow: rgba(232, 25, 44, 0.35);
  --gold: #d4a83a;
  --dark: #0a0d12;
  --dark2: #10141b;
  --card-bg: rgba(10, 14, 20, 0.82);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.35);
  --accent: #4fc8e8;
  --green: #4caf50;
  --orange: #ff9800;
  --high-red: #e53935;
  --vhigh: #7b1fa2;
  --font: "Barlow", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
}

/* ══════════ BACKGROUND ══════════ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 8, 14, 0.88) 0%,
    rgba(5, 8, 14, 0.72) 40%,
    rgba(5, 8, 14, 0.55) 70%,
    rgba(5, 8, 14, 0.78) 100%
  );
}

/* ══════════ TOP EMBLEM ══════════ */
.top-emblem {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.top-emblem .emblem-cross {
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(
    40% 0%,
    60% 0%,
    60% 40%,
    100% 40%,
    100% 60%,
    60% 60%,
    60% 100%,
    40% 100%,
    40% 60%,
    0% 60%,
    0% 40%,
    40% 40%
  );
}

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  /* optional nice touch */
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Nav links */
.nav-center {
  display: flex;
  gap: 6px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Disable nav link */
.nav-link.disabled {
  pointer-events: none; /* ❌ cannot click */
  opacity: 0.4; /* looks disabled */
  cursor: default;
}

/* Optional: remove hover effect */
.nav-link.disabled:hover {
  background: none;
  color: rgba(255, 255, 255, 0.4);
}

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.lang-selector {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.lang-selector .arrow {
  font-size: 10px;
  color: var(--text-muted);
}

/* ══════════ MAIN LAYOUT ══════════ */
.main {
  position: relative;
  z-index: 10;

  height: calc(100vh - 100px);

  padding: 72px 32px 32px;

  display: grid;
  grid-template-columns: 1.05fr 1.7fr 0.95fr;

  gap: 22px;
  align-items: center;
}

/* ══════════ LEFT COLUMN ══════════ */
.left-col {
  display: flex;
  flex-direction: column;

  gap: 18px;

  padding-top: 10px;

  grid-column: 1;
}
.left-col,
.map-card,
.right-side {
  max-height: 100%;
}
/* Hero Text */

.hero-title {
  font-family: var(--font-cond);
  font-weight: 800;

  font-size: clamp(34px, 3vw, 46px);

  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;

  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero-title .dot {
  color: var(--red);
}

.hero-sub {
  margin-top: 12px;

  font-size: clamp(12px, 0.8vw, 14px);

  font-weight: 400;
  line-height: 1.55;

  color: rgba(255, 255, 255, 0.7);

  max-width: 340px;
}

/* Form Card */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.form-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
}

.select-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}

.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 36px 11px 38px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}

.form-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.form-select:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.08);
}

.form-select option {
  background: #111519;
  color: #fff;
}

/* Analyze button */
.analyze-btn {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 13px 20px;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 20px var(--red-glow);
  margin-top: 6px;
}

.analyze-btn:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 28px rgba(232, 25, 44, 0.55);
  transform: translateY(-1px);
}

.analyze-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 20px;
  line-height: 1;
  margin-left: 4px;
}

/* Feature row */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  backdrop-filter: blur(14px);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.feature-item:hover {
  border-color: rgba(232, 25, 44, 0.3);
  background: rgba(15, 19, 28, 0.88);
}

.feature-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.feature-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.feature-label strong {
  color: #fff;
  font-weight: 700;
}

.feature-sub {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.highlight-risk {
  position: relative;
  overflow: hidden;
}

/* ══════════ TOP RISK TODAY BOX ══════════ */

.highlight-risk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--high-red);
  opacity: 0.8;
  border-radius: 2px;
}

.highlight-risk p {
  margin-bottom: 14px; /* creates separation from badge */
  line-height: 1.5;
}

/* text styling */
.risk-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* impact badge */
.risk-impact {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

/* high severity styling */
.risk-impact.high {
  background: rgba(229, 57, 53, 0.15);
  color: var(--high-red);
  border: 1px solid rgba(229, 57, 53, 0.4);
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.15);
}
/* ══════════ ALERT BOX ══════════ */
.alert-card {
  position: relative;
  overflow: hidden;
}

/* subtle red glow line like your tips card */
.alert-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--red);
  opacity: 0.6;
  border-radius: 2px;
}

.alert-country {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.alert-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* bottom row */
.alert-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-glow);
}

.alert-badge {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
/* ══════════ MAP COLUMN ══════════ */
.map-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  grid-column: 2;
  align-self: center;
}

.map-img {
  width: 100%;

  max-width: min(34vw, 500px);

  height: auto;

  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));

  transition: transform 0.4s ease;
}

.map-card:hover .map-img {
  transform: scale(1.04);
}

/* ══════════ RIGHT COLUMN ══════════ */

.right-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  justify-content: flex-start;
  grid-column: 3;
}

.right-side .info-card {
  flex: 0 0 auto;
}

.info-card,
.tips-card,
.alert-card,
.highlight-risk {
  width: 100%;
}

.info-card {
  background: var(--card-bg);

  border: 1px solid var(--card-border);

  border-radius: 10px;

  padding: 16px 16px 14px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 13px;
  text-transform: uppercase;
}

/* Tips card */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-card {
  height: fit-content;

  background: rgba(10, 14, 20, 0.75);

  backdrop-filter: blur(16px);

  border-radius: 14px;

  padding: 18px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.tips-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--red);
  opacity: 0.6;
  border-radius: 2px;
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.check {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ══════════ BOTTOM BAR ══════════ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bottom-emblem .emblem-cross {
  width: 22px;
  height: 22px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    40% 0%,
    60% 0%,
    60% 40%,
    100% 40%,
    100% 60%,
    60% 60%,
    60% 100%,
    40% 100%,
    40% 60%,
    0% 60%,
    0% 40%,
    40% 40%
  );
}

.bottom-tagline {
  position: absolute;
  right: 28px;
  font-family: var(--font-cond);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ══════════ MODAL ══════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #10141b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px 36px;
  width: 440px;
  max-width: 90vw;
  position: relative;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 18px;
}

.modal-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.modal-body .risk-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.modal-body ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-body ul li::before {
  content: "▸ ";
  color: var(--red);
}

/* ══════════ SCROLLBAR ══════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* ══════════ POPUP ══════════ */
.popup {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: auto;
  transition: all 0.25s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}

.popup-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--red-glow);
}

/* ══════════════════════════════════════════
   📱 MOBILE FIX (Phones & small screens)
══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ✅ Allow scrolling again */
  html,
  body {
    height: auto;
    overflow-y: auto;
  }

  /* Main layout becomes vertical */
  .main {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 90px 16px 80px;
    gap: 20px;
  }

  /* Columns stack */
  .left-col,
  .map-card,
  .right-side {
    width: 100%;
    max-height: none;
  }

  /* Hero text smaller */
  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 13px;
    max-width: 100%;
  }

  /* Form full width */
  .form-card {
    width: 100%;
  }

  /* Features: 2 per row instead of 4 */
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Map smaller */
  .map-img {
    max-width: 100%;
  }

  /* Right side spacing */
  .right-side {
    gap: 16px;
  }

  /* Navbar adjustments */
  .navbar {
    padding: 0 14px;
  }

  .nav-center {
    display: none; /* optional: hide menu on mobile */
  }

  /* Bottom bar spacing fix */
  .bottom-bar {
    height: 44px;
  }

  /* Modal fits mobile */
  .modal {
    width: 92vw;
    padding: 22px;
  }
}
@media (max-height: 900px) {
  .main {
    transform: scale(0.93);
    transform-origin: top center;
  }
}

@media (max-height: 800px) {
  .main {
    transform: scale(0.88);
    transform-origin: top center;
  }
}
/* ══════════ VALIDATION POPUP ══════════ */

.validation-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  z-index: 99999;
}

.validation-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.validation-popup-content {
  width: 420px;
  max-width: 90vw;

  background: rgba(10, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 16px;
  padding: 28px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(232, 25, 44, 0.12);

  animation: popupIn 0.25s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.validation-icon {
  width: 54px;
  height: 54px;

  border-radius: 14px;

  background: rgba(232, 25, 44, 0.12);
  border: 1px solid rgba(232, 25, 44, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  color: var(--red);

  margin-bottom: 18px;

  box-shadow: 0 0 20px rgba(232, 25, 44, 0.15);
}

.validation-text h4 {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: #fff;

  margin-bottom: 8px;
}

.validation-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.validation-close {
  margin-top: 24px;

  width: 100%;

  border: none;
  border-radius: 10px;

  background: var(--red);
  color: #fff;

  padding: 13px;

  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;

  box-shadow: 0 6px 22px rgba(232, 25, 44, 0.3);
}

.validation-close:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}
