/*
 * FlirtAIHub Top Picks - Frontend Styles
 * Extracted exactly from the original homepage "Our Top Picks" section.
 * All classes are prefixed with fih- to avoid conflicts with theme/global styles.
 *
 * Note: !important is used ONLY on our own uniquely-prefixed classes below,
 * never on bare tags like body/h1/h2/p/a. This is intentional and scoped:
 * many WordPress themes apply their own typography/color rules to headings,
 * paragraphs, and links with higher specificity than a single plugin class,
 * which otherwise causes the theme's font/color to visibly override this
 * component. Since these rules only ever target .fih-top-picks-* classes,
 * they cannot affect any other part of the site.
 */

.fih-top-picks-section,
.fih-top-picks-title,
.fih-top-picks-subtitle,
.fih-top-picks-disclosure,
.fih-top-picks-name,
.fih-top-picks-badge,
.fih-top-picks-rating-value,
.fih-top-picks-price-label,
.fih-top-picks-price-value,
.fih-top-picks-button,
.fih-top-picks-legal,
.fih-top-picks-logo-placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.fih-top-picks-section,
.fih-top-picks-section *,
.fih-top-picks-section *::before,
.fih-top-picks-section *::after {
  box-sizing: border-box;
}

.fih-top-picks-section {
  background-color: #0f1115 !important;
  padding-top: 16px;
  padding-bottom: 48px;
  position: relative;
  box-shadow: 0 0 0 100vmax #0f1115;
  clip-path: inset(0 -100vmax);
}

@media (min-width: 768px) {
  .fih-top-picks-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.fih-top-picks-container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 45px;
  padding-right: 45px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .fih-top-picks-container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.fih-top-picks-header {
  text-align: center;
  margin-bottom: 32px;
}

.fih-top-picks-title {
  font-size: 22px;
  font-weight: 800;
  color: #eef0f4 !important;
  margin: 0 0 4px 0;
  padding: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .fih-top-picks-title {
    font-size: 30px;
  }
}

.fih-top-picks-subtitle {
  font-size: 14px;
  color: #8b8f9a !important;
  margin: 0;
  padding: 0;
}

.fih-top-picks-disclosure {
  font-size: 12px;
  color: #8b8f9a !important;
  margin: 4px 0 0 0;
  padding: 0;
}

.fih-top-picks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .fih-top-picks-list {
    margin-bottom: 0;
  }
}

.fih-top-picks-card {
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border: 1px solid #262a33 !important;
  background-color: #181b22 !important;
  padding: 16px 18px;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 640px) {
  .fih-top-picks-card {
    gap: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 340px) {
  .fih-top-picks-card {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

.fih-top-picks-card:last-child {
  margin-bottom: 0;
}

.fih-top-picks-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f5b942 0%, #ff4757 100%);
  border-radius: 10px 10px 0 0;
}

.fih-top-picks-rank-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fih-top-picks-rank-wrap {
    gap: 6px;
  }
}

.fih-top-picks-rank {
  width: 44px;
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  color: rgb(139, 143, 154) !important;
}

@media (max-width: 640px) {
  .fih-top-picks-rank {
    width: 18px;
    font-size: 14px;
  }
}

.fih-top-picks-rank--gold {
  color: rgb(245, 185, 66) !important;
}

.fih-top-picks-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a2e38 0%, #1e2129 100%);
  overflow: hidden;
}

@media (max-width: 640px) {
  .fih-top-picks-logo {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }
}

.fih-top-picks-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.fih-top-picks-logo-placeholder {
  color: #ffffff !important;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .fih-top-picks-logo-placeholder {
    font-size: 6px;
  }
}

.fih-top-picks-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  min-width: 0;
}

@media (max-width: 640px) {
  .fih-top-picks-info {
    min-width: 70px;
  }
}

.fih-top-picks-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .fih-top-picks-name-row {
    gap: 5px;
  }
}

.fih-top-picks-name {
  font-size: 16px;
  font-weight: 700;
  color: #eef0f4 !important;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 640px) {
  .fih-top-picks-name {
    font-size: 13px;
  }
}

.fih-top-picks-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  color: rgb(245, 185, 66) !important;
  background-color: rgba(245, 185, 66, 0.1) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fih-top-picks-badge {
    font-size: 7px;
    padding: 1px 5px;
  }
}

.fih-top-picks-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fih-top-picks-stars {
  display: flex;
  color: #facc15 !important;
}

.fih-top-picks-stars .material-symbols-outlined {
  font-size: 13px;
  font-family: "Material Symbols Outlined" !important;
}

@media (max-width: 640px) {
  .fih-top-picks-stars .material-symbols-outlined {
    font-size: 10px;
  }
}

.fih-top-picks-rating-value {
  color: #8b8f9a !important;
  font-size: 13px;
}

@media (max-width: 640px) {
  .fih-top-picks-rating-value {
    font-size: 10px;
  }
}

.fih-top-picks-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fih-top-picks-cta-wrap {
    gap: 8px;
  }
}

@media (max-width: 340px) {
  .fih-top-picks-cta-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

.fih-top-picks-price-block {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.fih-top-picks-price-label {
  color: #8b8f9a !important;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fih-top-picks-price-label {
    font-size: 7px;
  }
}

.fih-top-picks-price-value {
  color: #eef0f4 !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fih-top-picks-price-value {
    font-size: 11px;
  }
}

.fih-top-picks-button-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fih-top-picks-button {
  width: auto;
  text-align: center;
  background-color: rgb(45, 212, 200) !important;
  color: rgb(5, 5, 5) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 7px;
  text-decoration: none !important;
  display: inline-block;
  box-sizing: border-box;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fih-top-picks-button {
    font-size: 9px;
    padding: 6px 10px;
    border-radius: 5px;
  }
}

.fih-top-picks-button:hover {
  color: rgb(5, 5, 5) !important;
  opacity: 0.92;
}

.fih-top-picks-legal {
  color: #8b8f9a !important;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fih-top-picks-legal {
    font-size: 6px;
  }
}
