:root {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input[type="text"] {
    width: 60%;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--accent);
}

button {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.39);
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.location-display {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

/* 7-Day Forecast Band */
.forecast-7day {
    margin-bottom: 3rem;
}

.scroll-band {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.scroll-band::-webkit-scrollbar {
    height: 6px;
}

.scroll-band::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
}

.daily-card {
    flex: 0 0 auto;
    width: 120px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.daily-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.daily-card .day {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.daily-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.daily-card .temps {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.daily-card .temps span.max {
    color: var(--text-main);
    font-weight: 600;
}

/* Hourly Forecast */
.forecast-hourly {
    display: flex;
    flex-direction: column;
}

.hourly-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hourly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: background 0.2s ease;
}

.hourly-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hourly-row .time {
    flex: 1;
    font-weight: 600;
}

.hourly-row .icon {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
}

.hourly-row .details {
    flex: 2;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hourly-row .temp {
    flex: 1;
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }
    input[type="text"], button {
        width: 100%;
    }
}


/* Universal Skibidi Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f59e0b;
  text-decoration: none;
  transition: all 0.2s;
}

.brand-link:hover {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.nav-divider {
  color: #94a3b8;
  opacity: 0.4;
  font-size: 1.1rem;
}

.nav-sublink {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-sublink:hover {
  color: #fff;
}

.game-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #f59e0b;
}

body {
  padding-top: 84px !important;
}

/* Ko-fi Footer */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.kofi-footer-container {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.kofi-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000 !important;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.kofi-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.6);
  filter: brightness(1.05);
}
.kofi-icon {
  font-size: 1.2rem;
  display: inline-block;
  animation: kofi-wiggle 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes kofi-wiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  94% { transform: rotate(-6deg); }
  97% { transform: rotate(4deg); }
}
