/* Content-only styles for the States page.
   Shared chrome (header/nav/footer/floating CTA/resets/tokens) comes from shared-shell.css */

body { background: #F0F3FA; color: var(--text); }


/* SEARCH STRIP */
.search-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px var(--layout-gutter); }
.search-strip-inner { max-width: var(--layout-shell-max); margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  height: 42px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--orange); }
.search-box svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.search-box input {
  border: none; background: transparent; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text); width: 100%; outline: none;
}
.search-box input::placeholder { color: var(--muted); }
.filter-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 18px; height: 42px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange-light); border-color: var(--orange); color: var(--orange); }
.search-go {
  background: var(--orange); color: #fff;
  border: none; border-radius: 8px;
  padding: 0 22px; height: 42px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.search-go:hover { background: var(--orange-dark); }

/* MAIN BODY */
.body-wrap {
  max-width: var(--layout-shell-max);
  margin: 0 auto;
  padding: 32px var(--layout-gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* SECTION HEADER */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.4px;
}
.section-title span { color: var(--orange); }
.count-badge {
  background: var(--orange-light); color: var(--orange-dark);
  border-radius: 100px; padding: 3px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-left: 10px;
}
.view-toggle { display: flex; gap: 4px; }
.toggle-btn {
  width: 34px; height: 34px; border: 1.5px solid var(--border); background: var(--white); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--muted);
}
.toggle-btn:hover, .toggle-btn.active { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.toggle-btn svg { width: 15px; height: 15px; }

/* REGION TABS */
.region-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.rtab {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.rtab:hover { border-color: var(--orange); color: var(--orange-dark); }
.rtab.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* STATES GRID */
.states-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.state-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.state-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--orange); opacity: 0; transition: opacity 0.2s;
}
.state-card:hover { border-color: var(--orange); box-shadow: 0 4px 20px rgba(232,98,10,0.10); transform: translateY(-1px); }
.state-card:hover::before { opacity: 1; }
.state-card:hover .state-name { color: var(--orange-dark); }
.state-card:hover .arrow-icon { opacity: 1; transform: translateX(0); }
.state-icon {
  width: 38px; height: 38px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.state-info { flex: 1; min-width: 0; }
.state-name {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s;
}
.state-meta {
  font-size: 11.5px; color: var(--muted);
  margin-top: 2px; display: flex; align-items: center; gap: 4px;
}
.state-meta .live-dot { width: 5px; height: 5px; background: #0A7A45; border-radius: 50%; display: inline-block; }
.arrow-icon { color: var(--orange); opacity: 0; transform: translateX(-4px); transition: all 0.2s; flex-shrink: 0; }
.arrow-icon svg { width: 14px; height: 14px; }
.ut-tag {
  font-size: 9.5px; font-weight: 600; background: #EEF2FF; color: #3B4DA8;
  border-radius: 4px; padding: 1px 6px; letter-spacing: 0.04em; margin-left: 4px; vertical-align: middle; white-space: nowrap;
}

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.sidebar-head {
  background: var(--navy);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-head .ico {
  width: 28px; height: 28px;
  background: rgba(232,98,10,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-head .ico svg { width: 14px; height: 14px; fill: var(--orange); }
.sidebar-head h3 { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: #fff; }
.sidebar-body { padding: 16px 18px; }

.quick-links { display: flex; flex-direction: column; gap: 6px; }
.qlink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s;
  border: 1px solid transparent;
}
.qlink:hover { background: var(--orange-light); border-color: rgba(232,98,10,0.2); }
.qlink .ql-ico { width: 18px; height: 18px; flex-shrink: 0; }
.qlink .ql-text { font-size: 13px; font-weight: 500; color: var(--slate); }
.qlink:hover .ql-text { color: var(--orange-dark); }
.qlink .ql-count {
  margin-left: auto;
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--white); border-radius: 100px; padding: 2px 8px; border: 1px solid var(--border);
}

.live-list { display: flex; flex-direction: column; gap: 10px; }
.live-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.live-item:last-child { border-bottom: none; padding-bottom: 0; }
.live-item .li-title {
  font-size: 12.5px; font-weight: 500; color: var(--navy);
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.live-item .li-meta { display: flex; gap: 8px; font-size: 11px; color: var(--muted); }
.live-item .li-state { color: var(--orange-dark); font-weight: 600; }
.new-badge {
  background: var(--green-light); color: var(--green);
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase;
}

.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(232,98,10,0.15);
  border-radius: 50%;
}
.cta-card h3 {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; position: relative;
}
.cta-card p {
  font-size: 12.5px; color: rgba(255,255,255,0.6);
  margin-bottom: 16px; line-height: 1.5; position: relative;
}
.cta-card .cta-btn {
  display: block; background: var(--orange); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; position: relative; transition: background 0.2s;
}
.cta-card .cta-btn:hover { background: var(--orange-dark); }

/* INFO STRIP */
.info-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px var(--layout-gutter);
  margin-bottom: 0;
}
.info-strip-inner { max-width: var(--layout-shell-max); margin: 0 auto; }
.info-strip p {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.7; margin-bottom: 10px;
}
.info-strip p:last-child { margin-bottom: 0; }
.info-strip strong { color: var(--slate); font-weight: 600; }

/* FILTER VISIBILITY */
.state-card.hidden { display: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .body-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .states-grid { grid-template-columns: 1fr; }
}
