/* --- Base Styles --- */
body {
  font-family: 'Montserrat', 'Lora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1e3a8a 50%, #3b82f6 100%);
  color: #f8fafc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 3rem auto 3rem auto;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,58,138,0.12);
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  backdrop-filter: blur(6px);
}

.services-description {
  color: #e0e7ef;
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 2.2rem;
  font-family: 'Lora', serif;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Headings --- */
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
  font-family: 'Montserrat', sans-serif;
}

/* --- Input Section --- */
.location-input {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.13);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,58,138,0.07);
  padding: 0.5rem;
}

.location-input input {
  padding: 13px 16px;
  width: 100%;
  border: none;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
  background: #fafdff;
  color: #1f2937;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.3s;
}

.location-input input:focus {
  box-shadow: 0 0 0 3px #3b82f6;
}

.location-input input + input {
  border-radius: 0;
  border-left: 1px solid #e5e7eb;
}

.location-input button {
  padding: 13px 22px;
  background: #facc15;
  color: #1f2937;
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-input button:hover {
  background: #fff;
  color: #2563eb;
}

/* --- Results Grid Layout --- */
#weather-result,
#traveltime-result,
#location-result,
#foursquare-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

/* --- Card Styles --- */
.weather-card,
.travel-card,
.location-card,
.foursquare-card,
.news-card,
.news-grid > div {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.3rem 1.1rem 1.1rem 1.1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  min-height: 90px;
  border-left: 5px solid #facc15;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.news-card,
.news-grid > div {
  border-left: 5px solid #ffd700;
}

.weather-card:hover,
.travel-card:hover,
.location-card:hover,
.foursquare-card:hover,
.news-card:hover,
.news-grid > div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(30,58,138,0.18);
}

.weather-card h3,
.travel-card h3,
.location-card h3,
.foursquare-card h3,
.news-card h3,
.news-grid h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.weather-card p,
.travel-card p,
.location-card p,
.foursquare-card p,
.news-card p,
.news-grid p {
  color: #e5e7eb;
  font-size: 0.97rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  font-family: 'Lora', serif;
}

.news-card a, .news-grid a {
  color: #1a202c;
  background: #ffd700;
  border-radius: 6px;
  padding: 7px 18px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  align-self: center;
  transition: background 0.18s, color 0.18s;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(49,130,206,0.08);
}

.news-card a:hover, .news-grid a:hover {
  background: #fff;
  color: #2563eb;
}

/* --- Loading Spinner --- */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.loading-spinner .spinner-circle {
  border: 3px solid #e3eefe;
  border-top: 3px solid #ffd700;
  border-right: 3px solid #3182ce;
  border-bottom: 3px solid #ffd700;
  border-left: 3px solid #3182ce;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 0.9s cubic-bezier(.6,.1,.4,.9) infinite;
  box-shadow: 0 2px 8px rgba(49,130,206,0.13);
  background: linear-gradient(120deg, #1e3c72 60%, #2a5298 100%);
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* --- Header Styles (match profile.css) --- */
.header {
  background: rgba(30,58,138,0.95);
  box-shadow: 0 2px 16px rgba(30,58,138,0.10);
  padding: 0.7rem 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.18s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav ul li a.active,
nav ul li a:hover {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

/* --- Responsive adjustments --- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 1.2rem 1vw;
  }
  #weather-result,
  #traveltime-result,
  #location-result,
  #foursquare-result,
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    padding: 1.2rem 0.5rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    max-width: 100vw;
  }
  .services-description {
    font-size: 0.98rem;
  }
  .location-input {
    max-width: 100%;
  }
  .header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.1rem;
  }
  .container {
    padding: 0.7rem 0.2rem;
  }
  #weather-result,
  #traveltime-result,
  #location-result,
  #foursquare-result,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .location-input {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.3rem;
  }
  .location-input input,
  .location-input button {
    width: 100%;
    border-radius: 10px;
  }
  .weather-card h3,
  .travel-card h3,
  .location-card h3,
  .foursquare-card h3,
  .news-card h3,
  .news-grid h3 {
    font-size: 1rem;
  }
  .weather-card,
  .travel-card,
  .location-card,
  .foursquare-card,
  .news-card,
  .news-grid > div {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.3rem 0.1rem;
  }
  .location-input {
    padding: 0.15rem;
  }
  .weather-card,
  .travel-card,
  .location-card,
  .foursquare-card,
  .news-card,
  .news-grid > div {
    padding: 0.5rem;
    font-size: 0.92rem;
  }
  .services-description {
    font-size: 0.92rem;
  }
  h1 {
    font-size: 0.95rem;
  }
}

/* --- Responsive adjustments for header --- */
@media (max-width: 900px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
}
@media (max-width: 600px) {
  .logo {
    font-size: 1.1rem;
  }
  nav ul {
    gap: 1rem;
  }
}