/* 🌞 Default Light Theme (Animated Gradient) */
.hero-section-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: linear-gradient(135deg, #f9f9f9, #e3f2fd, #f9f9f9);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  padding: 40px 20px;
  position: relative;
}

.hero-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  max-width: 680px;
  margin: auto;
  animation: fadeInHero 1.2s ease-in-out, floatUp 6s ease-in-out infinite;
}

/* Hero Title & Tagline */
.hero-glass h1 {
  font-size: 3.8rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #0072ff, #00c6ff, #7ee8fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.tagline {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 30px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}
.feature-tile {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: all 0.35s ease;
}
.feature-tile h3 { margin-bottom:10px; font-size:1.5rem; color:#111; }
.feature-tile p { font-size:1rem; color:#333; }

.country-links-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 900px;
  text-align: center;
}

.country-links-container h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.country-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.country-links li {
  font-size: 1.1rem;
}

.country-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  transition: color 0.2s ease;
}

.country-links a:hover {
  color: var(--accent);
}

/* Planner Overlay */
.planner-overlay {
  position: fixed;
  top:0; right:-100%;
  width:50%; max-width:500px;
  height:100%; background:#161b22ee;
  color:#fff; z-index:9999;
  transition:right 0.4s ease-in-out;
  display:flex; justify-content:center; padding:30px;
  overflow-y:auto;
}
.planner-overlay.active { right:0; }
@media(max-width:768px){ .planner-overlay{ width:100%; padding:20px; } }

/* Planner Panel */
.planner-panel { display:flex; flex-direction:column; gap:15px; width:100%; }
.planner-panel h2 { font-size:28px; margin-bottom:10px; color:#2f81f7; }
.planner-form { display:flex; flex-direction:column; gap:12px; margin-top:15px; }
.planner-form label { font-size:14px; color:#fff; }
.planner-form select, .planner-form input {
  padding:10px; border-radius:10px; border:none; background:#0d1117; color:#fff;
}

/* CTA Buttons */
.cta-btn {
  background: linear-gradient(135deg,#2f81f7,#1f6feb);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  min-width: 220px;
}
.cta-btn:hover { opacity:0.9; transform: scale(1.02); }


/* Close Button */
.close-btn { background:transparent; border:none; color:#fff; font-size:24px; font-weight:bold; align-self:flex-end; cursor:pointer; }
.close-btn:hover { color:#2f81f7; }

/* Icon Buttons */
.icon-btn {
  display:inline-block; padding:5px 10px; border:1px solid #007bff; border-radius:5px;
  color:#007bff; background:transparent; cursor:pointer; font-weight:bold; margin-bottom:8px;
  transition: all 0.25s ease;
}
.icon-btn:hover { background:#007bff; color:#fff; }
.full-version-btn {
  display:inline-block; text-decoration:none; padding:6px 12px; background:#28a745;
  color:#fff; border-radius:5px; font-weight:bold; margin-top:8px;
}
.full-version-btn:hover { background:#218838; }

/* City Row Layout */
.city-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}

/* Add / Remove Buttons */
.remove-city-btn, #add-city {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 8px;
  border: 1px solid #007bff;
  background: transparent;
  color: #007bff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
}

/* Hover Effects with Tooltip */
.remove-city-btn:hover {
  background: #dc3545; /* Red for remove */
  color: #fff;
}
#add-city:hover {
  background: #28a745; /* Green for add */
  color: #fff;
}

/* Tooltip (Custom) */
.remove-city-btn:hover::after,
#add-city:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Place Add button below all rows */
#add-city {
  margin-top: 8px;
  align-self: flex-start; /* Align to left of container */
}

/* 🌑 Dark Mode Overrides */
body.dark-mode .hero-section-wrapper {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  animation: none;
}
body.dark-mode .hero-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
body.dark-mode .hero-glass h1 {
  background: linear-gradient(90deg, #00f260, #0575e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  font-size: 3rem;
}
body.dark-mode .tagline,
body.dark-mode .feature-tile h3,
body.dark-mode .feature-tile p {
  color: #fff !important;
}
body.dark-mode .feature-tile {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
body.dark-mode .feature-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}
body.dark-mode .cta-btn {
  background: #0575e6;
  box-shadow: 0 0 15px #0575e6, 0 0 25px #0575e6;
}
body.dark-mode .cta-btn:hover {
  background: #00f260;
  box-shadow: 0 0 15px #00f260, 0 0 30px #00f260;
  color: #000;
}

/* Responsive Fix */
@media(max-width:600px){
  .hero-glass h1{ font-size:2.6rem; }
  .tagline{ font-size:1rem; }
  .cta-btn{ font-size:0.9rem; padding:10px 16px; }
}

/* Animations */
@keyframes gradientShift {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes fadeInHero { from {opacity:0;} to {opacity:1;} }
@keyframes floatUp { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
