/* Exotic Brands Dark Theme Override */

body.aci-body {
  background: #000000;
}

:root {
  --headline: #ffffff;
  --hover: #de4640;
  --text: rgba(255, 255, 255, .85);
  --muted: rgba(255, 255, 255, .65);
  --card-bg: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .15);
  --shadow: 0 10px 26px rgba(0, 0, 0, .4);
}

/* Filter Section */
.brand-filters-section {
  background: #000000 !important;
}

.brand-filter-label {
  color: rgba(255, 255, 255, .85) !important;
}

.brand-filter-select {
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--border);
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}

.brand-filter-select:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
}

.brand-filter-select:focus {
  background: rgba(255, 255, 255, .15);
  border-color: var(--hover);
  outline: none;
}

.brand-filter-select option {
  background: #1a1a1a;
  color: #fff;
}

/* Brand List Section */
.brand-list-section {
  background: #000000;
}

.brand-list-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.brand-list-card:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  box-shadow:
    0 0 30px rgba(255, 255, 255, .2),
    0 0 60px rgba(255, 255, 255, .1),
    0 10px 40px rgba(0, 0, 0, .5);
  transform: translateY(-5px);
}

.brand-list-title,
.brand-list-title a,
.brand-list-title-link,
h3.brand-list-title {
  color: #ffffff !important;
}

.brand-list-title:hover,
.brand-list-title a:hover,
.brand-list-title-link:hover {
  color: var(--hover) !important;
}

/* Country names in brand cards */
.brand-location,
.brand-location a,
.aci-flag-link,
a.aci-flag-link,
.brand-location .aci-flag-link {
  color: rgba(255, 255, 255, .85) !important;
}

.brand-location a:hover,
.aci-flag-link:hover,
a.aci-flag-link:hover {
  color: var(--hover) !important;
}

/* Years/dates in brand cards */
.brand-years,
p.brand-years,
.brand-list-date,
.brand-year-range {
  color: rgba(255, 255, 255, .65) !important;
}

/* View brand button */
.brand-list-cta,
a.brand-list-cta {
  color: rgba(255, 255, 255, .85) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.brand-list-cta:hover,
a.brand-list-cta:hover {
  color: var(--hover) !important;
  border-color: var(--hover) !important;
}

/* Popularity Badge */
.brand-popularity-badge {
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(5px);
}

.star.filled {
  fill: #ffd700;
}

.star.empty {
  fill: rgba(255, 255, 255, .3);
}

/* Empty State */
.brand-list-empty {
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.brand-list-empty-icon {
  opacity: .5;
  filter: brightness(0) invert(1);
}

.brand-list-empty-title {
  color: var(--headline);
}

.brand-list-empty-text {
  color: var(--text);
}

/* Alphabet Navigation - dark theme overrides (must use !important: alphabet.css loads after) */
.alpha-link {
  color: #6b869c !important;
}

.alpha-link.is-active {
  background: #304862 !important;
  border-color: #304862 !important;
  color: #fff !important;
}

/* Breadcrumbs */
.breadcrumbs-section {
  background: #000000 !important;
}

.breadcrumbs-nav {
  color: rgba(255, 255, 255, .85) !important;
  background: rgba(255, 255, 255, .05) !important;
}

.breadcrumbs-link,
.breadcrumbs-nav a {
  color: rgba(255, 255, 255, .75) !important;
}

.breadcrumbs-link:hover,
.breadcrumbs-nav a:hover {
  color: var(--hover) !important;
}

.breadcrumbs-current {
  color: #ffffff !important;
}

.breadcrumbs-separator {
  color: rgba(255, 255, 255, .5) !important;
}

/* Pagination */
.pagination-section {
  background: #000000;
}

.pagination-nav {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
}

.pagination-link {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.pagination-link:hover {
  color: var(--hover);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .25);
}

.pagination-link.active {
  color: #fff;
  background: var(--hover);
  border-color: var(--hover);
}

.pagination-link.disabled {
  color: var(--muted);
  opacity: .5;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text);
}

/* Share Buttons */
.share-buttons {
  background: #000000 !important;
}

/* Recently Added Section */
.recently-added-section {
  background: #000000;
}

.recently-added-title {
  color: var(--headline);
}

.recently-added-link {
  color: var(--text);
}

.recently-added-link:hover {
  color: var(--hover);
}

/* Individual Brand Page Overrides */
.brand-section {
  background: #000000;
}

.brand-title-section {
  background: #000000;
}

.brand-title {
  color: var(--headline);
}

.brand-subtitle {
  color: var(--text);
}

.brand-description-section {
  background: #000000;
}

.brand-description-text {
  color: var(--text);
}

.brand-data-section {
  background: #000000;
}

.brand-data-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.brand-data-label {
  color: var(--muted);
}

.brand-data-value {
  color: var(--headline);
}

.brand-models-section {
  background: #000000;
}

.brand-section-title {
  color: var(--headline);
}

/* Test Knowledge */
.test-knowledge-section {
  background: #000000;
}

.test-knowledge-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.test-knowledge-title {
  color: var(--headline);
}

.test-knowledge-text {
  color: var(--text);
}

.test-knowledge-btn {
  background: #304862;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.test-knowledge-btn:hover {
  background: var(--hover);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

/* Previous/Next Brand Navigation */
.previous-next-section {
  background: #000000;
}

.previous-next-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.previous-next-card:hover {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .10);
}

.previous-next-label {
  color: var(--muted);
}

.previous-next-name {
  color: var(--headline);
}

.previous-next-name:hover {
  color: var(--hover);
}

/* Individual Brand Page - Black background sections */
.brand-title-section {
  background: #000000;
}

.brand-title,
h1.brand-title {
  color: #de4640 !important;
  text-shadow: none !important;
  transition: all .3s ease !important;
}

.brand-title:hover,
h1.brand-title:hover {
  transform: scale(1.02) !important;
  text-shadow: 0 0 15px rgba(222, 70, 64, .3) !important;
}

.brand-prose-section {
  background: #000000;
}

.brand-prose,
.brand-prose p {
  color: rgba(255, 255, 255, .85) !important;
}

.brand-prose a {
  color: #de4640 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(222, 70, 64, .6) !important;
  font-weight: 600 !important;
}

.brand-prose a:hover {
  color: #ff5349 !important;
  text-decoration-color: #ff5349 !important;
  text-shadow: 0 0 10px rgba(222, 70, 64, .3) !important;
}

.brand-section {
  background: #000000;
}

.brand-section-title,
h2.brand-section-title {
  color: #ffffff !important;
}

/* Map Section */
.brand-map-section {
  background: #000000;
}

/* Models Section on Brand Page */
.brand-models-section {
  background: #000000 !important;
}

.brand-model-card {
  background: rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4) !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease !important;
}

