/* rehearsalspacelosangeles.com — Global Styles */

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

:root {
  --accent: #7C3AED;
  --accent-light: #EDE9FE;
  --cta: #F03222;
  --cta-hover: #D42A1C;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #fff;
  --bg-alt: #f8f7fc;
  --border: #e5e5e5;
  --radius: 8px;
  --max-width: 860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky; top: 0; background: var(--bg); z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.site-logo {
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  letter-spacing: -.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--text-light); font-size: .9rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding: 4rem 2rem 3rem;
  border-bottom: none;
  background: linear-gradient(135deg, #0f0a1a 0%, #1a1033 35%, #2d1b4e 65%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: max(2rem, calc(50vw - 430px));
  padding-right: max(2rem, calc(50vw - 430px));
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(240,50,34,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 2.4rem; line-height: 1.2; font-weight: 800; letter-spacing: -.03em;
  margin-bottom: .75rem; color: #fff; position: relative; z-index: 1;
}
.hero .subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.6); max-width: 640px; position: relative; z-index: 1;
}
.hero .updated {
  margin-top: .75rem; font-size: .85rem; color: rgba(255,255,255,.35); position: relative; z-index: 1;
}
.hero .hero-search {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.25rem; padding: .6rem 1.15rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; color: rgba(255,255,255,.45); font-size: .9rem;
  cursor: default; position: relative; z-index: 1; transition: background .2s;
}
.hero .hero-search:hover { background: rgba(255,255,255,.11); }
.hero .hero-search .arrow { color: var(--accent); font-weight: 700; }

