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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Background Animated Blobs */
.bg-blob {
  position: absolute;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.5;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}
.blob-1 {
  width: 400px; height: 400px;
  background: #3b82f6;
  top: -10%; left: -10%;
}
.blob-2 {
  width: 500px; height: 500px;
  background: #8b5cf6;
  bottom: -20%; right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-20px, 80px) scale(0.9); }
}

.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 35px 25px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.search-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.search-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.search-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

.search-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px -10px rgba(139, 92, 246, 0.6);
}

.search-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Weather Result Area */
#result {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#result.visible {
  opacity: 1;
  transform: translateY(0);
}

.location-header {
  text-align: center;
  margin-bottom: 10px;
}

.location-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.location-state {
  font-size: 13px;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.weather-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}


.temp-huge {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  text-shadow: 0 8px 25px rgba(0,0,0,0.3);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.temp-huge span {
  font-size: 36px;
  font-weight: 400;
  position: absolute;
  top: 8px;
  right: -30px;
  background: none;
  -webkit-text-fill-color: #e2e8f0;
}

.weather-desc {
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  margin-top: 15px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Bento Details */
.metrics-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255,255,255,0.15);
}

.metric-icon {
  width: 42px;
  height: 42px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #a78bfa;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.05);
  border-left-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}

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