/*
PropFirms App Styles
*/

/* Prop Firm Logo Styling */
.prop-firm-logo {
  /* Logo dimensions - width 240px, height auto for natural aspect ratio */
  width: 240px !important;
  height: auto !important;

/* Ensure logos maintain aspect ratio and quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smaller logo for card view */
.prop-firm-logo-small {
  max-width: 70%;
  width: auto;
  object-fit: contain;

/* Ensure logos maintain aspect ratio and quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.prop-firm-logo-small.logo-square {
  max-width: 30%;
}

/* Clickable Prop Firm Card Styling */
.prop-firm-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: inherit;
}

.prop-firm-card .view-details-wrap {
  margin-top: calc(1rem + 5px);
}

.prop-firm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
  color: inherit;
}

.prop-firm-card:active {
  transform: translateY(-2px);
}

/* Dark theme - lighten card backgrounds for better logo visibility */
[data-bs-theme="dark"] .card {
  background-color: #52567a;
}

/* Theme-specific logo toggling */
.theme-logo-dark { display: none; }
[data-bs-theme="dark"] .theme-logo-light { display: none !important; }
[data-bs-theme="dark"] .theme-logo-dark { display: block !important; }

/* Take Profit Trader dark SVG has a small intrinsic width; scale it to match peer logos */
[data-bs-theme="dark"] img.theme-logo-dark[src*="takeprofittrader-darktheme.svg"] {
  width: 63%;
  max-width: 63%;
  height: auto;
}

/* Make Take Profit Trader logos ~10% smaller to better align with other card logos */
img.prop-firm-logo-small[src*="takeprofittrader-lighttheme.png"],
img.prop-firm-logo-small[src*="takeprofittrader-darktheme.svg"] {
  max-width: 63%;
}

/* Humble Futures logo is a large square; cap at 150px to match other card logos */
img.prop-firm-logo-small[src*="humble-logo"],
img.prop-firm-logo-small[src*="humble-funding"] {
  max-width: 150px;
}

/* Beta Notice - Light Theme */
.beta-notice {
  background-color: #fff5f5;
}

.beta-notice-badge {
  background-color: #dc3545;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
}

.beta-notice-text {
  color: #721c24;
}

/* Beta Notice - Dark Theme */
[data-bs-theme="dark"] .beta-notice {
  background-color: rgba(220, 53, 69, 0.15);
}

[data-bs-theme="dark"] .beta-notice-badge {
  background-color: #dc3545;
  color: #fff;
}

[data-bs-theme="dark"] .beta-notice-text {
  color: #f8d7da;
}
