/*
Theme Name: Home Sweet Home
Theme URI: https://homesweethome.community
Author: Community Theme
Author URI: https://homesweethome.community
Description: A warm community forum theme for local neighbourhoods. Features district tabs, forum categories, latest news, and full bbPress integration with a pink and green colour palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-sweet-home
Tags: community, forum, mobile-first, bbpress
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-1: #E0186A;   /* Hot pink */
  --color-2: #6BAE3C;   /* Mid green */
  --color-3: #4A7C1F;   /* Dark green */
  --color-4: #2C1A0E;   /* Dark brown/black */
  --color-5: #F5F0E8;   /* Warm cream */

  --bg:        var(--color-5);
  --surface:   #FFFFFF;
  --border:    #D6CCBB;
  --text:      var(--color-4);
  --text-muted:#6B6355;
  --accent:    var(--color-1);
  --green:     var(--color-2);
  --green-dk:  var(--color-3);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-ui:      'Nunito', 'Helvetica Neue', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-sm: 0 1px 4px rgba(44,26,14,.08);
  --shadow-md: 0 4px 16px rgba(44,26,14,.12);
  --shadow-lg: 0 8px 32px rgba(44,26,14,.16);

  --max-width: 480px;
  --side-pad: 16px;
  --header-h: 60px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.section-title {
  color: var(--green);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 2px;
}

/* ============================================================
   LAYOUT WRAPPER — mobile-first phone shell
   ============================================================ */
#page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.site-inner {
  padding-bottom: 80px; /* room for sticky bottom bar */
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-4);
  padding: 10px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  color: #fff;
  font-family: var(--font-heading);
  font-size: .75rem;
  line-height: 1.2;
  text-align: center;
}

.logo-text strong {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-login:hover { background: #c01059; }

.btn-menu {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   DISTRICT TABS (pill row)
   ============================================================ */
.district-nav {
  background: var(--surface);
  padding: 10px var(--side-pad) 0;
  border-bottom: 1px solid var(--border);
}

.district-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
}

.district-tabs::-webkit-scrollbar { display: none; }

.district-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  background: transparent;
  color: var(--text-muted);
}

.district-tab.active {
  background: var(--color-4);
  color: #fff;
  border-color: var(--color-4);
}

.district-tab:not(.active) {
  border-color: var(--border);
  background: var(--bg);
}

.district-tab:not(.active):hover {
  border-color: var(--green);
  color: var(--green);
}

.district-tab .tab-arrow {
  font-size: .65rem;
  opacity: .7;
}

.district-label {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px var(--side-pad) 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-content {
  padding: 14px var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   FORUM CATEGORY CARD
   ============================================================ */
.forum-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  display: block;
  color: inherit;
}

.forum-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.forum-card:active { transform: translateY(0); }

.forum-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.forum-card-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  color: var(--green);
}

.forum-card-heart {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--accent);
  opacity: .7;
  transition: opacity .2s, transform .2s;
}

.forum-card:hover .forum-card-heart {
  opacity: 1;
  transform: scale(1.2);
}

.forum-card-desc {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.45;
}

.forum-card-meta {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.forum-card-meta span { display: flex; align-items: center; gap: 3px; }

/* expanded card (right panel state) */
.forum-card.expanded {
  background: var(--surface);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.forum-card.expanded .forum-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green);
  text-align: center;
  display: block;
}

.forum-card.expanded .forum-card-body {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 12px;
}

/* ============================================================
   STICKY BOTTOM BAR — "Latest News" CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 90;
  padding: 12px var(--side-pad);
  background: linear-gradient(to top, var(--surface) 80%, transparent);
}

.btn-latest-news {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: .03em;
  box-shadow: 0 4px 20px rgba(224,24,106,.35);
  transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-latest-news:hover {
  background: #c01059;
  box-shadow: 0 6px 24px rgba(224,24,106,.5);
  transform: translateY(-1px);
}

.btn-latest-news:active { transform: translateY(0); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-4);
  z-index: 200;
  padding: 20px;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.nav-drawer.open { right: 0; }

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
}

.drawer-nav-links { display: flex; flex-direction: column; gap: 4px; }

.drawer-nav-links a {
  color: var(--bg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-nav-links a:hover { background: rgba(255,255,255,.1); }

.drawer-nav-links a.active {
  background: var(--accent);
  color: #fff;
}

.drawer-user-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.drawer-user-section p {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  font-family: var(--font-ui);
  margin-bottom: 12px;
}

/* ============================================================
   AUTH FORMS (Login / Register)
   ============================================================ */
.auth-wrap {
  padding: 24px var(--side-pad);
}

.auth-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo img { margin: 0 auto 8px; width: 64px; }

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-dk);
  text-align: center;
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: .03em;
}

.btn-primary:hover { background: #c01059; transform: translateY(-1px); }

.btn-secondary {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}

.btn-secondary:hover { background: var(--green-dk); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  background: transparent;
  transition: all .2s;
}

.btn-outline:hover { background: var(--accent); color: #fff; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.auth-switch a { color: var(--green); font-weight: 700; }

/* ============================================================
   FORUM POSTS LIST
   ============================================================ */
.forum-topic-list { display: flex; flex-direction: column; gap: 1px; }

.topic-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background .15s;
}

.topic-item:hover { background: var(--bg); }

.topic-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
}

