/*
Theme Name: Snow Day Predictor
Theme URI: https://snowdayspredictorr.com
Author: Snow Day Predictor Team
Author URI: https://snowdayspredictorr.com
Description: A custom WordPress theme for Snow Day Predictor — helping students, parents, and teachers check snow day predictions for their area.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snow-day-theme
Tags: snow, weather, education, calculator, predictor
*/

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --navy: #0f2444;
  --navy-light: #1a3a6e;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --sky: #e0f2fe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --teal: #0d9488;
}

/* ============================================
   Reset & Base
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a,
.nav-links .nav-item > a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover,
.nav-links .nav-item > a:hover {
  background: var(--navy-light);
  color: var(--white);
}

.nav-item {
  position: relative;
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 8px;
  z-index: 1001;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  color: var(--gray-800) !important;
  padding: 10px 14px !important;
  border-radius: 6px;
  display: block;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--sky) !important;
  color: var(--blue) !important;
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-light) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  padding: 80px 20px 100px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Calculator Box */
.calc-box {
  max-width: 600px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(20px);
  text-align: center;
  overflow: visible;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.calc-box label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.calc-input-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.calc-input-group input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  height: 54px;
  box-sizing: border-box;
}

.calc-input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.calc-input-group input:focus {
  border-color: rgba(255,255,255,0.5);
}

.calc-input-group button {
  padding: 0 22px;
  height: 54px;
  border-radius: 12px;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  max-width: 140px;
}

.calc-input-group button:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Live Ticker
   ============================================ */
