/* styles.css - BrandBlacklist (fixed top-right theme toggle + BMC, footer BMC, modal styles) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background: #f9fafb;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background: #0a0e1a;
  color: #d1d5db;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 4rem;
  }
}

/* Header - Gradient pattern */
header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  padding: 9rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark header {
  background: linear-gradient(135deg, #1e293b 0%, #111827 100%);
  box-shadow: inset 0 0 100px rgba(0,0,0,0.7);
  border-bottom: 1px solid #334155;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 180px, rgba(255,255,255,0.04) 180px, rgba(255,255,255,0.04) 360px),
    linear-gradient(to bottom right, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(255,255,255,0.08) 100%);
  opacity: 0.7;
  pointer-events: none;
}

/* Bigger title */
header h1 {
  font-size: clamp(4.5rem, 11vw, 8rem) !important;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 1.2rem;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

body.dark header h1 {
  text-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

/* Controls - Glass card */
.controls {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 3.5rem 4rem;
  border-radius: 2.5rem;
  box-shadow: 0 16px 60px rgba(0,0,0,0.3);
  max-width: 1300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

body.dark .controls {
  background: rgba(30,41,59,0.55);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
}

/* Search input */
#searchInput {
  width: 100%;
  max-width: 840px;
  padding: 1.5rem 2.8rem;
  font-size: 1.18rem;
  border: none;
  border-radius: 3.5rem;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: all 0.35s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(79,70,229,0.35);
}

body.dark #searchInput {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

/* Dropdown filters */
.filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 340px;
  flex: 1 1 340px;
}

.dropdown-group label {
  font-size: 1.08rem;
  font-weight: 600;
  color: white;
  opacity: 0.94;
}

body.dark .dropdown-group label {
  color: #cbd5e1;
}

select {
  padding: 1.3rem 2.2rem;
  font-size: 1.12rem;
  border: none;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.98);
  color: #1e293b;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%234f46e5' d='M7 10.5L2 5.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2rem center;
  transition: all 0.3s ease;
}

body.dark select {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 6px 28px rgba(0,0,0,0.55);
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 5px rgba(79,70,229,0.4);
}

/* Fixed top-right stack: Theme toggle + BMC button below it */
.fixed-top-right {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 9999;
}

#themeToggle,
.bmc-fixed {
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark #themeToggle,
body.dark .bmc-fixed {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #fff;
}

#themeToggle:hover,
.bmc-fixed:hover {
  transform: scale(1.12);
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.75rem;
  padding: 4rem 0 7rem;
}

.card {
  background: white;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

body.dark .card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 14px 48px rgba(0,0,0,0.38);
}

.card:hover {
  transform: translateY(-14px);
  box-shadow: 0 28px 68px rgba(0,0,0,0.16);
}

.card-content {
  padding: 2.6rem 2.8rem 2.8rem;
  position: relative;
}

/* Categories - flex row for DEI/Pride/BLM + industry tags */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  align-items: center;
}

/* Industry tag - on same line as DEI/Pride/BLM tags, after them */
.industry-tag {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 600;
  background: rgba(79,70,229,0.09);
  color: #4f46e5;
  order: 99; /* always last in the row */
  white-space: nowrap;
}

body.dark .industry-tag {
  background: rgba(124,58,237,0.16);
  color: #c4b5fd;
}

/* Padding for h3 */
.card h3 {
  font-size: 1.58rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Tag styling */
.tag {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 500;
}

.tag.pride { background: linear-gradient(90deg, #ff69b4, #9b59b6); color: white; }
.tag.blm { background: #111827; color: white; }
.tag.dei { background: #10b981; color: white; }

.card p {
  font-size: 1.06rem;
  color: #475569;
  margin-bottom: 1.6rem;
}

body.dark .card p {
  color: #cbd5e1;
}

.card a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}

.card a:hover {
  color: #4338ca;
}

/* No results */
.no-results {
  text-align: center;
  padding: 10rem 2rem;
  font-size: 1.6rem;
  color: #64748b;
  font-weight: 400;
}

body.dark .no-results {
  color: #94a3b8;
}

/* Buttons */
.filter-btn.load-more,
.filter-btn.reset-btn {
  margin: 4rem auto 2rem;
  padding: 1rem 3rem;
  font-size: 1.08rem;
  border-radius: 3rem;
}

/* Contact box */
.contact-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin: 4rem auto 0;
  max-width: 700px;
  text-align: center;
}

body.dark .contact-box {
  background: rgba(30,41,59,0.4);
  border-color: #334155;
}

.contact-box h3 {
  font-size: 1.32rem;
  margin-bottom: 0.9rem;
}

.contact-box p {
  font-size: 1.06rem;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

/* Suggest button in contact box */
.suggest-button {
  padding: 0.9rem 2rem;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.suggest-button:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* Buy Me a Coffee button - Footer only */
.bmc-footer {
  margin-top: 2rem;
  text-align: center;
}

.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  background: #ffdd00;
  color: #000;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.bmc-button:hover {
  background: #ffeb3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.bmc-button img {
  height: 26px;
  width: auto;
}

/* Fixed top-right stack */
.fixed-top-right {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 9999;
}

#themeToggle,
.bmc-fixed {
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark #themeToggle,
body.dark .bmc-fixed {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #fff;
}

#themeToggle:hover,
.bmc-fixed:hover {
  transform: scale(1.12);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark .modal-content {
  background-color: #1e293b;
  color: #d1d5db;
  border-color: #334155;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

body.dark .close {
  color: #d1d5db;
}

body.dark .close:hover {
  color: #fff;
}

.modal h2 {
  margin-top: 0;
  text-align: center;
}

.modal label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

body.dark .modal input,
body.dark .modal textarea {
  background: #334155;
  color: #fff;
  border-color: #475569;
}

.modal button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.modal button[type="submit"]:hover {
  background: #4338ca;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 6rem 0 4rem;
  margin-top: 10rem;
  border-top: 1px solid #1e293b;
}

footer p {
  font-size: 1.04rem;
}

footer .disclaimer {
  font-size: 0.98rem;
  margin-top: 2rem;
  opacity: 0.85;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header {
    padding: 5.5rem 0 4rem;
  }
  
  .controls {
    gap: 3.2rem;
    padding: 2rem;
  }
  
  .filter-dropdowns {
    flex-direction: column;
    gap: 2rem;
  }
  
  .brand-grid {
    gap: 2.4rem;
  }
  
  .card h3 {
    padding-right: 0;
  }
  
  .industry-tag {
    position: static;
    display: block;
    margin: 0 0 1rem 0;
    text-align: left;
  }
  
  .fixed-top-right {
    top: 0.8rem;
    right: 0.8rem;
    gap: 0.6rem;
  }
  
  #themeToggle,
  .bmc-fixed {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .bmc-button {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
  }
  
  .contact-box {
    padding: 1.6rem;
    margin: 3rem 1rem 0;
  }
}