/* =====================================================
   K-Beauty Brand Database Page Styles
   Bloomberg-style data platform design
   ===================================================== */

/* ── Page Base ── */
.brands-page {
  background: #0a0a0f;
  color: #e8e8e8;
}

/* ── Brands Hero ── */
.brands-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0a0a0f 0%, #12121e 60%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.brands-hero-content {
  max-width: 760px;
}

.brands-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.brands-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.brands-hero-desc {
  font-size: 1.05rem;
  color: rgba(232, 232, 232, 0.7);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 600px;
}

.brands-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.bhs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bhs-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #C9A84C;
  line-height: 1;
}

.bhs-label {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.5);
  letter-spacing: 0.05em;
}

/* ── Filter Bar ── */
.brands-filter-bar {
  background: #111118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  position: sticky;
  top: 92px;
  z-index: 100;
}

.brands-filter-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brands-search-wrap {
  position: relative;
  flex: 0 0 220px;
}

.brands-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 32px 8px 12px;
  color: #e8e8e8;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.brands-search:focus {
  border-color: rgba(201, 168, 76, 0.5);
}

.brands-search::placeholder {
  color: rgba(232, 232, 232, 0.35);
}

.brands-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(232, 232, 232, 0.35);
  font-size: 0.9rem;
  pointer-events: none;
}

.brands-cat-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.brands-cat-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 6px 14px;
  color: rgba(232, 232, 232, 0.6);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.brands-cat-tab:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: #C9A84C;
}

.brands-cat-tab.active {
  background: rgba(201, 168, 76, 0.12);
  border-color: #C9A84C;
  color: #C9A84C;
}

.brands-sort {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 7px 12px;
  color: #e8e8e8;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

/* ── Section Titles ── */
.brands-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.brands-section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #C9A84C;
  margin-bottom: 8px;
}

/* ── Featured Brands ── */
.brands-featured {
  padding: 60px 0;
  background: #0d0d16;
}

.brands-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Brand Card (Featured) ── */
.brand-card {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
}

