/* Broker Overview Block Styles */

/* Basis styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #134381;
  --light-blue: #f0f9ff;
  --success-color: #22c55e;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --text-dark: #1E293B;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --orange-gradient-from: #FF9838;
  --orange-gradient-to: #FF8717;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Compacte broker lijst */
.compact-broker-list {
  margin-bottom: 2rem;
}

/* Animerende rand eigenschap */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}

/* Broker item */
.broker-item {
  position: relative;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.broker-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Basis broker card */
.overview-broker-card {
  position: relative;
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid var(--border-color);
}

/* Specifieke klasse voor uitgelichte broker */
.overview-highlighted-broker {
  position: relative;
  background-image: 
      linear-gradient(
          white,
          white
      ),
      conic-gradient(
          from var(--angle),
          var(--primary-color) 0deg,
          transparent 15deg,
          var(--primary-color) 30deg
      );
  background-clip: padding-box, border-box;
  background-position: center center;
  border: 2px solid transparent;
  border-radius: 12px;
  animation: rotateBorder 6s linear infinite;
  padding: 16px;
}

@keyframes rotateBorder {
  0% {
      --angle: 0deg;
  }
  100% {
      --angle: 360deg;
  }
}

/* Aanbevolen label */
.recommended-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
}

/* Broker content grid layout */
.broker-content-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

/* Linker kolom: alle broker info */
.broker-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header met logo en basisinfo */
.broker-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo styling */
.broker-logo-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Small number circle on logo */
.top-position-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
  z-index: 10;
}

/* Special styling for #1 position */
.broker-item:first-child .top-position-number {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  width: 24px;
  height: 24px;
  font-size: 12px;
  top: -10px;
  left: -10px;
}

.broker-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Broker details */
.broker-info {
  flex: 1;
}

.broker-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.stars {
  color: var(--warning-color);
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Tags */
.broker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.broker-tag {
  display: inline-block;
  background-color: var(--light-blue);
  color: var(--primary-color);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Specs en features sectie */
.broker-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.specs-column {
  display: flex;
  flex: 1.2;
  min-width: 220px;
  gap: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.spec-value {
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Pros en Cons */
.pros-cons-column {
  display: flex;
  flex: 1.8;
  min-width: 250px;
  gap: 10px;
  margin-left: 10px;
}

.pros-column, .cons-column {
  flex: 1;
  min-width: 110px;
}

.pros-label, .cons-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.feature-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-icon.success {
  color: var(--success-color);
}

.feature-icon.danger {
  color: var(--danger-color);
}

.feature-text {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Rechterkolom: CTA knoppen */
.broker-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
}

.custom-cta {
  background: linear-gradient(135deg, var(--orange-gradient-from) 0%, var(--orange-gradient-to) 100%);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(255, 152, 56, 0.2);
  white-space: nowrap;
  pointer-events: auto;
  z-index: 2;
  position: relative;
  min-width: 150px;
}

.custom-cta:hover {
  background: linear-gradient(135deg, var(--orange-gradient-to) 0%, #FF7600 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 56, 0.25);
}

/* Alternatieve button stijlen behouden */
.custom-cta.blue-cta {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.custom-cta.blue-cta:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.custom-cta.green-cta {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.custom-cta.green-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.custom-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-cta:hover svg {
  transform: translateX(2px);
}

.more-info {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  pointer-events: auto;
  z-index: 2;
  position: relative;
  text-align: center;
}

.more-info:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* De hele kaart klikbaar maken, maar niet de buttons */
.broker-item a {
  position: relative;
  z-index: 2;
}

.broker-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

/* Error message styling */
.broker-error {
  background-color: #FEF2F2;
  color: #B91C1C;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #FECACA;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Responsive styling */
@media (max-width: 900px) {
  .broker-content-overview {
    grid-template-columns: 1fr;
  }
  
  .broker-cta {
    flex-direction: column;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    width: 100%;
  }
  
  .custom-cta {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .broker-details-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .specs-column {
    width: 100%;
  }
  
  .pros-cons-column {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pros-cons-column {
    flex-direction: column;
    gap: 16px;
  }
  
  .pros-column, .cons-column {
    width: 100%;
  }
}

/* For browsers that don't support @property */
@supports not (animation-timeline: scroll()) {
  .overview-highlighted-broker {
    border: 2px solid var(--primary-color);
    animation: none;
  }
}

/* Actie met tooltip styling */
.broker-item .action-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
  background-color: #DBEAFE;
  border-radius: 8px;
  color: #3B82F6;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  width: 100%;
  border: 1px solid #3B82F6;
  margin-bottom: 6px;
  z-index: 99;
}

.broker-item .gift-icon {
  width: 18px;
  height: 18px;
  fill: #3B82F6;
  flex-shrink: 0;
}

.broker-item .action-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #e2e8f0; /* Gebruik de variabele-naam direct voor betere compatibiliteit */
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: #1E293B; /* Direct gebruik kleurcode */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 220px;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  text-align: center;
  font-weight: normal;
}

.broker-item .action-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.broker-item .action-tooltip-code {
  background-color: #f0f9ff;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #134381;
  margin: 0 2px;
}

/* Hover effect voor desktop - specifiekere selector */
@media (hover: hover) {
  .broker-item .action-bonus:hover .action-tooltip {
    visibility: visible;
    opacity: 1;
  }
}

/* Touch device support - specifiekere selector */
@media (hover: none) {
  .broker-item .action-bonus.active .action-tooltip {
    visibility: visible;
    opacity: 1;
  }
}

/* Responsive aanpassingen voor actie */
@media (max-width: 900px) {
  .broker-item .action-tooltip {
    width: 80%;
    max-width: 300px;
  }
}

/* Broker Disclaimer Styling voor Overview Block */
.broker-overview-container .broker-disclaimer {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 8px 0 4px 0;
  text-align: center;
  padding: 0 8px;
  font-style: italic;
}

@media (min-width: 640px) {
  .broker-overview-container .broker-disclaimer {
    font-size: 0.8rem;
    margin: 10px 0 6px 0;
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .broker-overview-container .broker-disclaimer {
    font-size: 0.85rem;
    margin: 12px 0 8px 0;
    padding: 0 16px;
  }
}

/* Vergelijking sectie styling */
.comparison-notice {
    background: #fb22220f;
    border-radius: 7px;
    padding: 12px 14px;
    margin-bottom: 19px;
    border: 1px solid #ec2424;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    text-align: center;
}

.comparison-notice .notice-text {
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
    font-weight: 500;
}

.comparison-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.broker-tag-excluded {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 3px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.broker-tag-excluded:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1);
    text-decoration: none;
    color: #64748b;
}

.broker-tag-excluded.hidden-broker-tag {
    display: none;
}

.broker-tag-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    background: #64748b;
    border: 1px solid #64748b;
    border-radius: 14px;
    font-size: 13px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.broker-tag-more:hover {
    background: #475569;
    border-color: #475569;
    transform: translateY(-1px);
}

.tag-logo {
    width: 17px;
    height: 17px;
    border-radius: 2px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.broker-tag-excluded:hover .tag-logo {
    background: #dbeafe;
    color: #3b82f6;
}

.broker-tag-more .tag-logo {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.tag-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-name {
    font-weight: 500;
    color: #475569;
}

.broker-tag-excluded:hover .tag-name {
    color: #3b82f6;
}

.broker-tag-more .tag-name {
    color: white;
}

.tag-rating {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

.broker-tag-excluded:hover .tag-rating {
    color: #f59e0b;
}