/* Referral Type Cards Styles */
.referral-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.referral-type-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.referral-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f26419, #f7931e);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.referral-type-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f26419;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(242, 100, 25, 0.15);
}

.referral-type-card:hover::before {
  opacity: 1;
}

.referral-type-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f26419 0%, #f7931e 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(242, 100, 25, 0.3);
}

.referral-type-card__title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
}

.referral-type-card__description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent card heights */
}

.referral-type-card__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-type-card__rate {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.referral-type-card__rate-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.referral-type-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.referral-type-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.referral-type-card__badge--requires-approval {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.referral-type-card__badge--recurring {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.referral-type-card__badge--limit {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.referral-type-card__benefits {
  margin-top: 20px;
}

.referral-type-card__benefits h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-type-card__benefits h4::before {
  content: '✨';
  font-size: 16px;
}

.referral-type-card__benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.referral-type-card__benefits li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.referral-type-card__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 12px;
}

/* Special styling for non-monetary rewards */
.referral-type-card[data-type="cliente_privato"] .referral-type-card__rate {
  color: #fbbf24;
}

.referral-type-card[data-type="cliente_privato"] .referral-type-card__icon {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .referral-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  
  .referral-type-card {
    padding: 20px;
  }
  
  .referral-type-card__icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .referral-type-card__title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .referral-type-card__description {
    font-size: 13px;
    margin-bottom: 16px;
    min-height: auto;
  }
  
  .referral-type-card__details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .referral-type-card__rate {
    font-size: 20px;
  }
  
  .referral-type-card__features {
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .referral-type-card__benefits {
    margin-top: 16px;
  }
  
  .referral-type-card__benefits h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .referral-type-card__benefits li {
    font-size: 12px;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .referral-types-grid {
    gap: 16px;
  }
  
  .referral-type-card {
    padding: 16px;
  }
  
  .referral-type-card__icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .referral-type-card__title {
    font-size: 16px;
  }
  
  .referral-type-card__description {
    font-size: 12px;
  }
  
  .referral-type-card__rate {
    font-size: 18px;
  }
}

/* ============================================
   LIGHT MODE SUPPORT
   ============================================ */
[data-theme="light"] .referral-type-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .referral-type-card:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: #f26419;
  box-shadow: 0 8px 25px rgba(242, 100, 25, 0.15);
}

[data-theme="light"] .referral-type-card__title {
  color: #1a1a1a;
}

[data-theme="light"] .referral-type-card__description {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .referral-type-card__details {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .referral-type-card__rate-label {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .referral-type-card__benefits h4 {
  color: #1a1a1a;
}

[data-theme="light"] .referral-type-card__benefits li {
  color: rgba(0, 0, 0, 0.7);
}