.brand-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand-monogram {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.brand-mono-ap  { background: linear-gradient(135deg, #1a3a5c, #2a5a8c); color: #7ab8e8; }
.brand-mono-lg  { background: linear-gradient(135deg, #1a1a4a, #2a2a7a); color: #8888e8; }
.brand-mono-apr { background: linear-gradient(135deg, #3a1a1a, #6a2a2a); color: #e88888; }
.brand-mono-cx  { background: linear-gradient(135deg, #1a3a2a, #2a5a3a); color: #78c896; }
.brand-mono-if  { background: linear-gradient(135deg, #1a3a1a, #2a6a2a); color: #78e878; }
.brand-mono-tr  { background: linear-gradient(135deg, #1a2a3a, #2a4a6a); color: #78a8d8; }
.brand-mono-an  { background: linear-gradient(135deg, #2a3a1a, #4a6a2a); color: #a8c878; }
.brand-mono-bj  { background: linear-gradient(135deg, #3a2a1a, #6a4a2a); color: #d8a878; }
.brand-mono-ra  { background: linear-gradient(135deg, #3a1a2a, #6a2a4a); color: #e878a8; }

.brand-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.brand-name-ko {
  font-size: 0.78rem;
  color: rgba(232, 232, 232, 0.5);
}

.brand-rank-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 4px;
  width: fit-content;
}

.brand-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.brand-score-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #C9A84C;
  line-height: 1;
}

.brand-score-label {
  font-size: 0.6rem;
  color: rgba(232, 232, 232, 0.4);
  letter-spacing: 0.08em;
  text-align: center;
}

.brand-desc {
  font-size: 0.85rem;
  color: rgba(232, 232, 232, 0.65);
  line-height: 1.65;
  margin: 0;
}

.brand-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 14px;
}

.brand-data-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bdi-label {
  font-size: 0.65rem;
  color: rgba(232, 232, 232, 0.4);
  letter-spacing: 0.06em;
}

.bdi-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8e8e8;
}

.brand-products-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bpp-label {
  font-size: 0.65rem;
  color: rgba(232, 232, 232, 0.4);
  letter-spacing: 0.06em;
}

.bpp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bpp-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 3px 8px;
  color: rgba(232, 232, 232, 0.75);
}

.brand-trend-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btb-label {
  font-size: 0.65rem;
  color: rgba(232, 232, 232, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.btb-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.btb-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #e8c86a);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.btb-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #C9A84C;
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
}

.brand-status-active {
  background: rgba(76, 201, 120, 0.12);
  color: #4cc978;
  border: 1px solid rgba(76, 201, 120, 0.25);
}

.brand-status-rising {
  background: rgba(201, 168, 76, 0.12);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.brand-detail-link {
  font-size: 0.78rem;
  color: #C9A84C;
  text-decoration: none;
  transition: color 0.2s;
}

.brand-detail-link:hover {
  color: #e8c86a;
}

/* ── Indie Brands ── */
.brands-indie {
  padding: 60px 0;
  background: #0a0a0f;
}

.brands-indie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Brand Card Mini ── */
.brand-card-mini {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s;
}

.brand-card-mini:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.bcm-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bcm-meta {
  flex: 1;
}

.bcm-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bcm-cat {
  font-size: 0.7rem;
  color: rgba(232, 232, 232, 0.45);
}

.bcm-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: #C9A84C;
}

.bcm-desc {
  font-size: 0.82rem;
  color: rgba(232, 232, 232, 0.6);
  line-height: 1.6;
  margin: 0;
}

.bcm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bcm-tag {
  font-size: 0.68rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  padding: 2px 7px;
  color: rgba(201, 168, 76, 0.8);
}

.bcm-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.bcm-metric {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.5);
}

.bcm-metric strong {
  color: #e8e8e8;
  font-weight: 700;
}

/* ── Brand Index Table ── */
.brands-index-section {
  padding: 60px 0;
  background: #0d0d16;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-index-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.brands-index-desc {
  font-size: 0.88rem;
  color: rgba(232, 232, 232, 0.55);
  margin: 8px 0 0;
  max-width: 560px;
}

.brands-index-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brands-index-table {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
}

.bit-header {
  display: grid;
  grid-template-columns: 50px 200px 1fr 80px 120px 180px;
  gap: 0;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(232, 232, 232, 0.4);
}

.bit-row {
  display: grid;
  grid-template-columns: 50px 200px 1fr 80px 120px 180px;
  gap: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  transition: background 0.2s;
}

.bit-row:last-child {
  border-bottom: none;
}

.bit-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.bit-col-rank {
  font-size: 0.85rem;
  color: rgba(232, 232, 232, 0.5);
}

.bit-col-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bit-col-brand strong {
  font-size: 0.88rem;
  color: #e8e8e8;
}

.bit-col-brand em {
  font-size: 0.72rem;
  color: rgba(232, 232, 232, 0.4);
  font-style: normal;
}

.bit-col-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bit-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  max-width: 120px;
}

.bit-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #e8c86a);
  border-radius: 2px;
}

.bit-col-score strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #C9A84C;
  width: 28px;
  text-align: right;
}

.bit-col-growth {
  font-size: 0.82rem;
  font-weight: 600;
}

.bit-up { color: #4cc978; }
.bit-neutral { color: rgba(232, 232, 232, 0.6); }
.bit-down { color: #e85858; }

.bit-col-market {
  font-size: 0.78rem;
  color: rgba(232, 232, 232, 0.55);
}

.bit-col-cat {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.45);
}

.brands-index-note {
  font-size: 0.72rem;
  color: rgba(232, 232, 232, 0.3);
  margin: 16px 0 0;
  line-height: 1.5;
}

/* ── Footer ── */
#kb-footer {
  background: #080810;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 32px;
}

.kb-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}

.kb-footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #C9A84C;
  display: block;
  margin-bottom: 10px;
}

.kb-footer-desc {
  font-size: 0.8rem;
  color: rgba(232, 232, 232, 0.4);
  line-height: 1.6;
  margin: 0;
}

.kb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-footer-links a {
  font-size: 0.82rem;
  color: rgba(232, 232, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.kb-footer-links a:hover {
  color: #C9A84C;
}

.kb-footer-copy {
  text-align: right;
}

.kb-footer-copy p {
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.3);
  margin: 0 0 4px;
}

.kb-footer-disclaimer {
  font-size: 0.68rem !important;
  color: rgba(232, 232, 232, 0.2) !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .brands-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brands-indie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bit-header,
  .bit-row {
    grid-template-columns: 40px 160px 1fr 70px 100px 140px;
  }
}

@media (max-width: 768px) {
  .brands-hero {
    padding: 120px 0 40px;
  }
  .brands-featured-grid,
  .brands-indie-grid {
    grid-template-columns: 1fr;
  }
  .brands-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .brands-search-wrap {
    flex: none;
  }
  .brands-index-header {
    flex-direction: column;
  }
  .brands-index-table {
    overflow-x: auto;
  }
  .bit-header,
  .bit-row {
    grid-template-columns: 36px 140px 80px 60px 90px 120px;
    min-width: 560px;
  }
  .kb-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kb-footer-copy {
    text-align: left;
  }
}
