/*
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;
  display: block;
  margin-left: auto;
  margin-right: 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%;
}

.prop-firm-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prop-firm-logo-chip picture {
  display: block;
  text-align: center;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light {
  background: #111827;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--blue-guardian {
  width: 75%;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img.prop-firm-logo {
  margin-right: 0 !important;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img.prop-firm-logo-small {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: min(70%, 180px);
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img[style*="width: 32px"] {
  padding: 0;
  background: transparent;
}

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

.prop-firm-card-title {
  min-height: 2.5rem;
}

.prop-firm-card-range {
  min-height: 1.5rem;
}

.prop-firm-card-summary {
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.prop-firm-card .view-details-wrap {
  margin-top: auto;
  padding-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;
}

/* AquaFutures reads undersized in the firm grid, so scale it up for better visual parity */
img.prop-firm-logo-small[src*="aquafutures"] {
  width: 155%;
  max-width: 155%;
}

/* BluSky also reads a bit small in the grid; bump it modestly */
img.prop-firm-logo-small[src*="BluSkyLogo"],
img.prop-firm-logo-small[src*="blusky"] {
  width: 130%;
  max-width: 130%;
}

/* Bulenox needs only a tiny nudge upward */
img.prop-firm-logo-small[src*="bulenox"] {
  max-width: 74.2%;
}

/* E8 reads a touch small in the grid */
img.prop-firm-logo-small[src*="e8"] {
  max-width: 77%;
}

/* FTMO can carry a larger mark comfortably */
img.prop-firm-logo-small[src*="FTMOLogo"],
img.prop-firm-logo-small[src*="ftmo"] {
  width: 125%;
  max-width: 125%;
}

/* FundedElite also benefits from a larger presentation */
img.prop-firm-logo-small[src*="funded-elite"],
img.prop-firm-logo-small[src*="fundedelite"] {
  max-width: 87.5%;
}

/* Lucid can be a bit more prominent in the grid */
img.prop-firm-logo-small[src*="lucid"] {
  max-width: 80.5%;
}

/* Savius benefits from a stronger presence */
img.prop-firm-logo-small[src*="savius"] {
  max-width: 91%;
}

/* The Futures Desk reads large already; bring it down a notch */
img.prop-firm-logo-small[src*="the-futures-desk"],
img.prop-firm-logo-small[src*="thefuturesdesk"] {
  max-width: 56%;
}

/* FundingTicks needs a modest bump */
img.prop-firm-logo-small[src*="FundingTicksLogo"] {
  max-width: 77%;
}

/* 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;
}
