/* ============================================
   Filament Hub & Filament Detail Pages
   ============================================ */

/* --- Hub Hero --- */
.filament-hub-hero {
  text-align: center;
  padding: 100px 24px 48px;
  position: relative;
}
.filament-hub-inner { max-width: var(--max-width); margin: 0 auto; }
.hub-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); padding: 6px 16px;
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 4px; margin-bottom: 20px;
  background: rgba(0,180,216,0.08);
}
.hub-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800; color: var(--chrome-white);
  margin-bottom: 12px; line-height: 1.1;
}
.hub-subtitle {
  font-size: 16px; color: var(--chrome-silver);
  max-width: 700px; margin: 0 auto; line-height: 1.6;
}

/* --- Filter Bar --- */
.filament-filters {
  position: sticky; top: var(--nav-height, 64px); z-index: 80;
  background: rgba(0,0,17,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 0;
}
.filament-filters-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--chrome-silver);
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 16px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  background: rgba(0,20,80,0.3); border: 1px solid var(--panel-border);
  color: var(--chrome-silver); cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip.active {
  background: rgba(0,180,216,0.12); border-color: var(--cyan);
  color: var(--cyan); font-weight: 600;
}
.filter-select {
  padding: 6px 12px; border-radius: 8px;
  font-family: var(--font-body); font-size: 13px;
  background: rgba(0,20,80,0.3); border: 1px solid var(--panel-border);
  color: var(--chrome-silver); cursor: pointer;
}
.filter-select option { background: #000433; }

/* --- Filament Grid --- */
.filament-grid-wrap {
  max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 64px;
}
.filament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.filament-card {
  background: var(--bg-panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.filament-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0,180,216,0.1);
}
.fc-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0a0a2e, #111144);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden; position: relative;
}
.fc-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
}
.fc-material-badge {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.fh-material-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 6px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
/* Material colors */
.fc-mat-pla { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.fc-mat-plaplus { background: rgba(34,197,94,0.25); color: #86efac; border: 1px solid rgba(34,197,94,0.5); }
.fc-mat-petg { background: rgba(0,180,216,0.2); color: #38bdf8; border: 1px solid rgba(0,180,216,0.4); }
.fc-mat-abs { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.fc-mat-absplus { background: rgba(239,68,68,0.25); color: #fca5a5; border: 1px solid rgba(239,68,68,0.5); }
.fc-mat-asa { background: rgba(249,115,22,0.2); color: #fb923c; border: 1px solid rgba(249,115,22,0.4); }
.fc-mat-tpu { background: rgba(168,85,247,0.2); color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }
.fc-mat-nylon-cf { background: rgba(100,100,100,0.3); color: #d4d4d4; border: 1px solid rgba(200,200,200,0.3); }
.fc-mat-pla-cf { background: rgba(100,100,100,0.3); color: #d4d4d4; border: 1px solid rgba(200,200,200,0.3); }

.fc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.fc-brand {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 4px;
}
.fc-name {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 800; color: var(--chrome-white);
  margin-bottom: 6px; line-height: 1.2;
}
.fc-tagline {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 12px; flex: 1;
}
.fc-specs-row {
  font-size: 11px; color: var(--chrome-silver);
  display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.fc-spec { white-space: nowrap; }
.fc-ratings {
  display: flex; gap: 12px; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--panel-border);
}
.fc-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
}
.fc-rating-label {
  font-family: var(--font-heading);
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.fc-stars { color: var(--cyan); font-size: 10px; letter-spacing: 1px; }
.fc-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.fc-price {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 800; color: var(--cyan);
}
.fc-tier {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 8px; border-radius: 4px;
}
.tier-budget { background: rgba(34,197,94,0.12); color: #4ade80; }
.tier-mainstream { background: rgba(0,180,216,0.12); color: var(--cyan); }
.tier-premium { background: rgba(255,215,0,0.12); color: #fbbf24; }
.tier-specialty { background: rgba(168,85,247,0.12); color: #c084fc; }

/* --- Compare CTA --- */
.compare-cta-section {
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid var(--panel-border);
}
.compare-cta-inner { max-width: 600px; margin: 0 auto; }
.compare-cta-inner h2 {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 800; color: var(--chrome-white);
  margin-bottom: 12px;
}
.compare-cta-inner p { font-size: 15px; color: var(--chrome-silver); line-height: 1.7; }
.compare-cta-inner a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.compare-cta-inner a:hover { text-decoration: underline; }

/* ============================================
   Filament Detail Page
   ============================================ */

.filament-breadcrumb {
  max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px 0; font-size: 13px; color: var(--text-muted);
}
.filament-breadcrumb a { color: var(--chrome-silver); text-decoration: none; }
.filament-breadcrumb a:hover { color: var(--cyan); }
.filament-breadcrumb span { margin: 0 6px; opacity: 0.4; }

.filament-hero { max-width: var(--max-width); margin: 0 auto; padding: 24px 24px 0; }
.fh-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start; padding-bottom: 32px;
}
.fh-image-wrap {
  background: linear-gradient(135deg, #0a0a2e, #111144);
  border-radius: 16px; border: 1px solid var(--panel-border);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.fh-image {
  width: 100%; height: 100%; object-fit: contain; padding: 20px;
}
.fh-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-tier { border: 1px solid currentColor; }
.badge-diff { border: 1px solid currentColor; }
.diff-beginner { color: #4ade80; background: rgba(34,197,94,0.1); }
.diff-intermediate { color: var(--cyan); background: rgba(0,180,216,0.1); }
.diff-advanced { color: #f87171; background: rgba(239,68,68,0.1); }
.badge-warn { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-info { background: rgba(0,180,216,0.15); color: var(--cyan); border: 1px solid rgba(0,180,216,0.3); }

.fh-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; color: var(--chrome-white);
  line-height: 1.1; margin-bottom: 8px;
}
.fh-tagline {
  font-size: 15px; color: var(--chrome-silver);
  line-height: 1.6; margin-bottom: 20px;
}
.fh-quick-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px;
}
.qs-item {
  background: rgba(0,20,80,0.3); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 10px 14px;
}
.qs-label {
  font-family: var(--font-heading);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px;
}
.qs-value { font-size: 14px; font-weight: 600; color: var(--chrome-white); }
.fh-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-buy {
  background: var(--cyan); color: var(--bg-void);
  font-family: var(--font-heading);
  font-weight: 700; font-size: 14px; padding: 12px 24px;
  border-radius: 8px; text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-buy:hover { background: var(--cyan-glow, #60a5fa); transform: translateY(-1px); }
.btn-buy-alt {
  background: transparent; color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 14px; padding: 12px 24px;
  border-radius: 8px; border: 1px solid var(--cyan);
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-buy-alt:hover { background: rgba(0,180,216,0.1); }

/* --- Spec Strip --- */
.fh-spec-strip {
  border-top: 1px solid var(--panel-border);
  border-bottom: 3px solid var(--cyan);
  margin-top: 32px; background: rgba(0,20,80,0.2);
}
.strip-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; overflow-x: auto; gap: 0;
}
.strip-inner::-webkit-scrollbar { height: 3px; }
.strip-inner::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }
.strip-item {
  padding: 14px 20px; white-space: nowrap;
  border-right: 1px solid var(--panel-border); flex-shrink: 0;
}
.strip-item:last-child { border-right: none; }
.strip-label {
  font-family: var(--font-heading);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px;
}
.strip-value { font-size: 13px; font-weight: 700; color: var(--chrome-white); }
.strip-value.highlight { color: var(--cyan); }

/* --- Tabs --- */
.filament-tabs-bar {
  position: sticky; top: var(--nav-height, 64px); z-index: 80;
  background: rgba(0,0,17,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}
.filament-tabs-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0; overflow-x: auto;
}
.ftab {
  padding: 14px 20px; font-family: var(--font-heading);
  font-size: 14px; font-weight: 600; color: var(--chrome-silver);
  background: none; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.ftab:hover { color: var(--cyan); }
.ftab.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* --- Main Layout --- */
.filament-main-layout {
  max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 64px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
}
.filament-tab { display: none; }
.filament-tab.active { display: block; }
.spec-section-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 800; color: var(--chrome-white);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

/* --- Spec Table --- */
.spec-table-wrap {
  background: var(--bg-panel); border: 1px solid var(--panel-border);
  border-radius: 12px; overflow: hidden;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-cat td {
  background: rgba(0,180,216,0.05); color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; border-top: 1px solid var(--panel-border);
}
.spec-table tr:not(.spec-cat) {
  border-top: 1px solid rgba(255,255,255,0.03);
}
.spec-table tr:not(.spec-cat):hover { background: rgba(0,180,216,0.02); }
.spec-label {
  padding: 12px 16px; font-size: 13px; color: var(--chrome-silver);
  width: 180px;
}
.spec-val {
  padding: 12px 16px; font-size: 13px; color: var(--chrome-white); font-weight: 500;
}

/* --- Feature Tags --- */
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag {
  font-family: var(--font-body);
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
  background: rgba(0,180,216,0.08); color: var(--cyan);
  border: 1px solid rgba(0,180,216,0.2);
}

/* --- Pros/Cons --- */
.proscons-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.pros-box, .cons-box {
  background: var(--bg-panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 20px;
}
.pros-box { border-left: 3px solid #4ade80; }
.cons-box { border-left: 3px solid #f87171; }
.pc-title {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 800; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.pc-pros { color: #4ade80; }
.pc-cons { color: #f87171; }
.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li {
  padding: 8px 0 8px 20px; font-size: 14px; color: var(--chrome-silver);
  border-bottom: 1px solid rgba(255,255,255,0.04); position: relative;
  line-height: 1.5;
}
.pc-list li:last-child { border-bottom: none; }
.pc-list li::before {
  content: "▸"; position: absolute; left: 4px; color: var(--cyan);
}

/* --- Settings Cards --- */
.settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.setting-card {
  background: var(--bg-panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 20px; text-align: center;
  transition: border-color 0.2s;
}
.setting-card:hover { border-color: var(--cyan); }
.setting-icon { font-size: 28px; margin-bottom: 8px; }
.setting-label {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 6px;
}
.setting-value {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800; color: var(--cyan); margin-bottom: 4px;
}
.setting-hint { font-size: 11px; color: var(--chrome-silver); }
.settings-note {
  background: rgba(0,180,216,0.05); border: 1px solid rgba(0,180,216,0.15);
  border-left: 3px solid var(--cyan);
  border-radius: 8px; padding: 14px 18px;
  font-size: 13px; color: var(--chrome-silver); line-height: 1.6;
}

/* --- Sidebar --- */
.filament-sidebar { position: sticky; top: calc(var(--nav-height, 64px) + 60px); align-self: start; }
.sidebar-box {
  background: var(--bg-panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.sb-title {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--cyan); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--panel-border);
}
.buy-box { text-align: center; }
.sb-price {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 900; color: var(--cyan);
  margin-bottom: 4px;
}
.sb-price-unit { font-size: 16px; font-weight: 600; color: var(--chrome-silver); }
.sb-buy-btn {
  display: block; width: 100%; padding: 12px;
  background: var(--cyan); color: var(--bg-void);
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700; border-radius: 8px;
  text-decoration: none; text-align: center; margin-bottom: 8px;
  transition: all 0.2s;
}
.sb-buy-btn:hover { background: var(--cyan-glow, #60a5fa); }
.sb-buy-alt {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
}
.sb-buy-alt:hover { background: rgba(0,180,216,0.1); }
.sb-article-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--panel-border);
  text-decoration: none; transition: all 0.2s;
}
.sb-article-link:last-child { border-bottom: none; }
.sb-article-link:hover .sb-article-title { color: var(--cyan); }
.sb-article-title { font-size: 13px; color: var(--chrome-silver); flex: 1; }
.sb-article-date { font-size: 11px; color: var(--text-muted); margin-left: 12px; }
.sb-spec {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
}
.sb-spec:last-child { border-bottom: none; }
.sb-spec span { color: var(--chrome-silver); }
.sb-spec strong { color: var(--chrome-white); font-weight: 600; text-align: right; max-width: 55%; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .fh-inner { grid-template-columns: 1fr; gap: 24px; }
  .filament-main-layout { grid-template-columns: 1fr; }
  .filament-sidebar { position: static; }
  .proscons-grid { grid-template-columns: 1fr; }
}
