/* /bonsai/css/global.css - T-shirt responsive breakpoints */

/* Force scrollbar gutter - prevents layout shift */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
}

:root {
  --brand: #1f8d4a;
  --text: #111827;
  --muted: #6b7280;
  --bg: #f8fafc;
  --white: #fff;
  --border: #e5e7eb;
  --header-bg: #fff;
  --header-shadow: 0 1px 0 rgba(0,0,0,.06);
  --footer-bg: #fff;
  --footer-shadow: 0 -1px 0 rgba(0,0,0,.06);
  --card-shadow: 0 2px 10px rgba(0,0,0,.08);
  --card-shadow-hover: 0 6px 16px rgba(0,0,0,.12);
  --pill-text: #fff;
  --pill-sold: #e53935;
  --pill-reserved: #ffbf00;
  --pill-discount: #0f9fae;
  --radius: 12px;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #000;
}

.hidden {
  display: none !important;
}

/* Layout container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* XS - Phone: Tighter padding */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* XL - Widescreen: Wider container */
@media (min-width: 1921px) {
  .container {
    max-width: 1400px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  margin-bottom: 20px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-size: 26px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand);
}

.search-form {
  margin-left: auto;
}

.search-pill {
  display: block;
  width: 260px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  outline: none;
}

.search-pill:focus {
  border-color: #bbb;
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

/* XS - Phone: Smaller search, brand */
@media (max-width: 480px) {
  .brand {
    font-size: 20px;
  }
  
  .search-pill {
    width: 180px;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .header-row {
    padding: 12px 0;
    gap: 12px;
  }
}

/* S - Tablet: Medium sizes */
@media (min-width: 481px) and (max-width: 768px) {
  .brand {
    font-size: 22px;
  }
  
  .search-pill {
    width: 220px;
  }
}

/* XL - Widescreen: Larger brand */
@media (min-width: 1921px) {
  .brand {
    font-size: 30px;
  }
  
  .search-pill {
    width: 300px;
  }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--footer-shadow);
  margin-top: auto;
    margin-top: 20px;
}

.footer-row {
  padding: 12px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

/* XS - Phone: Smaller footer text */
@media (max-width: 480px) {
  .footer-row {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* Cards */
.card {
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Status pills */
.status-parent {
  position: relative;
  overflow: visible;
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font: 700 12px/1 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pill-text);
  background: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.15);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 5;
}

.status-pill .status-text {
  white-space: nowrap;
}

.status-pill.is-sold {
  background: var(--pill-sold);
}

.status-pill.is-reserved {
  background: var(--pill-reserved);
  color: #000;
  text-shadow: none;
}

.status-pill.is-discounted {
  background: var(--pill-discount);
}

/* XS - Phone: Smaller pills */
@media (max-width: 480px) {
  .status-pill {
    padding: 6px 10px;
    font-size: 10px;
    top: 8px;
    left: 8px;
  }
}

/* Hero image container pill positioning */
.hero-image-container {
  position: relative;
}

.hero-image-container .status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}