/*
Theme Name: YEXX City GEO
Theme URI: https://example.com/yexx-city-geo
Author: Codex
Description: Lightweight multi-city content theme for a GEO-ready nightlife guide site.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: yexx-city-geo
*/

:root {
  --bg: #f5f6f9;
  --surface: #fff;
  --surface-soft: #f9fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #ff3158;
  --accent-dark: #111827;
  --gold: #f3b33d;
  --shadow: 0 16px 38px rgba(15, 23, 42, .08);
  --radius: 8px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Optima-Regular, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-top {
  background: #111827;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-top .wrap,
.site-header .wrap,
.city-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-top .wrap {
  min-height: 36px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .wrap {
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #ff3158);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.main-nav,
.city-list,
.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a,
.city-list a,
.category-pills a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.city-list a.is-active,
.category-pills a.is-active {
  background: #111827;
  color: #fff;
}

.header-action {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.city-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.city-bar .wrap {
  min-height: 52px;
  gap: 16px;
}

.city-label {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 24px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-card,
.mini-card,
.post-card,
.side-card,
.article {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.mini-card {
  min-height: 260px;
  position: relative;
  color: #fff;
  isolation: isolate;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  min-height: 123px;
}

.media-fake {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72)),
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.5), transparent 18%),
    linear-gradient(135deg, #0f172a, #7f1d1d 48%, #f59e0b);
  z-index: -1;
}

.media-fake.blue {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.68)),
    radial-gradient(circle at 72% 12%, rgba(255,255,255,.55), transparent 16%),
    linear-gradient(135deg, #111827, #1d4ed8 48%, #06b6d4);
}

.media-fake.green {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.68)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.42), transparent 15%),
    linear-gradient(135deg, #052e16, #047857 48%, #f3b33d);
}

.card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.card-copy h2,
.card-copy h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.card-copy h2 {
  font-size: 28px;
}

.card-copy h3 {
  font-size: 16px;
}

.meta {
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.section-head {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.thumb {
  min-height: 118px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35)),
    linear-gradient(135deg, #111827, #be123c 46%, #f59e0b);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.post-excerpt {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 14px;
}

.post-tags {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.side-card {
  padding: 16px;
  margin-bottom: 16px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.rank-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-list li,
.plain-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.article {
  padding: 26px;
}

.article h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.32;
}

.venue-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}

.venue-info div {
  color: #374151;
  font-size: 14px;
}

.venue-info strong {
  color: #111827;
}

.footer {
  padding: 34px 0;
  background: #111827;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.mobile-bottom {
  display: none;
}

@media (max-width: 860px) {
  .site-header .wrap {
    min-height: 64px;
  }

  .main-nav,
  .header-action,
  .site-top {
    display: none;
  }

  .city-bar .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .page-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .post-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .thumb {
    min-height: 94px;
  }

  .post-card h2 {
    font-size: 16px;
  }

  .sidebar {
    display: none;
  }

  .article {
    padding: 18px;
  }

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

  .mobile-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .mobile-bottom a {
    padding: 10px 0;
    text-align: center;
    color: #374151;
    font-size: 12px;
  }

  body {
    padding-bottom: 54px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, var(--container));
  }

  .mini-grid,
  .post-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 220px;
  }

  .card-copy h2 {
    font-size: 23px;
  }
}