.brand-model-card:hover {
  border-color: rgba(255, 255, 255, .4) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow:
    0 0 30px rgba(255, 255, 255, .2),
    0 0 60px rgba(255, 255, 255, .1),
    0 10px 40px rgba(0, 0, 0, .5) !important;
  transform: translateY(-5px) !important;
}

.brand-model-body {
  background: rgba(0, 0, 0, .6) !important;
  backdrop-filter: blur(10px) !important;
}

.brand-model-title,
h3.brand-model-title {
  color: #ffffff !important;
}

.brand-model-title-link,
a.brand-model-title-link {
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-model-title-link:hover,
a.brand-model-title-link:hover {
  color: #de4640 !important;
}

/* Similar Brands Section - Match brand listing cards exactly */
.brand-related-section {
  background: #000000 !important;
}

.brand-related-card {
  background: rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4) !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease !important;
}

.brand-related-card:hover {
  border-color: rgba(255, 255, 255, .4) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow:
    0 0 30px rgba(255, 255, 255, .2),
    0 0 60px rgba(255, 255, 255, .1),
    0 10px 40px rgba(0, 0, 0, .5) !important;
  transform: translateY(-5px) !important;
}

.brand-related-body {
  background: rgba(0, 0, 0, .6) !important;
  backdrop-filter: blur(10px) !important;
}

.brand-related-title,
h3.brand-related-title,
.brand-related-title-link,
a.brand-related-title-link {
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-related-title-link:hover .brand-related-title,
.brand-related-title:hover,
a.brand-related-title-link:hover {
  color: #de4640 !important;
}

.brand-related-meta,
.brand-related-meta a,
.brand-related-years,
span.brand-related-years {
  color: rgba(255, 255, 255, .65) !important;
}

.brand-related-meta a:hover {
  color: #de4640 !important;
}

.brand-related-cta,
a.brand-related-cta {
  color: rgba(255, 255, 255, .85) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  background: rgba(255, 255, 255, .05) !important;
  transition: color .2s ease, border-color .2s ease, background .2s ease !important;
}

.brand-related-cta:hover,
a.brand-related-cta:hover {
  color: #de4640 !important;
  border-color: #de4640 !important;
  background: rgba(255, 255, 255, .08) !important;
}

/* Meta Bars - Dark theme with styled tags */
.meta-bar {
  background: #000000 !important;
  padding: 1rem 0 !important;
}

.meta-bar__inner {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 12px !important;
  padding: 1.5rem 1.5rem !important;
  display: flex !important;
  gap: 1rem 1.5rem !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.meta-bar__label {
  color: rgba(255, 255, 255, .85) !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  font-size: .9rem !important;
  margin-right: .5rem !important;
}

.meta-bar__list {
  display: flex !important;
  flex-wrap: wrap;
  gap: .75rem;
}

.meta-bar__list li {
  display: inline-block !important;
}

/* Hide commas between tags */
.meta-bar__list li span {
  display: none !important;
}

.meta-bar__link,
a.meta-bar__link {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .9) !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  text-decoration: none !important;
  font-size: .85rem !important;
  transition: all .2s ease;
}

.meta-bar__link:hover,
a.meta-bar__link:hover {
  background: rgba(255, 255, 255, .12) !important;
  border-color: var(--hover) !important;
  color: var(--hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
