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

* {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --palestine-red: #E4312b;
  --palestine-green: #149954;
  --palestine-black: #111111;
  --palestine-white: #ffffff;
  --text-main: #334155;
  --text-heading: #0f172a;
  --bg-color: #f8fafc;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 100% 0%, #f1f5f9 0%, transparent 50%), radial-gradient(circle at 0% 100%, #f1f5f9 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  color: var(--text-heading);
  letter-spacing: 0.2px;
}

/* Smooth gradient flag border */
.flag-border {
  height: 6px;
  background: linear-gradient(90deg, var(--palestine-black) 0%, var(--palestine-black) 25%, var(--palestine-white) 25%, var(--palestine-white) 50%, var(--palestine-green) 50%, var(--palestine-green) 75%, var(--palestine-red) 75%, var(--palestine-red) 100%);
}

/* Glassmorphism Navigation */
.official-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.nav-link {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--palestine-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Polished Data Cards */
.data-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  border-color: rgba(226, 232, 240, 1);
}

/* Accent lines for cards */
.accent-green { border-top: 4px solid var(--palestine-green); }
.accent-red { border-top: 4px solid var(--palestine-red); }
.accent-black { border-top: 4px solid var(--palestine-black); }
.accent-blue { border-top: 4px solid #3b82f6; }
.accent-yellow { border-top: 4px solid #eab308; }

/* Smooth blur for sensitive content */
.content-warning-blur {
  filter: blur(25px) brightness(0.8);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform: scale(1.05); /* Prevents blurred edges from bleeding inward */
}

.content-warning-blur.revealed {
  filter: blur(0) brightness(1);
  transform: scale(1);
}

/* Fade In Animation */
.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Masonry layout */
.masonry-grid {
  column-count: 1;
  column-gap: 2rem;
}

@media (min-width: 640px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}

/* Map specific styling */
#custom-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

path.glow-red {
  stroke: var(--palestine-red) !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0px 0px 12px rgba(228, 49, 43, 0.8));
  transition: all 0.5s ease;
}

.historical-palestine-label {
  background: transparent;
  border: none;
}

.historical-palestine-label span {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* So it doesn't block map interaction */
}

/* Modern Buttons */
.btn-modern {
  border-radius: 9999px; /* Fully rounded */
  font-family: 'Oswald', sans-serif;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-modern:active {
  transform: scale(0.97);
}

/* Mobile Responsive Overrides */
.map-responsive {
  width: 100%;
  height: 650px;
}
@media (max-width: 768px) {
  .map-responsive {
    height: 450px;
  }
}
