/* FixMyAxe.net — Shared Stylesheet v2 (Post Gemini Review) */
:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent2: #0f3460;
  --gold: #f5a623;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #2d2d2d;
  --muted: #6c757d;
  --border: #dee2e6;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Sticky footer layout */
html { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-footer { margin-top: auto; }

/* ── Header ── */
.site-header {
  background: var(--primary);
  color: white;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.site-logo img { height: 36px; }
.site-logo span { font-size: 1.2rem; font-weight: 700; }
.site-logo .tagline { font-size: 0.7rem; color: #aaa; display: block; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.header-nav a:hover { color: white; }
/* Fixed: use more specific selector instead of !important */
.header-nav a.btn-search-main {
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}
.header-nav a.btn-search-main:hover { background: #c73652; color: white; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--accent2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent2) 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* ── Main Layout ── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}
.page-main { min-width: 0; }

@media (max-width: 900px) {
  .page-container { grid-template-columns: 1fr; }
  .page-sidebar { order: -1; }
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: 14px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.card h3 { font-size: 1rem; color: var(--accent2); margin-bottom: 8px; }

/* ── Shop Listing Card ── */
.shop-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.shop-card:hover { border-left-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.shop-card.claimed { border-left-color: var(--gold); }
.shop-name { font-size: 1.1rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.shop-name:hover { color: var(--accent); }
.shop-meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.shop-instruments { font-size: 0.82rem; color: var(--accent2); margin-top: 6px; }
.shop-instruments span { background: #e8f0fe; padding: 2px 8px; border-radius: 12px; margin-right: 4px; display: inline-block; margin-top: 3px; }
.shop-rating { text-align: right; white-space: nowrap; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.stars-empty { color: #ddd; }
.rating-count { font-size: 0.78rem; color: var(--muted); }
.claimed-badge { background: var(--gold); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.shop-links { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.shop-links a { font-size: 0.82rem; color: var(--accent2); text-decoration: none; border: 1px solid var(--accent2); padding: 3px 10px; border-radius: 12px; transition: all 0.2s; }
.shop-links a:hover { background: var(--accent2); color: white; }

/* ── Individual Shop Page ── */
.shop-detail-header {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.shop-detail-header h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 6px; }
.shop-detail-header .claimed-full { background: var(--gold); color: white; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 10px; }
.shop-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.detail-item label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); display: block; margin-bottom: 2px; }
.detail-item a { color: var(--accent2); text-decoration: none; }
.detail-item a:hover { text-decoration: underline; }

/* ── Star Rating Widget ── */
.star-rating-widget { display: flex; gap: 4px; cursor: pointer; }
/* Removed user-select: none per Gemini review — accessibility improvement */
.star-rating-widget .star { font-size: 1.6rem; color: #ddd; transition: color 0.15s; }
.star-rating-widget .star.active, .star-rating-widget .star:hover, .star-rating-widget .star.hover { color: var(--gold); }

/* ── Reviews ── */
.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewer-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--muted); }
.review-stars { color: var(--gold); font-size: 0.9rem; }
.review-text { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.no-reviews { color: var(--muted); font-style: italic; font-size: 0.9rem; text-align: center; padding: 20px 0; }

/* ── Review Form ── */
.review-form { margin-top: 20px; }
.review-form h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--primary); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent2);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.btn { padding: 10px 22px; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #c73652; }
.btn-secondary { background: var(--accent2); color: white; }
.btn-secondary:hover { background: #0a2540; }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: #d4891a; }
.btn-outline { background: transparent; border: 2px solid var(--accent2); color: var(--accent2); }
.btn-outline:hover { background: var(--accent2); color: white; }

/* ── Claim Box ── */
.claim-box {
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.claim-box h3 { color: #8a6200; margin-bottom: 8px; font-size: 1rem; }
.claim-box p { font-size: 0.85rem; color: #6b4f00; margin-bottom: 14px; line-height: 1.5; }
.claim-price { font-size: 1.4rem; font-weight: 800; color: #8a6200; margin-bottom: 14px; }
.claim-price span { font-size: 0.85rem; font-weight: 400; }
.claim-features { text-align: left; margin-bottom: 16px; font-size: 0.82rem; color: #6b4f00; list-style: none; }
.claim-features li { margin-bottom: 4px; padding-left: 4px; }
.claim-features li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* ── Ad Slots ── */
.ad-slot { background: #f0f0f0; border: 1px dashed #ccc; border-radius: var(--radius); text-align: center; color: #aaa; font-size: 0.75rem; overflow: hidden; }
.ad-slot-banner { min-height: 90px; padding: 10px; }
.ad-slot-square { min-height: 250px; padding: 10px; }
.ad-slot-multiplex { min-height: 200px; padding: 10px; }

/* ── State/City Grid ── */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.location-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.location-card:hover { background: var(--accent2); color: white; transform: translateY(-2px); }
.location-card:hover .location-count { color: rgba(255,255,255,0.7); }
.location-name { font-weight: 600; font-size: 0.9rem; }
.location-count { font-size: 0.78rem; color: var(--muted); }

/* ── Footer ── */
.site-footer {
  background: var(--primary);
  color: #aaa;
  padding: 40px 20px 20px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a { display: block; color: #888; text-decoration: none; font-size: 0.82rem; margin-bottom: 6px; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; font-size: 0.78rem; text-align: center; }
.disclaimer { font-size: 0.75rem; color: #666; margin-top: 8px; line-height: 1.4; }

/* ── Utility ── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #ccc; border-top-color: var(--accent2); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-hero h1 { font-size: 1.5rem; }
  .shop-card { grid-template-columns: 1fr; }
  .header-nav .hide-mobile { display: none; }
  .page-container { padding: 16px; }
}
