/* Pogoda Kg - Custom CSS & Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #FF9F43;
  --primary-hover: #ff8b26;
  --accent-blue: #3867D6;
  --accent-purple: #6C5CE7;
  
  --bg-light: #F4F7FA;
  --surface-light: #FFFFFF;
  --card-bg-light: #F0F4F8;
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --text-main-light: #1E293B;
  --text-sub-light: #64748B;
  --border-light: #E2E8F0;

  --bg-dark: #0B0F19;
  --surface-dark: #151C2C;
  --card-bg-dark: #1E293B;
  --glass-bg-dark: rgba(21, 28, 44, 0.85);
  --text-main-dark: #F8FAFC;
  --text-sub-dark: #94A3B8;
  --border-dark: #334155;

  /* Active Theme Colors */
  --bg-main: var(--bg-light);
  --surface: var(--surface-light);
  --card-bg: var(--card-bg-light);
  --glass-bg: var(--glass-bg-light);
  --text-main: var(--text-main-light);
  --text-sub: var(--text-sub-light);
  --border: var(--border-light);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme, [data-theme="dark"] {
  --bg-main: var(--bg-dark);
  --surface: var(--surface-dark);
  --card-bg: var(--card-bg-dark);
  --glass-bg: var(--glass-bg-dark);
  --text-main: var(--text-main-dark);
  --text-sub: var(--text-sub-dark);
  --border: var(--border-dark);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Floating Dark Mode Sidebar Switch Widget (Exact match to template image) */
.floating-dark-toggle {
  position: fixed;
  left: 0;
  top: 40%;
  transform: translateY(-50%);
  background: #111827;
  color: #FFFFFF;
  padding: 16px 12px;
  border-radius: 0 16px 16px 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #4B5563;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Top Header Bar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--primary);
}

.brand-icon {
  background: linear-gradient(135deg, #FF9F43, #FF5252);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.4);
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

nav.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-sub);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--primary);
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.domain-badge {
  background: rgba(255, 159, 67, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 159, 67, 0.3);
}

.lang-selector {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 159, 67, 0.4);
}

/* Hero Section - Enlarged & Grander Layout */
.hero-section {
  position: relative;
  min-height: 760px;
  background-color: #0F172A;
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.88)),
                    url('../assets/images/hero_mountains.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 110px 40px 140px 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 50px;
  align-items: center;
}

.hero-left {
  max-width: 720px;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 159, 67, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 159, 67, 0.5);
  color: #FFB03B;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px rgba(255, 159, 67, 0.2);
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.7);
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  line-height: 1.65;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* City Pills with Mini Thumbnails */
.city-pill {
  padding: 8px 18px 8px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.city-pill-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.6);
}


/* Location Search Input Container */
.search-box-wrapper {
  position: relative;
  max-width: 580px;
}

.search-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  padding: 20px 60px 20px 28px;
  border-radius: 36px;
  font-size: 17px;
  font-weight: 500;
  color: #0F172A;
  outline: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.search-box:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  pointer-events: none;
}

/* Hero Right Weather Summary Card */
.hero-weather-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0F172A;
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dark-theme .hero-weather-card {
  background: rgba(21, 28, 44, 0.92);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.15);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-title {
  font-size: 28px;
  font-weight: 800;
}

.weather-icon-large {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-main-temp {
  text-align: center;
  margin: 12px 0;
}

.card-date {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-weight: 600;
}

.big-temp {
  font-size: 78px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--primary);
}

.weather-status {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
}

.card-bottom-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 15px;
  font-weight: 600;
}

/* Photo Gallery Section Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-caption h4 {
  font-size: 18px;
  font-weight: 700;
}

.gallery-caption p {
  font-size: 13px;
  opacity: 0.85;
}


.dark-theme .card-bottom-metrics {
  border-top-color: rgba(255,255,255,0.1);
}

.metric-divider {
  width: 1px;
  height: 20px;
  background: currentColor;
  opacity: 0.2;
}

/* Kyrgyzstan City Quick Selector Pills */
.city-selector-section {
  max-width: 1280px;
  margin: -35px auto 40px auto;
  position: relative;
  z-index: 10;
  padding: 0 40px;
}

.city-pills-container {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.city-pill {
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.city-pill:hover {
  background: rgba(255, 159, 67, 0.15);
  color: var(--primary);
  border-color: var(--primary);
}

.city-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(255, 159, 67, 0.4);
}

/* Shared Section Styling */
.section-wrapper {
  max-width: 1280px;
  margin: 0 auto 60px auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto;
}

/* Hourly Forecast Slider Section (Matching screenshot design) */
.hourly-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
}

.slider-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hourly-cards-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px;
  scrollbar-width: none;
  width: 100%;
}

.hourly-cards-container::-webkit-scrollbar {
  display: none;
}

.hourly-card {
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hourly-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.hourly-icon {
  width: 40px;
  height: 40px;
  margin: 6px 0;
}

.hourly-temp {
  font-size: 22px;
  font-weight: 700;
}

.hourly-condition {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.hourly-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  width: 100%;
  justify-content: center;
}

.hourly-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

/* Today Weather Details Section (Matching screenshot design) */
.today-details-grid {
  display: grid;
  grid-template-columns: 340px 1fr 1fr;
  gap: 24px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 159, 67, 0.4);
}

.detail-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 159, 67, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.detail-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.detail-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

/* Sun Arc Component */
.sun-arc-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.sun-arc-svg {
  width: 100%;
  max-width: 240px;
  height: 120px;
}

.sun-times {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 240px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sun-time-item span {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
}

/* Weekly Forecast Section */
.weekly-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.weekly-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.weekly-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.weekly-day {
  font-weight: 700;
  font-size: 15px;
}

.weekly-date {
  font-size: 12px;
  color: var(--text-sub);
}

.weekly-temp-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.weekly-temp-max {
  color: var(--text-main);
}

.weekly-temp-min {
  color: var(--text-sub);
  font-weight: 500;
}

/* Latest Weather Forecast News / Blog Section (Matching screenshot design) */
.news-bento-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  grid-template-rows: 240px 240px;
  gap: 20px;
}

.news-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.news-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.news-card-featured {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-tag {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-card-featured .news-title {
  font-size: 26px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Blog Page Specific Styles */
.page-header-banner {
  background: linear-gradient(135deg, var(--surface), var(--card-bg));
  padding: 50px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Contact Page Specific Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.4);
  transform: translateY(-2px);
}

/* Map View Container */
.map-view-box {
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Footer */
footer.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px 40px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-sub);
  margin-top: 16px;
  font-size: 14px;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-sub);
  font-size: 14px;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary);
}

.copyright-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-sub);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .today-details-grid {
    grid-template-columns: 1fr;
  }

  .news-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .news-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 320px;
  }
  
  .weekly-forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  header.site-header {
    padding: 14px 20px;
  }

  nav.main-nav {
    display: none; /* Mobile menu can be expanded or toggle */
  }

  .hero-section {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .floating-dark-toggle {
    display: none; /* Retain standard switch in header for mobile */
  }

  .section-wrapper {
    padding: 0 20px;
  }

  .city-selector-section {
    padding: 0 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