/* Blog Hero */
.blog-hero-section {
  background: linear-gradient(135deg, #1a1033 0%, #0f0a1a 60%, #1a1a2e 100%);
  padding: 3rem 0 2rem;
  position: relative;
}
.blog-hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(124,58,237,.08) 0%, transparent 55%);
  pointer-events: none;
}
.blog-hero-section h1 { font-size: 2rem; color: #fff; font-weight: 800; margin-bottom: .5rem; position: relative; z-index: 1; }
.blog-hero-section .subtitle { color: rgba(255,255,255,.5); position: relative; z-index: 1; }
.blog-hero-section .updated { color: rgba(255,255,255,.3); position: relative; z-index: 1; }
.blog-hero-section .breadcrumb { position: relative; z-index: 1; }
.blog-hero-section .breadcrumb, .blog-hero-section .breadcrumb a { color: rgba(255,255,255,.3); }
.blog-hero-section .breadcrumb a:hover { color: rgba(255,255,255,.7); }

/* Detail Hero */
.detail-header-hero {
  background: linear-gradient(135deg, #0f0a1a 0%, #1a1033 50%, #2d1b4e 100%);
  padding: 2.5rem 0 1.5rem;
  border-bottom: none;
  position: relative;
}
.detail-header-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(240,50,34,.06) 0%, transparent 55%);
  pointer-events: none;
}
.detail-header-hero h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; color: #fff; position: relative; z-index: 1; }
.detail-header-hero .rating-line { font-size: 1rem; margin-bottom: .25rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.detail-header-hero .stars { color: #f59e0b; }
.detail-header-hero .tagline { color: rgba(255,255,255,.5); font-size: 1.05rem; position: relative; z-index: 1; }
.detail-header-hero .breadcrumb { position: relative; z-index: 1; }
.detail-header-hero .breadcrumb, .detail-header-hero .breadcrumb a { color: rgba(255,255,255,.3); }
.detail-header-hero .breadcrumb a:hover { color: rgba(255,255,255,.7); }

/* Breadcrumb */
.breadcrumb { padding: .75rem 0; font-size: .85rem; color: #888; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--accent); }

/* Prose */
.prose { padding: 2rem 0; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; letter-spacing: -.02em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .75rem 1rem; margin: 1.5rem 0;
  background: var(--bg-alt); font-style: italic; color: var(--text-light);
}

/* Comparison Table */
.comparison-table-wrap { overflow-x: auto; margin: 2rem 0; }
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
.comparison-table th, .comparison-table td {
  padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-alt); font-weight: 700; white-space: nowrap; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-light);
}
.comparison-table tr:hover { background: var(--accent-light); }
.comparison-table .highlight-row { background: #fef3f2; font-weight: 600; }
.comparison-table .highlight-row:hover { background: #fde8e6; }

/* Space Card */
.space-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; margin: 2rem 0;
  transition: box-shadow .2s;
  overflow: hidden;
}
.space-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.space-card .card-color-bar { height: 5px; background: #d1d5db; }
.space-card .card-body { padding: 1.75rem; }
.space-card.featured {
  border-color: var(--cta); border-width: 2px;
  border-left-width: 4px;
  position: relative;
}
.space-card.featured .card-color-bar { background: var(--cta); height: 6px; }
.space-card.featured::before {
  content: "Our #1 Pick";
  position: absolute; top: -1px; right: 1.25rem;
  background: var(--cta); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .65rem .35rem; border-radius: 0 0 4px 4px; text-transform: uppercase; letter-spacing: .04em;
  z-index: 2;
}
.space-card .card-header {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem;
  margin-bottom: .75rem;
}
.space-card h3 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.space-card .badge {
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px;
  background: var(--accent-light); color: var(--accent); white-space: nowrap;
}
.space-card .badge-editors-choice {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
}
.space-card .stars { color: #f59e0b; font-size: .95rem; margin-bottom: .5rem; }
.space-card .meta { font-size: .9rem; color: var(--text-light); margin-bottom: .75rem; }
.space-card .meta .meta-icon { margin-right: .2rem; }
.space-card .meta strong { color: var(--text); }
.space-card .description { margin-bottom: 1rem; }

/* === Large Rating Display === */
.rating-display {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.rating-display .rating-number {
  font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1;
}
.rating-display .rating-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }

/* === Feature Tags === */
.feature-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .75rem;
}
.feature-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .55rem; font-size: .8rem; border-radius: 5px;
  background: var(--bg-alt); color: var(--text-light); font-weight: 500;
}
.feature-tag.tag-24-7 { background: #ecfdf5; color: #065f46; }
.feature-tag.tag-membership { background: #fef3f2; color: #991b1b; }
.feature-tag.tag-hourly { background: #fef3c7; color: #92400e; }
.feature-tag.tag-lockout { background: #ede9fe; color: #5b21b6; }
.feature-tag.tag-location { background: #eff6ff; color: #1d4ed8; }
.feature-tag.tag-recording { background: #ecfdf5; color: #065f46; }
.feature-tag.tag-no-recording { background: #f3f4f6; color: #6b7280; }

/* === What's Included Grid (TRC) === */
.whats-included {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.whats-included .item { text-align: center; padding: .4rem; }
.whats-included .item-icon { font-size: 1.4rem; margin-bottom: .2rem; }
.whats-included .item-label { font-size: .72rem; color: var(--text); font-weight: 600; }

/* === CTA Button Large === */
.cta-btn-lg {
  display: inline-block; padding: .85rem 2rem;
  background: var(--cta); color: #fff; border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(240,50,34,.2);
}
.cta-btn-lg:hover { background: var(--cta-hover); text-decoration: none; transform: translateY(-1px); }

/* === Photo Gallery Placeholders === */
.photo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin: 1.25rem 0;
}
.photo-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius);
  display: flex; align-items: flex-end; justify-content: center;
  padding: .75rem; font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.photo-placeholder:nth-child(1) { background: linear-gradient(135deg, #1a1033 0%, #2d1b4e 50%, #4a1a6b 100%); }
.photo-placeholder:nth-child(2) { background: linear-gradient(135deg, #0f0a1a 0%, #1e293b 50%, #334155 100%); }
.photo-placeholder:nth-child(3) { background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 50%, #2d1b4e 100%); }

/* === Check Icons === */
.check-yes { color: #16a34a; font-weight: 700; }
.check-no  { color: var(--cta); font-weight: 700; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.pros-cons li { padding: .25rem 0; padding-left: 1.4rem; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons li::before { content: "-"; position: absolute; left: 0; color: var(--cta); font-weight: 700; }
.pros-cons h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: .35rem; }

/* CTA */
.cta-btn, .cta-primary, a[href*="trc-landing-pages.pages.dev"] {
  display: inline-block;
  background: #F03222;
  color: white !important;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(240, 50, 34, 0.3);
}
.cta-btn:hover, .cta-primary:hover, a[href*="trc-landing-pages.pages.dev"]:hover {
  background: #d42a1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 50, 34, 0.4);
  text-decoration: none;
}

.cta-box {
  background: #fef3f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0; text-align: center;
}
.cta-box h3 { margin-bottom: .5rem; }
.cta-box p { margin-bottom: 1rem; color: var(--text-light); font-size: .95rem; }

/* Blog index */
.blog-list { list-style: none; padding: 0; }
.blog-list li { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.blog-list a { font-weight: 600; font-size: 1.05rem; }
.blog-list .excerpt { color: var(--text-light); font-size: .9rem; margin-top: .25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 3rem;
  font-size: .85rem; color: #888;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-grid h4 { font-weight: 700; color: var(--text); margin-bottom: .5rem; font-size: .9rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: .3rem; }
.footer-grid a { color: #888; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }

/* Detail page */
.detail-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.detail-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.detail-header .rating-line { font-size: 1rem; margin-bottom: .25rem; }
.detail-header .stars { color: #f59e0b; }
.detail-header .tagline { color: var(--text-light); font-size: 1.05rem; }

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0;
  font-size: .9rem;
}
.info-grid .item { background: var(--bg-alt); padding: .65rem .85rem; border-radius: var(--radius); }
.info-grid .label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #888; }

/* === Gallery Images === */
.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Hero Pill Link === */
.hero .hero-search {
  text-decoration: none;
}
.hero a.hero-search:hover {
  text-decoration: none;
  background: rgba(255,255,255,.15);
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
  table { font-size: 0.85rem; }
  th, td { padding: 8px 6px; }
  .hero h1 { font-size: 1.8rem; }
  .space-card .card-body { padding: 20px; }
}

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.65rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .detail-header h1 { font-size: 1.5rem; }
  .detail-header-hero h1 { font-size: 1.5rem; }
  .blog-hero-section h1 { font-size: 1.5rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .info-grid { grid-template-columns: 1fr; }
  .whats-included { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery { grid-template-columns: 1fr; }
  .feature-tags { gap: .3rem; }
  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: .5rem; }
  .site-header .container { justify-content: center; text-align: center; }
  .space-card .card-body { padding: 1.25rem; }
}