.ticker {
  background: var(--gray-800);
  color: var(--white);
  padding: 12px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  gap: 50px;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ticker-dot.red { background: var(--red); }
.ticker-dot.amber { background: var(--amber); }
.ticker-dot.green { background: var(--green); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 80px 20px;
}

.section-gray {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* ============================================
   Active Cities Cards
   ============================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.city-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}

.city-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 15px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.city-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.city-icon.high { background: #fef2f2; }
.city-icon.medium { background: #fffbeb; }
.city-icon.low { background: #f0fdf4; }

.city-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.city-info .chance {
  font-size: 0.85rem;
  font-weight: 600;
}

.city-info .chance.high { color: var(--red); }
.city-info .chance.medium { color: var(--amber); }
.city-info .chance.low { color: var(--green); }

.city-info .detail {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ============================================
   State & City Grid
   ============================================ */
.grid-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.grid-tab {
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.grid-tab.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.grid-tab:hover:not(.active) {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.state-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.state-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--sky);
}

.state-link .state-emoji {
  font-size: 1.1rem;
}

/* ============================================
   Differentiator Section
   ============================================ */
.diff-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 20px;
  color: var(--white);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.diff-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.2s;
}

.diff-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.diff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  background: var(--white);
  transition: background 0.2s;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  color: var(--gray-800);
  font-family: inherit;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question .faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px 30px;
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    border-top: 1px solid var(--navy-light);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-item > a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-item .dropdown {
    position: static;
    box-shadow: none;
    background: var(--navy-light);
    border-radius: 6px;
    margin-top: 5px;
  }

  .nav-item .dropdown a {
    color: rgba(255,255,255,0.85) !important;
  }

  .nav-item .dropdown a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--white) !important;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 50px 20px 80px;
    overflow: visible;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .calc-input-group {
    gap: 8px;
  }

  .calc-input-group input {
    font-size: 0.9rem;
    padding: 14px 14px;
    height: 48px;
  }

  .calc-input-group button {
    height: 48px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }

  .section {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Blog / Archive Styles
   ============================================ */
.blog-listing {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-listing article {
  border-bottom: 1px solid var(--gray-200);
  padding: 30px 0;
}

.blog-listing article:first-child {
  padding-top: 0;
}

.blog-listing article h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-listing article h2 a {
  color: var(--gray-800);
  transition: color 0.2s;
}

.blog-listing article h2 a:hover {
  color: var(--blue);
}

.blog-listing .post-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 15px;
}

.blog-listing .post-excerpt {
  color: var(--gray-600);
  line-height: 1.7;
}

.blog-listing .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-listing .read-more:hover {
  color: var(--blue-light);
}

/* Single Post */
.single-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.single-post-content .post-header {
  margin-bottom: 30px;
}

.single-post-content .post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.single-post-content .post-meta {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.single-post-content .post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.single-post-content .post-body h2 {
  font-size: 1.6rem;
  margin: 35px 0 15px;
}

.single-post-content .post-body h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}

.single-post-content .post-body p {
  margin-bottom: 20px;
}

.single-post-content .post-body ul,
.single-post-content .post-body ol {
  margin: 0 0 20px 25px;
  list-style: disc;
}

.single-post-content .post-body ol {
  list-style: decimal;
}

.single-post-content .post-body li {
  margin-bottom: 8px;
}

.single-post-content .post-body img {
  border-radius: 8px;
  margin: 20px 0;
}

.single-post-content .post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 15px 20px;
  margin: 20px 0;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-600);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
  gap: 20px;
}

.post-navigation a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.post-navigation a:hover {
  color: var(--blue-light);
}

/* Page Template */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.page-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content .entry-content p {
  margin-bottom: 20px;
}

.page-content .entry-content h2 {
  font-size: 1.6rem;
  margin: 35px 0 15px;
}

.page-content .entry-content h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin: 0 0 20px 25px;
  list-style: disc;
}

.page-content .entry-content ol {
  list-style: decimal;
}

.page-content .entry-content li {
  margin-bottom: 8px;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 100px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .error-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.error-404 h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.error-404 p {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.error-404 .btn-home {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.error-404 .btn-home:hover {
  background: var(--blue-light);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination .current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* WordPress Specific */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding-top: 8px;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Shortcode Calculator (reusable on other pages) */
.snow-calc-shortcode {
  max-width: 600px;
  margin: 30px auto;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 16px;
  padding: 25px;
  color: var(--white);
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

.snow-calc-shortcode label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.snow-calc-shortcode .calc-input-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.snow-calc-shortcode .calc-input-group input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}

.snow-calc-shortcode .calc-input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.snow-calc-shortcode .calc-input-group button {
  padding: 0 20px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background: var(--blue-light);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  max-width: 140px;
}

.snow-calc-shortcode .calc-input-group button:hover {
  background: #60a5fa;
}

.snow-calc-shortcode .calc-input-group button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-400) !important;
}

/* Widget Areas */
.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-widgets .widget {
  color: rgba(255,255,255,0.75);
}

.footer-widgets .widget h4,
.footer-widgets .widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  opacity: 0.6;
  color: var(--white);
}

.footer-widgets .widget a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-widgets .widget a:hover {
  color: var(--white);
}

.footer-widgets .widget ul {
  list-style: none;
  padding: 0;
}

.footer-widgets .widget li {
  padding: 5px 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================
   Autocomplete Dropdown
   ============================================ */
.autocomplete-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  z-index: 100;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-height: 340px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  transition: background 0.15s;
  border-bottom: 1px solid var(--gray-100);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:first-child {
  border-radius: 12px 12px 0 0;
}

.autocomplete-item:last-child {
  border-radius: 0 0 12px 12px;
}

.autocomplete-item:only-child {
  border-radius: 12px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--blue);
  color: var(--white);
}

.autocomplete-item .city-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.autocomplete-item .state-name {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-left: 2px;
}

.autocomplete-item:hover .city-name,
.autocomplete-item.active .city-name,
.autocomplete-item:hover .state-name,
.autocomplete-item.active .state-name {
  color: var(--white);
}

.autocomplete-no-results {
  padding: 16px;
  font-style: italic;
  color: var(--gray-400);
  font-size: 0.9rem;
  text-align: center;
}

/* Disabled Calculate Button */
#calc-submit-btn.disabled,
.calc-input-group button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-400) !important;
}

#calc-submit-btn.disabled:hover,
.calc-input-group button.disabled:hover {
  transform: none;
  background: var(--gray-400) !important;
}

/* Scrollbar styling for the dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Mobile: full width dropdown */
@media (max-width: 768px) {
  .autocomplete-dropdown {
    left: 0;
    right: 0;
    border-radius: 10px;
  }

  .autocomplete-item {
    padding: 14px 16px;
  }
}

/* ============================================
   State / Province Page
   ============================================ */
.state-page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  padding: 50px 20px 60px;
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs .separator {
  color: rgba(255,255,255,0.3);
}

