/* WorldSeeker – Comic-style, engaging design (mobile-first) */
:root{
  --bg: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0b1020 100%);
  --panel: linear-gradient(145deg, #1e2a3a 0%, #151f2e 100%);
  --text: #f0f4f8;
  --muted: #b8c5d1;
  --brand: #4fc3f7;
  --brand-600: #29b6f6;
  --brand-hover: #81d4fa;
  --accent: #ff6b6b;
  --accent-secondary: #4ecdc4;
  --success: #66bb6a;
  --warning: #ffa726;
  --border: rgba(79, 195, 247, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 48px rgba(79, 195, 247, 0.2);
  --comic-shadow: 4px 4px 0px rgba(255, 107, 107, 0.3);
  --comic-border: 3px solid var(--accent);
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Comic Neue', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fun animated background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 195, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover{
  color: var(--brand-hover);
  transform: translateY(-1px);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted{
  color: var(--muted);
}

.tinyprint{
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0;
  text-align: center;
}

.prose p{
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.prose h1, .prose h2{
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
}

.prose h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--brand), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prose h2 {
  font-size: 1.8rem;
  color: var(--accent);
  position: relative;
  padding-left: 20px;
}

.prose h2::before {
  content: '🌍';
  position: absolute;
  left: -5px;
  top: 0;
  font-size: 1.2em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

/* Enhanced Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--brand)) 1;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.site-header:hover {
  box-shadow: var(--shadow-hover);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 15px 0;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  position: relative;
}

.brand::after {
  display: none;
}

.brand:hover {
  transform: scale(1.05);
  color: var(--brand-hover);
}

.brand img{
  filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.6));
  transition: all 0.3s ease;
}

.brand:hover img {
  filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.8));
  transform: rotate(5deg);
}

.nav{
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
}

.nav a::after {
  display: none;
}

.nav a:hover, .nav a[aria-current="page"]{
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Hero Section with Enhanced Spacing */
.hero{
  padding: 60px 0 80px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(79, 195, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🗺️';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

.hero::after {
  content: '✈️';
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.4;
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.hero h1{
  margin: 0 0 20px 0;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero h1::after {
  content: '🌟';
  position: absolute;
  top: -10px;
  right: -20px;
  font-size: 0.6em;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero p{
  color: var(--muted);
  margin: 0 0 40px 0;
  font-size: 1.3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Enhanced World Map Container */
#worldmap{
  width: 100%;
  height: 65vh;
  min-height: 450px;
  border: 4px solid transparent;
  border-image: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--brand)) 1;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 
    var(--shadow),
    inset 0 0 30px rgba(79, 195, 247, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#worldmap::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--brand));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#worldmap:hover::before {
  opacity: 0.3;
}

#worldmap:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(79, 195, 247, 0.2);
}

/* Remove footer on home page */
[data-page="home"] .site-footer {
  display: none;
}

/* Country Page Enhancements */
.breadcrumbs{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
  padding: 30px 0;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--brand);
  padding: 8px 16px;
  background: rgba(79, 195, 247, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.breadcrumbs a:hover {
  background: rgba(79, 195, 247, 0.2);
  transform: scale(1.05);
}

.breadcrumbs span[aria-hidden] {
  font-size: 1.2em;
  color: var(--accent);
}

.country-article{
  padding-bottom: 40px;
}

.country-header{
  text-align: center;
  padding: 40px 0 60px;
  background: 
    radial-gradient(circle at center, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
  border-radius: 30px;
  margin-bottom: 40px;
  position: relative;
}

.country-header::before {
  content: '🏛️';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.4;
}

.country-header::after {
  content: '🍽️';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.4;
}

.country-header h1{
  margin: 0 0 15px 0;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--brand), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.country-header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.section{
  margin: 50px 0;
  padding: 40px;
  background: var(--panel);
  border-radius: 25px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s ease;
}

.section::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--brand));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 
    var(--shadow-hover),
    0 0 30px rgba(79, 195, 247, 0.2);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  padding-left: 50px;
}

/* Section-specific icons */
#history h2::before { content: '📜'; }
#society h2::before { content: '🏛️'; }
#cuisine h2::before { content: '🍽️'; }
#today h2::before { content: '🌟'; }
#sources h2::before { content: '📚'; }

.section h2::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.3em;
  animation: bounce 2s infinite;
}

.section .prose {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section ul, .section ol {
  padding-left: 30px;
}

.section li {
  margin: 12px 0;
  position: relative;
}

.section ul li::marker {
  content: '🔸';
}

/* Recipe styling */
.recipe {
  background: rgba(78, 205, 196, 0.1);
  border: 2px solid var(--accent-secondary);
  border-radius: 20px;
  padding: 30px;
  margin: 30px 0;
  position: relative;
}

.recipe::before {
  content: '👨‍🍳';
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 2rem;
  background: var(--panel);
  padding: 5px 10px;
  border-radius: 50%;
}

.recipe h3 {
  color: var(--accent-secondary);
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.recipe h4 {
  color: var(--brand);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Sources section */
.sources{
  padding-left: 0;
  list-style: none;
}

.sources li{
  margin: 15px 0;
  padding: 15px 20px;
  background: rgba(79, 195, 247, 0.1);
  border-radius: 15px;
  border-left: 4px solid var(--brand);
  transition: all 0.3s ease;
}

.sources li:hover {
  background: rgba(79, 195, 247, 0.2);
  transform: translateX(5px);
}

.sources li::before {
  content: '🔗';
  margin-right: 10px;
}

/* Ad containers with comic styling */
.ad-container{
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border: 3px dashed var(--accent);
  border-radius: 20px;
  margin: 40px 0;
  position: relative;
  transition: all 0.3s ease;
}

.ad-container::before {
  content: '📢';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.5rem;
  opacity: 0.6;
}

.ad-container:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
  transform: scale(1.02);
}

/* Enhanced Footer for country pages */
.site-footer{
  margin-top: 60px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--brand)) 1;
  background: linear-gradient(135deg, rgba(30, 42, 58, 0.9), rgba(21, 31, 46, 0.95));
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px 0;
}

.footer-col{
  color: var(--muted);
  text-align: center;
}

.footer-col strong {
  color: var(--brand);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

.footer-nav{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  padding: 8px 16px;
  background: rgba(79, 195, 247, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  background: rgba(79, 195, 247, 0.2);
  transform: translateY(-2px);
}

/* Consent Banner with Comic Style */
.consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 42, 58, 0.98), rgba(21, 31, 46, 1));
  border-top: 4px solid var(--accent);
  padding: 25px 0;
  box-shadow: 
    0 -15px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 107, 107, 0.2);
  z-index: 1000;
}

.consent.hidden{
  display: none;
}

.consent-inner{
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.consent-text{
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
  min-width: 300px;
}

.consent-text strong {
  color: var(--accent);
  font-weight: 700;
}

.consent-actions{
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.btn{
  appearance: none;
  border: 3px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-color: var(--accent);
  color: white;
  font-weight: 800;
  box-shadow: var(--comic-shadow);
}

.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

.btn.primary:hover {
  box-shadow: 
    0 8px 25px rgba(255, 107, 107, 0.4),
    var(--comic-shadow);
  transform: translateY(-3px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .nav a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 25px;
    margin: 30px 0;
  }
  
  .section h2 {
    font-size: 1.8rem;
    padding-left: 40px;
  }
  
  .consent-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .consent-text {
    min-width: auto;
  }
}

@media (min-width: 860px){
  .footer-grid{
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }
  
  .footer-nav {
    justify-content: flex-start;
  }
  
  .footer-col:last-child {
    text-align: center;
  }
}

/* Map theming for jsVectorMap */
.jvm-tooltip{
  background: linear-gradient(135deg, #0b1020, #1a2332) !important;
  color: var(--text) !important;
  border: 2px solid var(--brand) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow) !important;
  font-family: 'Comic Neue', sans-serif !important;
}

/* Fun loading animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .section {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
  }
  
  .section:nth-child(2) { animation-delay: 0.1s; }
  .section:nth-child(3) { animation-delay: 0.2s; }
  .section:nth-child(4) { animation-delay: 0.3s; }
  .section:nth-child(5) { animation-delay: 0.4s; }
  .section:nth-child(6) { animation-delay: 0.5s; }
}

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

/* Enhanced focus states for accessibility */
.btn:focus,
.nav a:focus,
.brand:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .site-header,
  .consent,
  .ad-container {
    display: none !important;
  }
  
  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}