/* ── WP City Weather Pro v3.0 – SEO Pages & Archive ── */

/* Page wrapper */
.wcp-page-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-family: var(--wcp-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.wcp-breadcrumb {
  font-size: .82rem;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wcp-breadcrumb a { color: #4f6ef7; text-decoration: none; }
.wcp-breadcrumb a:hover { text-decoration: underline; }
.wcp-breadcrumb span { color: #ccc; }

/* ── City article ────────────────────────────────────────────── */
.wcp-city-article .wcp-widget { margin-bottom: 32px; }
.wcp-city-article .entry-content,
.wcp-city-article .post-content { margin-top: 24px; color: #374151; line-height: 1.7; }

/* ── Related cities ──────────────────────────────────────────── */
.wcp-related { margin-top: 40px; }
.wcp-related-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f3a;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.wcp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;        /* ← force full container width */
  box-sizing: border-box;
}

.wcp-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f9faff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 14px 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, background .2s;
  min-width: 0;
  overflow: hidden;
  width: 100%;        /* ← card must fill its grid cell */
  box-sizing: border-box;
}
.wcp-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79,110,247,.13);
  background: #eef2ff;
}
.wcp-rel-icon  { font-size: 30px; line-height: 1; margin-bottom: 6px; flex-shrink: 0; }
.wcp-rel-city  {
  font-size: .8rem;
  font-weight: 700;
  color: #1a1f3a;
  width: 100%;
  white-space: nowrap;       /* ← stop long names from wrapping */
  overflow: hidden;          /* ← hide overflow */
  text-overflow: ellipsis;   /* ← show … for long city names */
}
.wcp-rel-temp  { font-size: 1.1rem; font-weight: 800; color: #4f6ef7; margin: 2px 0; }
.wcp-rel-cond  {
  font-size: .7rem;
  color: #6b7280;
  width: 100%;
  white-space: nowrap;       /* ← same treatment for condition text */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Archive header ──────────────────────────────────────────── */
.wcp-archive-header {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border-radius: 20px;
  margin-bottom: 28px;
}
.wcp-archive-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1f3a;
  margin: 0 0 10px;
}
.wcp-archive-desc {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 20px;
}

/* ── Archive search ──────────────────────────────────────────── */
.wcp-search-wrap { max-width: 400px; margin: 0 auto; }
.wcp-search-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid #e0e7ff;
  border-radius: 50px;
  outline: none;
  box-shadow: 0 2px 12px rgba(79,110,247,.08);
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.wcp-search-input:focus {
  border-color: #4f6ef7;
  box-shadow: 0 2px 20px rgba(79,110,247,.2);
}

/* ── City card grid (archive) ────────────────────────────────── */
.wcp-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.wcp-city-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  border: 1.5px solid transparent;
}
.wcp-city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.wcp-card-day  { background: linear-gradient(135deg,#f0f9ff,#eff6ff); border-color: #bfdbfe; }
.wcp-card-night{ background: linear-gradient(135deg,#0f1629,#1a2445); border-color: #2d3d6e; color: #e8ecff; }
.wcp-card-night .wcp-card-country { color: #8e9cc0; }
.wcp-card-night .wcp-card-cond    { color: #8e9cc0; }
.wcp-card-night .wcp-card-meta    { color: #8e9cc0; }

.wcp-card-icon   { font-size: 42px; line-height: 1; flex-shrink: 0; }
.wcp-card-body   { flex: 1; min-width: 0; }
.wcp-card-city   { font-size: 1rem; font-weight: 700; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcp-card-country{ font-size: .72rem; color: #6b7280; display: block; margin-bottom: 2px; }
.wcp-card-cond   { font-size: .78rem; color: #6b7280; }
.wcp-card-right  { text-align: right; flex-shrink: 0; }
.wcp-card-temp   { font-size: 1.7rem; font-weight: 800; color: #4f6ef7; line-height: 1; }
.wcp-card-night .wcp-card-temp { color: #6b8cff; }
.wcp-card-temp span { font-size: .9rem; font-weight: 500; color: #9ca3af; }
.wcp-card-meta   { font-size: .7rem; color: #6b7280; margin-top: 4px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wcp-archive-title { font-size: 1.4rem; }
  .wcp-city-grid { grid-template-columns: 1fr; }
  .wcp-related-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ── Weather Cities Grid Shortcode ──────────────────────────── */
.wcp-grid-sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 16px;
    letter-spacing: .02em;
}
.wcp-grid-sc-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.wcp-sc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9faff;
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    padding: 14px 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.wcp-sc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79,110,247,.13);
    background: #eef2ff;
}
.wcp-sc-icon { text-decoration:none!important; font-size: 30px; line-height: 1; margin-bottom: 6px; flex-shrink: 0; }
.wcp-sc-city {
    text-decoration:none!important;
    font-size: .8rem;
    font-weight: 700;
    color: #1a1f3a;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wcp-sc-temp { 
    text-decoration:none!important;
    font-size: 1.1rem; font-weight: 800; color: #4f6ef7; margin: 2px 0; }
.wcp-sc-cond {
    text-decoration:none!important;
    font-size: .7rem;
    color: #6b7280;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .wcp-grid-sc-wrap {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        height:auto;
    }
}