/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #22254b, #15162c);
  color: #333;
  min-height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  margin-bottom: 30px;
}

header .title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.sun-graphic {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.4));
  animation: slowSpin 20s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

header h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Layout container */
.app-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-section {
  display: flex;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
  }
}

/* Card Styling */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111827;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
}

.search-box input:focus {
  border-color: #f97316;
}

.search-box button {
  background: #ea580c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-box button:hover {
  opacity: 0.9;
}

/* History */
.history-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-tag {
  background: #ea580c;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
}

.history-tag:hover {
  transform: scale(1.05);
}

/* Weather Info */
.weather-details {
  display: flex;
  flex-direction: column;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.weather-row.border-last {
  border-bottom: none;
}

/* Orange bar left of the label */
.weather-row .label {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  position: relative;
  padding-left: 12px;
}

.weather-row .label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background-color: #ea580c;
  border-radius: 2px;
}

.weather-row .val {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

/* Console Section */
.terminal {
  background: #111827;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  max-height: 250px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "Courier New", Courier, monospace;
  color: #93c5fd;
  font-size: 13px;
  line-height: 1.6;
}

.log-line span.icon {
  margin-right: 8px;
  color: #60a5fa;
}

.log-line.white {
  color: #f8fafc;
}
