/* ============================================================
   NO. 61 SHREWSBURY — MAIN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a6a9a;
  --blue-dk: #155a8a;
  --blue-fr: #0d3a5c;
  --yellow:  #f0d800;
  --yellow-dk:#c8b000;
  --navy:    #1a3a6b;
  --bg:      #f0f2f5;
  --white:   #ffffff;
  --card:    #ffffff;
  --text:    #1c1e21;
  --muted:   #65676b;
  --border:  #dde1e7;
  --radius:  10px;
  --shadow:  0 1px 3px rgba(0,0,0,0.1);
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* --- GLOBAL NAV RESET (prevents WordPress bullet injection) --- */
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }

/* --- TOP NAVIGATION --------------------------------------- */
#site-header {
  background: var(--blue);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo-pill {
  background: var(--yellow);
  border-radius: 50px;
  padding: 5px 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-tagline::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.4);
}

#site-navigation { display: flex; align-items: center; gap: 4px; }

/* Strip WordPress default ul/li menu styling */
#site-navigation ul,
#site-navigation ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

#site-navigation ul li {
  display: flex;
  align-items: center;
  position: relative;
}

#site-navigation a {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: block;
}

#site-navigation a:hover,
#site-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.15);
  color: var(--yellow);
  text-decoration: none;
}

/* Hide dropdown sub-menus by default */
#site-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-fr);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 2px;
  z-index: 9999;
}

#site-navigation ul li:hover > ul { display: flex; }

#site-navigation ul ul a {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
}

.header-search {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 7px 16px;
  color: #fff;
  font-size: 13px;
  width: 180px;
  outline: none;
  font-family: var(--font-body);
}

.header-search::placeholder { color: rgba(255,255,255,0.6); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 20px;
}

/* --- COVER HERO ------------------------------------------- */
#cover-hero {
  width: 100%;
  height: 380px;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cover-shopfront-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,0.35));
  pointer-events: none;
}

/* --- PROFILE BAR ------------------------------------------ */
#profile-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.profile-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 0;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--yellow);
  border: 5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -56px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 34px;
  color: var(--navy);
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-info {
  flex: 1;
  padding: 16px 0 12px;
}

.profile-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 30px;
  color: var(--text);
}

.profile-stats {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.profile-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 560px;
  line-height: 1.5;
}

.profile-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 16px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-yellow  { background: var(--yellow); color: var(--navy); }
.btn-ghost   { background: #e4e6eb; color: var(--text); }

/* Profile tabs */
.profile-tabs {
  display: flex;
  gap: 2px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  overflow-x: auto;
}

.profile-tab {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.profile-tab:hover {
  background: var(--bg);
  color: var(--text);
  border-radius: 8px 8px 0 0;
}

.profile-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* --- MAIN CONTENT LAYOUT ---------------------------------- */
#content-wrap {
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

/* --- SIDEBAR ---------------------------------------------- */
#secondary {
  position: sticky;
  top: 76px;
}

.widget-area { }

.no61-widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.no61-widget-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}

/* About widget rows */
.about-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--bg);
}

.about-row:last-child { border-bottom: none; }
.about-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.about-label { color: var(--text); font-weight: 600; }

/* Hours widget */
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg);
  color: var(--muted);
}

.hours-row:last-child { border-bottom: none; }
.hours-today { color: var(--blue); font-weight: 700; }

/* Photo grid widget */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.photo-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-grid a:hover img { transform: scale(1.08); }

/* --- POSTS / FEED ----------------------------------------- */
#primary { }

/* Create post box */
.create-post {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  color: var(--navy);
  flex-shrink: 0;
}

.create-post-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
}

/* Post card */
article.post, article.page {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  color: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}

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

.post-meta-wrap { flex: 1; }

.post-author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 20px;
  font-family: var(--font-head);
}

.post-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.post-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  margin: 0 16px 8px;
  line-height: 1.3;
}

