/* ==============================================
   Dark Theme Overlay for Brand Pages
   Keeps structure from brand_page.css intact
   ============================================== */

body {
  background-color: #2b2b2b;
  color: #f5f5f5;
}

/* --- Global Section Panels --- */
.brand-hero,
.brand-links-section,
.brand-promos-section,
.brand-patterns-section,
.brand-affiliate-section,
.brand-videos-section {
  background-color: #3a3a3a;
  border: 1px solid #555;
  color: #f5f5f5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* --- Typography --- */
.brand-section-title,
.affiliate-heading,
.brand-links-heading,
.brand-videos-heading {
  color: #ffd700; /* Gold accent headers */
}

.brand-title,
.video-title,
.promo-title,
.pattern-name,
.affiliate-name {
  color: #fff;
}

.video-desc,
.promo-desc,
.affiliate-pricing,
.brand-description,
.promo-end,
.video-date {
  color: #ccc;
}

/* --- Cards --- */
.brand-link,
.promo-card,
.pattern-card,
.affiliate-card,
.video-card {
  background-color: #2e2e2e;
  border: 1px solid #555;
  color: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.brand-link:hover,
.promo-card:hover,
.pattern-card:hover,
.affiliate-card:hover,
.video-card:hover {
  background-color: #444;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* --- Borders and Highlights --- */
.brand-link.official { border-left: 4px solid #1e8b4d; }
.brand-link.retailer { border-left: 4px solid #0077cc; }
.brand-link.affiliate { border-left: 4px solid #c60; }

.pattern-sale-badge,
.affiliate-sale-badge {
  background-color: #d9534f;
  color: #fff;
}

.promo-type {
  background-color: #222;
  color: #ffd700;
}

/* --- Buttons --- */
.viewmore-btn,
.promo-btn,
.affiliate-browse-btn,
.video-btn,
.brand-official-link {
  background-color: #d9534f;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.viewmore-btn:hover,
.promo-btn:hover,
.affiliate-browse-btn:hover,
.video-btn:hover,
.brand-official-link:hover {
  background-color: #b23c38;
  transform: scale(1.05);
}

.toggle-description {
  color: #ffd700;
}
.toggle-description:hover {
  color: #fff;
}

/* --- Grids and Containers --- */
.brand-links-grid,
.brand-promos-grid,
.brand-patterns-grid,
.affiliate-grid,
.brand-videos-grid {
  background-color: transparent;
}

/* --- Inputs / Dropdowns --- */
select,
button {
  background-color: #2e2e2e;
  color: #fff;
  border: 1px solid #555;
}

select:focus,
button:focus {
  outline: none;
  border-color: #d9534f;
}

/* --- Shadows / Dividers --- */
hr, .divider {
  border: none;
  border-top: 1px solid #555;
}

.box-shadow {
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* --- Links --- */
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .brand-hero,
  .brand-links-section,
  .brand-promos-section,
  .brand-patterns-section,
  .brand-affiliate-section,
  .brand-videos-section {
    border-radius: 0;
    box-shadow: none;
  }
}
/* === Searchable Brand Selector === */
.brand-selector-bar {
  position: sticky;
  top: 60px;
  z-index: 900;
  background: #3a3a3a;
  padding: 10px;
  border-bottom: 1px solid #555;
  text-align: center;
}

.brand-search-container {
  display: inline-block;
  width: 100%;
  max-width: 500px;
  text-align: left;
}

#brand-search {
  width: 100%;
  padding: 10px;
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 6px;
}

#brand-search::placeholder {
  color: #aaa;
}

.brand-list {
  max-height: 300px;
  overflow-y: auto;
  background: #2b2b2b;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px;
}

.brand-group {
  margin-bottom: 10px;
}

.brand-group-title {
  color: #ffd700;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid #555;
}

.brand-item {
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  color: #fff;
}

.brand-item:hover {
  background: #444;
}

@media (max-width: 768px) {
  .brand-search-container {
    width: 90%;
  }
  .brand-list {
    max-height: 200px;
  }
}
/* === Brand Finder Modal === */
.brand-selector-bar {
  position: sticky;
  top: 60px;
  z-index: 1000;
  background: #3e3e3e;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #555;
}

.brand-modal-btn {
  background: #b1953b;  /* matches your gold accent tone */
  color: #000;
  font-weight: 700;
  padding: 10px 22px;
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.brand-modal-btn:hover {
  background: #d2b55f;
  transform: scale(1.03);
}
.brand-count {
  font-size: 0.9em;
  color: #222;
  margin-left: 4px;
}
/* Modal base */
.brand-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.brand-modal-content {
  background: #2b2b2b;
  color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: relative;
}

.brand-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #ccc;
}
.brand-modal-close:hover { color: #fff; }

#brandSearch {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #555;
  background: #1f1f1f;
  color: #fff;
}

.brand-group-title {
  font-weight: 700;
  color: #ffd700;
  margin-top: 10px;
  border-bottom: 1px solid #555;
}

.brand-item {
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  cursor: pointer;
}
.brand-item:hover { background: #444; }

@media (max-width: 768px) {
  .brand-modal-content {
    width: 95%;
    padding: 15px;
  }
}