.topic-body { flex: 1; min-width: 0; }

.topic-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-meta {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-meta .badge {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

.topic-meta .badge.green { background: var(--green); }

.topic-replies {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 36px;
}

.topic-replies-count {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green);
}

.topic-replies-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   NEW POST FORM
   ============================================================ */
.new-post-bar {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 16px;
}

.new-post-bar:hover { border-color: var(--green); }

.new-post-bar span {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: .9rem;
  flex: 1;
}

.new-post-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.page-title-bar {
  background: var(--color-4);
  color: #fff;
  padding: 12px var(--side-pad);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title-bar .back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.page-title-bar h2 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex: 1;
}

/* ============================================================
   WIDGETS & SIDEBARS
   ============================================================ */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.widget-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .85rem;
  color: var(--green-dk);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   BBPRESS OVERRIDES
   ============================================================ */
#bbpress-forums {
  font-family: var(--font-body);
}

#bbpress-forums .bbp-forums-list,
#bbpress-forums .bbp-topics-list,
#bbpress-forums .bbp-replies-list {
  border: none;
  background: transparent;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: var(--color-4);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
}

#bbpress-forums li.bbp-body { background: transparent; }

#bbpress-forums ul.bbp-forums li.bbp-forum,
#bbpress-forums ul.bbp-topics li.bbp-topic,
#bbpress-forums ul.bbp-replies li.bbp-reply {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 4px;
  transition: background .15s;
}

#bbpress-forums ul.bbp-forums li.bbp-forum:hover,
#bbpress-forums ul.bbp-topics li.bbp-topic:hover {
  background: var(--bg);
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title a,
#bbpress-forums .bbp-reply-title a {
  color: var(--green);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-title a:hover,
#bbpress-forums .bbp-reply-title a:hover {
  color: var(--accent);
}

#bbpress-forums .bbp-topic-count,
#bbpress-forums .bbp-reply-count {
  font-family: var(--font-ui);
  font-weight: 800;
  color: var(--accent);
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums textarea,
#bbpress-forums select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  background: var(--bg);
  transition: border-color .2s;
}

#bbpress-forums input:focus,
#bbpress-forums textarea:focus {
  border-color: var(--green);
  outline: none;
}

#bbpress-forums input[type="submit"],
#bbpress-forums button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}

#bbpress-forums input[type="submit"]:hover { background: #c01059; }

#bbpress-forums .bbp-pagination .bbp-pagination-links a,
#bbpress-forums .bbp-pagination .bbp-pagination-links span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  color: var(--text);
  transition: all .2s;
}

#bbpress-forums .bbp-pagination .bbp-pagination-links .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* bbPress user avatar */
#bbpress-forums .bbp-reply-author .bbp-reply-author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--green);
}

/* ============================================================
   COMMENTS / REPLIES
   ============================================================ */
.reply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
}

.reply-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .75rem;
  font-family: var(--font-ui);
}

.reply-author {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .85rem;
  color: var(--green-dk);
}

.reply-date {
  font-size: .75rem;
  color: var(--text-muted);
}

.reply-content {
  font-size: .88rem;
  line-height: 1.6;
}

/* ============================================================
   ADMIN NOTICES
   ============================================================ */
.notice-bar {
  background: var(--green);
  color: #fff;
  padding: 10px var(--side-pad);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================================
   NEWS CARD
   ============================================================ */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s;
}

.news-card:hover { box-shadow: var(--shadow-md); }

.news-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg);
}

.news-card-body { padding: 14px; }

.news-card-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .7rem;
  margin-bottom: 8px;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.news-card-meta {
  margin-top: 10px;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   USER PROFILE CARD
   ============================================================ */
.profile-card {
  text-align: center;
  padding: 20px var(--side-pad);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-family: var(--font-ui);
  font-weight: 800;
  margin: 0 auto 12px;
  border: 3px solid var(--accent);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.profile-district {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.profile-stat-value {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}

.profile-stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-section { padding: 16px var(--side-pad); }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.admin-stat-num {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--accent);
}

.admin-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-wrap input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 40px 10px 16px;
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
}

.search-wrap input:focus {
  border-color: var(--green);
  outline: none;
}

.search-wrap .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-4);
  color: rgba(255,255,255,.7);
  padding: 20px var(--side-pad) 90px;
  font-family: var(--font-ui);
  font-size: .8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy { opacity: .5; font-size: .72rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-pink  { color: var(--accent); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
}

.badge-pill.pink { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-pill.green { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   RESPONSIVE — wider screens keep phone chrome look
   ============================================================ */
@media (min-width: 520px) {
  #page {
    margin: 24px auto;
    border-radius: 32px;
    border: 6px solid var(--color-4);
    overflow: hidden;
  }

  body { background: #e8e0d4; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sticky-cta, .nav-drawer, .site-header { display: none; }
}
