/* AZ Tax Foreclosures - Style Sheet */
/* Real Estate Development Authority */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Navigation */
.nav {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
.btn-silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #000; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }

/* Hero */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f1f5f9, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.hero-stat .label { color: var(--text-muted); font-size: 0.9rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Section */
.section { padding: 5rem 2rem; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Cards */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Membership Tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.tier-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.tier-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.tier-price { font-size: 3rem; font-weight: 800; margin-bottom: 0.25rem; }
.tier-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.tier-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.9rem; }

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.tier-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.tier-features li::before { content: '\2713'; color: var(--success); font-weight: 700; }
.tier-features li.disabled { opacity: 0.4; }
.tier-features li.disabled::before { content: '\2717'; color: var(--text-muted); }

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }

/* FAQ */
.faq { max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border-glass);
  padding: 1.25rem 0;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; color: var(--text-secondary); }
.faq-item.open .faq-answer { max-height: 500px; padding-top: 0.75rem; }

/* Map Page */
.map-container {
  display: flex;
  height: calc(100vh - 64px);
}

.map-sidebar {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  padding: 1.5rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.map-sidebar h3 { margin-bottom: 1rem; font-size: 1.1rem; }

#map { flex: 1; background: #1a1a2e; }

.filter-group { margin-bottom: 1.5rem; }
.filter-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-group input[type="range"] { width: 100%; accent-color: var(--accent); }
.filter-group select, .filter-group input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.county-filters { display: flex; flex-direction: column; gap: 0.4rem; }

.county-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.county-filter input[type="checkbox"] { accent-color: var(--accent); }

.county-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Search Page */
.search-container { padding: 2rem; }

.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-bar input, .search-bar select {
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  flex: 1;
  min-width: 150px;
}

.search-bar input:focus, .search-bar select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead { background: var(--bg-secondary); position: sticky; top: 64px; }

.data-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-glass);
  cursor: pointer;
  white-space: nowrap;
}

.data-table th:hover { color: var(--accent); }

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.data-table tr:hover { background: rgba(59, 130, 246, 0.05); }

.blurred { filter: blur(5px); user-select: none; pointer-events: none; }

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-active { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-scheduled { background: rgba(59, 130, 246, 0.2); color: var(--accent); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.4rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
}

.pagination button.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
}

.modal h2 { margin-bottom: 1.5rem; }

.modal input {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.modal .btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }

/* Membership Badge */
.membership-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-free { background: rgba(100,116,139,0.2); color: var(--text-muted); }
.badge-silver { background: rgba(148,163,184,0.2); color: var(--silver); }
.badge-gold { background: rgba(245,158,11,0.2); color: var(--gold); }

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .tiers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .map-container { flex-direction: column; }
  .map-sidebar { width: 100%; height: auto; max-height: 300px; }
  .nav-links { display: none; }
  .search-bar { flex-direction: column; }
  .data-table { font-size: 0.75rem; }
}