.post-title a { color: var(--text); }
.post-title a:hover { color: var(--blue); text-decoration: none; }

.post-content {
  padding: 0 16px 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.post-content p { margin-bottom: 12px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content h2, .post-content h3 { font-family: var(--font-head); font-weight: 800; color: var(--text); margin: 16px 0 8px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 12px; }
.post-content blockquote { border-left: 4px solid var(--yellow); padding: 8px 16px; background: var(--bg); margin: 12px 0; border-radius: 0 6px 6px 0; font-style: italic; color: var(--muted); }

/* Featured image */
.post-thumbnail {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-thumbnail:hover img { transform: scale(1.02); }

/* Reaction bar */
.post-reactions {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reaction-icons { display: flex; align-items: center; gap: 2px; }

.reaction-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid var(--white);
  margin-left: -4px;
}

.reaction-dot:first-child { margin-left: 0; }
.rd-like  { background: var(--blue); }
.rd-love  { background: #e4405f; }
.rd-star  { background: var(--yellow); }

.reaction-count { font-size: 14px; color: var(--muted); margin-left: 8px; }
.comment-count  { font-size: 13px; color: var(--muted); }

/* Action buttons */
.post-actions { display: flex; }

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
  background: none;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--bg);
  color: var(--blue);
  text-decoration: none;
}

/* Read more link */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

/* --- PAGINATION ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-numbers.current { background: var(--blue); color: #fff; }
.page-numbers:hover:not(.current) { background: var(--bg); text-decoration: none; }

/* --- SINGLE POST ------------------------------------------ */
.single-post-content {
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

.back-to-feed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

/* --- COMMENTS --------------------------------------------- */
.comments-area {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.comments-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
}

.comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-body {
  background: var(--bg);
  border-radius: 0 10px 10px 10px;
  padding: 10px 14px;
  flex: 1;
}

.comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment-text   { font-size: 14px; color: var(--text); margin-top: 4px; }
.comment-date   { font-size: 12px; color: var(--muted); margin-top: 4px; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--blue); }
.comment-form textarea { min-height: 100px; resize: vertical; }

/* --- FOOTER ----------------------------------------------- */
#colophon {
  background: var(--blue-fr);
  color: rgba(255,255,255,0.8);
  margin-top: 40px;
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.footer-col ul { list-style: none; }
.footer-col ul li { padding: 3px 0; }
.footer-col ul a { color: rgba(255,255,255,0.75); }
.footer-col ul a:hover { color: var(--yellow); text-decoration: none; }

.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  color: var(--yellow);
  display: inline-block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* --- PAGE TEMPLATES --------------------------------------- */
.page-template-full-width #content-wrap {
  grid-template-columns: 1fr;
}

/* --- NO. 61 COVER SVG ART --------------------------------- */
.shopfront-art {
  width: 100%;
  height: 380px;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.wall-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 44px);
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 900px) {
  #content-wrap { grid-template-columns: 1fr; }
  #secondary { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .profile-head { flex-wrap: wrap; }
  .profile-actions { flex-wrap: wrap; }
  #site-navigation { display: none; }
  #site-navigation.toggled { display: block; position: absolute; top: 56px; left: 0; right: 0; background: var(--blue-fr); padding: 12px; z-index: 999; }
  #site-navigation.toggled ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #site-navigation.toggled ul li { width: 100%; }
  #site-navigation.toggled a { width: 100%; }
  .menu-toggle { display: block; }
  .header-search { display: none; }
  #cover-hero { height: 240px; }
  .profile-avatar { width: 110px; height: 110px; font-size: 24px; margin-top: -40px; }
  .profile-name { font-size: 22px; }
  .single-post-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #site-header { padding: 0 14px; }
  .profile-bar-inner, .profile-bar-inner .profile-head { padding: 0 12px; }
  #content-wrap { padding: 0 10px; }
  .profile-tab { padding: 10px 12px; font-size: 13px; }
}
