/* ============================================
   Brand Page Styles
   ============================================ */

/* === HEADER === */
.header {
  background: color-mix(in srgb, var(--color-dark) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: var(--shadow-md), 0 5px 20px rgba(251, 191, 36, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  border-bottom-color: rgba(251, 191, 36, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 2px;
  overflow: visible;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* === BRAND HERO === */
.brand-hero {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(6, 182, 212, 0.15) 100%);
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  padding: 2.5rem 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -50px 100px rgba(0, 0, 0, 0.3);
}

.brand-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.brand-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xl);
  align-items: center;
}

.brand-hero-text h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-size: clamp(2rem, 5vw, 3rem);
}

.brand-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.brand-hero-logo {
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-hero-logo > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
}

.brand-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.key-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.key-fact-icon {
  font-size: 1.25rem;
}

.brand-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-hero .btn {
  box-shadow: var(--shadow-xl);
}

/* === STICKY NAV === */
.sticky-nav {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
  position: sticky;
  top: 70px;
  z-index: 100;
  padding: 1rem 0;
}

.sticky-nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sticky-nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
  color: var(--color-primary);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* === PROS & CONS === */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.pros-card,
.cons-card {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pros-card {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: var(--color-white);
}

.cons-card {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: var(--color-white);
}

.pros-card h3,
.cons-card h3 {
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.pros-list,
.cons-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pros-list li,
.cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-white);
  margin: 0;
}

.pros-list li::before {
  content: "✓";
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cons-list li::before {
  content: "✗";
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* === RATING BREAKDOWN === */
.rating-breakdown {
  background: var(--color-dark-card);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
  margin: var(--spacing-lg) 0;
}

.overall-rating {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-light);
}

.overall-score {
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

.overall-label {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.rating-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-category {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-category-label {
  flex: 0 0 200px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.rating-bar-container {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  position: relative;
}

.rating-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.rating-category-score {
  flex: 0 0 50px;
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* === BONUS CARD === */
.bonus-highlight {
  background: var(--gradient-accent);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  color: var(--color-white);
  text-align: center;
  margin: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.bonus-highlight::before {
  content: '🎁';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.1;
}

.bonus-highlight h3 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.bonus-amount {
  font-size: 3rem;
  font-weight: 700;
  margin: var(--spacing-md) 0;
}

.bonus-terms {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
}

/* === INFO TABLE === */
.info-table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

.info-table tr {
  border-bottom: 1px solid var(--color-light);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 1rem;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-light);
  width: 200px;
}

.info-table td:last-child {
  color: var(--color-dark-lighter);
}

/* === STEP BY STEP === */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  counter-reset: step-counter;
}

.step-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  counter-increment: step-counter;
  position: relative;
}

.step-item::before {
  content: counter(step-counter);
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.step-content p {
  color: var(--color-dark-lighter);
  margin: 0;
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  background: var(--color-white);
  color: #1a1a2e;
}

.faq-answer-content p {
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* === RELATED BRANDS === */
.related-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.related-brand-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.related-brand-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.related-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}

.related-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-light);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-brand-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--color-dark);
}

.related-brand-rating {
  color: var(--color-primary);
  font-weight: 600;
}

.related-brand-features {
  list-style: none;
  margin: 0 0 var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-brand-features li {
  font-size: 0.875rem;
  color: var(--color-dark-lighter);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-brand-features li::before {
  content: "→";
  color: var(--color-primary);
}

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
  border-top: 2px solid rgba(251, 191, 36, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  box-shadow: 0 -5px 30px rgba(251, 191, 36, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.footer-links {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.disclaimer {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid var(--color-error);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .brand-hero-content {
    grid-template-columns: 1fr;
  }
  
  .brand-hero-logo {
    margin: 0 auto;
  }
  
  .rating-category-label {
    flex: 0 0 150px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .sticky-nav-menu {
    padding-bottom: 0.5rem;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .rating-categories {
    gap: 1.5rem;
  }
  
  .rating-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .rating-category-label {
    flex: 1;
  }
  
  .rating-bar-container {
    width: 100%;
  }
  
  .info-table td:first-child {
    width: auto;
  }
}

@media (max-width: 640px) {
  .brand-hero {
    padding: 2rem 0;
  }
  
  .brand-hero-actions {
    flex-direction: column;
  }
  
  .brand-hero-actions .btn {
    width: 100%;
  }
  
  .bonus-amount {
    font-size: 2rem;
  }
  
  .step-item {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