.breadcrumbs .current {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.state-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.state-page-subtitle {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 700px;
  line-height: 1.6;
}

/* Cities Section — uses same .state-grid / .state-link as homepage */
.state-cities-section {
  padding: 40px 0 80px;
  background: var(--gray-50);
}

.letter-section {
  margin-bottom: 35px;
}

.letter-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 16px;
  display: inline-block;
}

/* State Info Section */
.state-info-section {
  padding: 50px 20px;
  background: var(--white);
}

.state-info-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

.state-info-section p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 15px;
  max-width: 800px;
}

/* Empty State */
.state-empty {
  padding: 100px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .state-page-hero {
    padding: 30px 16px 40px;
  }

  .state-page-hero h1 {
    font-size: 1.6rem;
  }

  .state-page-subtitle {
    font-size: 0.95rem;
  }

  .state-cities-section {
    padding: 25px 0 50px;
  }
}

@media (max-width: 480px) {
  .state-page-hero h1 {
    font-size: 1.3rem;
  }

  .state-page-hero h1 {
    font-size: 1.3rem;
  }
}

/* =============================================
   PREDICTION PAGE
   ============================================= */

/* Hero */
.pred-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 40px 0 50px;
}

.pred-hero .breadcrumbs {
  margin-bottom: 20px;
}

.pred-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
}

.pred-hero-date {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.75;
  margin: 0;
}

/* Content */
.pred-content {
  background: #dfe6ed;
  padding: 30px 0 60px;
}

.pred-content .container {
  max-width: 700px;
}

/* Cards */
.pred-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.pred-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Summary Card */
.pred-summary-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #eef2ff, #f0f9ff);
  border: 1px solid #c7d2fe;
}

.pred-summary-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.pred-summary-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 6px;
}

.pred-summary-text h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.4;
}

.pred-summary-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Gauge Card */
.pred-gauge-card {
  text-align: center;
  padding: 28px 28px 20px;
}

.pred-gauge-wrapper {
  max-width: 340px;
  margin: 0 auto;
}

.pred-gauge {
  position: relative;
}

.gauge-svg {
  width: 100%;
  height: auto;
}

.gauge-text-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading, 'Inter', sans-serif);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
  padding: 0 10px;
  margin-top: -8px;
}

.pred-verdict {
  margin-top: 16px;
}

.verdict-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.verdict-badge.high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.verdict-badge.medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.verdict-badge.low {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.verdict-badge.none {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Weather Card */
.pred-weather-card {
  padding: 28px;
}

.pred-weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.pred-weather-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  padding: 12px 14px;
  border-radius: 10px;
}

.pred-weather-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pred-weather-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.pred-weather-label {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Factors Card */
.pred-factors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pred-factors-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-800);
}

.pred-factors-list li:last-child {
  border-bottom: none;
}

.factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pred-no-factors {
  color: var(--gray-400);
  font-style: italic;
  font-size: 0.95rem;
}

/* Info Card */
.pred-info-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 14px;
}

.pred-info-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.pred-info-item {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.88rem;
  color: var(--gray-800);
  line-height: 1.5;
  border-left: 3px solid var(--blue);
}

.pred-info-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
}

.pred-info-note {
  color: var(--gray-400);
  font-size: 0.82rem;
  font-style: italic;
}

/* Search Card */
.pred-search-card {
  text-align: center;
}

.pred-search-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.pred-updated {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 10px;
}

/* Not Found */
.prediction-not-found {
  padding: 6rem 0;
  text-align: center;
  background: #dfe6ed;
}

.empty-state .empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.empty-state p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.btn-home {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-home:hover {
  background: var(--navy);
}

/* Prediction Page Responsive */
@media (max-width: 768px) {
  .pred-hero {
    padding: 25px 0 35px;
  }

  .pred-hero-title {
    font-size: 1.5rem;
  }

  .pred-summary-card {
    flex-direction: column;
    gap: 10px;
  }

  .pred-info-factors {
    grid-template-columns: 1fr;
  }

  .pred-weather-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pred-hero-title {
    font-size: 1.25rem;
  }

  .pred-card {
    padding: 20px;
    border-radius: 10px;
  }

  .pred-weather-grid {
    grid-template-columns: 1fr;
  }
}
