/*
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: min(72%, 240px);
  max-height: 88px;
  width: auto;
  height: 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;
  max-width: 100%;
}

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

.prop-firm-card-logo-slot {
  width: 100%;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.9rem 0 1rem;
}

.prop-firm-card-logo-slot .prop-firm-logo-small,
.prop-firm-card-logo-slot .prop-firm-logo {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Normalize rounded corners for logos that carry their own dark rectangle artwork */
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="rebelsfunding-logo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="DayTradersLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="E8MarketsLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="finotive-funding"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="fxify.svg"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="holaprime"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="lark-funding-logo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="LeelooLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="LegendsTradingLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="SaviusLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="FundingTicksLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="taurus-dark-theme"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="taurus-light-theme"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="the-futures-desk"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="thefuturesdesk"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="think-capital"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="uprofitLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="TradersLaunchLogo"],
.prop-firm-card-logo-slot img.prop-firm-logo-small[src*="traders-launch-logo"] {
  border-radius: 10px;
}

.prop-firm-card-logo-slot picture,
.prop-firm-card-logo-slot .prop-firm-logo-chip {
  max-width: 100%;
}

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

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--atfunded {
  width: min(70%, 250px);
  max-width: min(70%, 250px);
  justify-content: center;
  padding-inline: 0.56rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--bem-funding {
  width: min(62%, 220px);
  max-width: min(62%, 220px);
  justify-content: center;
  padding-inline: 0.5rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--for-traders {
  width: min(80%, 280px);
  max-width: min(80%, 280px);
  justify-content: center;
  padding-inline: 0.56rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--funded-trading-plus {
  width: min(72%, 252px);
  max-width: min(72%, 252px);
  justify-content: center;
  padding-inline: 0.56rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--tradeify {
  width: auto;
  max-width: none;
  justify-content: center;
  padding-inline: 0.7rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--onefunded,
html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--qt-funded {
  width: min(70%, 245px);
  max-width: min(70%, 245px);
  justify-content: center;
  padding-inline: 0.56rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--traders-launch {
  width: min(90%, 315px);
  max-width: min(90%, 315px);
  justify-content: center;
  padding-inline: 0.56rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--trade-the-pool {
  width: auto;
  max-width: none;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 12px;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--trade-the-pool img.prop-firm-logo-small {
  width: 110px !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--darwinex-zero {
  width: min(62.4%, 208px);
  justify-content: center;
}

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

html:not([data-bs-theme="dark"]) .prop-firm-card-logo-slot .prop-firm-logo-chip--blue-guardian img.prop-firm-logo-small {
  width: auto;
  max-width: min(100%, 280px);
  max-height: 92px;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--blueberry-funded {
  width: min(60%, 204px);
  max-width: min(60%, 204px);
  justify-content: center;
  padding-inline: 0.45rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-card-logo-slot .prop-firm-logo-chip--blueberry-funded img.prop-firm-logo-small.prop-firm-logo--blueberry-funded {
  width: auto;
  max-width: min(100%, 188px);
  max-height: 90px;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--blue-guardian:not(.prop-firm-logo-chip--blueberry-funded):not(.prop-firm-logo-chip--bem-funding) {
  width: min(69%, 234px);
}

html:not([data-bs-theme="dark"]) .prop-firm-card-logo-slot .prop-firm-logo-chip--blue-guardian:not(.prop-firm-logo-chip--blueberry-funded):not(.prop-firm-logo-chip--bem-funding) img.prop-firm-logo-small.prop-firm-logo--blue-guardian,
html:not([data-bs-theme="dark"]) .prop-firm-card-logo-slot .prop-firm-logo-chip--blue-guardian:not(.prop-firm-logo-chip--blueberry-funded):not(.prop-firm-logo-chip--bem-funding) img.prop-firm-logo-small.prop-firm-logo--blue-guardian-futures {
  max-width: min(78%, 218px);
  max-height: 72px;
}

/* Alpha Capital Group uses a compact square mark and needs a bit more presence */
img.prop-firm-logo-small[src*="alpha-capital-group"] {
  max-width: 118px;
  max-height: 118px;
}

/* ATFunded needs the dark chip, but it should read like a logo, not a banner */
html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img.prop-firm-logo-small[src*="atfunded"] {
  max-width: min(62%, 210px);
  max-height: 74px;
}

/* For Traders ships a very shallow mark and needs more scale to read on cards */
img.prop-firm-logo-small[src*="for-traders-logo"] {
  width: 165%;
  max-width: 165%;
  max-height: 88px;
}

/* These marks are visually tiny at default card scaling */
img.prop-firm-logo-small[src*="ment-funding"] {
  width: 145%;
  max-width: 145%;
}

img.prop-firm-logo-small[src*="moneta-funded"] {
  width: 380.25%;
  max-width: 380.25%;
}

img.prop-firm-logo-small[src*="nordic-funder"] {
  width: 138%;
  max-width: 138%;
}

img.prop-firm-logo-small[src*="oanda-prop-trader"] {
  width: 145%;
  max-width: 145%;
  max-height: 84px;
}

img.prop-firm-logo-small[src*="oneup-trader"] {
  width: 120%;
  max-width: 120%;
  max-height: 96px;
}

img.prop-firm-logo-small[src*="the5ers"] {
  width: 120%;
  max-width: 120%;
  max-height: 106px;
}

img.prop-firm-logo-small[src*="qt-funded"] {
  width: 150%;
  max-width: 150%;
  max-height: 86px;
}

img.prop-firm-logo-small[src*="think-capital"] {
  width: 217.5%;
  max-width: 217.5%;
}

img.prop-firm-logo-small[src*="top-one-trader"] {
  width: 145%;
  max-width: 145%;
}

img.prop-firm-logo-small[src*="fxify.svg"] {
  width: 150%;
  max-width: 150%;
}

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.prop-firm-logo-small[src*="FundingPips-dark-theme"],
html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img.prop-firm-logo-small[src*="futureselite-dark-theme"] {
  max-width: min(105%, 270px);
  max-height: 114px;
}

html:not([data-bs-theme="dark"]) .prop-firm-logo-chip--dark-light img.prop-firm-logo-small[src*="futureselite-dark-theme"] {
  max-width: min(126%, 324px);
  max-height: 137px;
}

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%;
  max-height: 68px;
}

/* Alpha Futures now has its dark rounded background baked into the light asset */
img.prop-firm-logo-small[src*="AlphaFutures-logo"],
img.prop-firm-logo-small[src*="AlphaFutures-dark-theme"] {
  max-width: 97.5%;
  max-height: 110px;
}

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

/* Aqua family logos still read small because their SVGs are very shallow; give them a taller cap */
img.prop-firm-logo-small.prop-firm-logo--aquafunded,
img.prop-firm-logo-small.prop-firm-logo--aqua-funded-crypto,
img.prop-firm-logo-small.prop-firm-logo--aquafutures {
  width: 210%;
  max-width: 210%;
  max-height: 152px;
}

/* These other marks also need extra help in the grid, but not as much as Aqua */
img.prop-firm-logo-small.prop-firm-logo--atmos-funded,
img.prop-firm-logo-small.prop-firm-logo--bulenox,
img.prop-firm-logo-small.prop-firm-logo--city-traders-imperium {
  width: 191%;
  max-width: 191%;
  max-height: 138px;
}

img.prop-firm-logo-small.prop-firm-logo--city-traders-imperium {
  width: 171.9%;
  max-width: 171.9%;
  max-height: 124px;
}

img.prop-firm-logo-small.prop-firm-logo--brightfunded {
  width: 162%;
  max-width: 162%;
  max-height: 117px;
}

/* Legacy shared group retained for reference */
img.prop-firm-logo-small.prop-firm-logo--dna-funded {
  width: auto;
  max-width: min(78%, 220px);
  max-height: 60px;
}

/* BluSky also reads a bit small in the grid; bump it modestly */
img.prop-firm-logo-small.prop-firm-logo--blusky,
img.prop-firm-logo-small.prop-firm-logo--crypto-fund-trader {
  width: 136%;
  max-width: 136%;
  max-height: 80px;
}

img.prop-firm-logo-small.prop-firm-logo--blueberry-futures {
  width: 204%;
  max-width: 204%;
  max-height: 120px;
}

img.prop-firm-logo-small.prop-firm-logo--darwinex-zero {
  width: 174.72%;
  max-width: 174.72%;
  max-height: 115px;
}

img.prop-firm-logo-small.prop-firm-logo--audacity-capital {
  max-height: 116px;
  max-width: 116px;
}

img.prop-firm-logo-small.prop-firm-logo--axi-select {
  width: 134.05%;
  max-width: 134.05%;
  max-height: 86px;
}

img.prop-firm-logo-small.prop-firm-logo--atfunded,
img.prop-firm-logo-small.prop-firm-logo--bem-funding,
img.prop-firm-logo-small.prop-firm-logo--blue-guardian,
img.prop-firm-logo-small.prop-firm-logo--blue-guardian-futures,
img.prop-firm-logo-small.prop-firm-logo--blueberry-funded {
  width: auto;
  max-width: min(88%, 290px);
  max-height: 76px;
}

img.prop-firm-logo-small.prop-firm-logo--blueberry-funded {
  max-width: min(100%, 188px);
  max-height: 90px;
}

img.prop-firm-logo-small.prop-firm-logo--atmos-funded {
  width: 96%;
  max-width: 96%;
  max-height: 69px;
}

img.prop-firm-logo-small.prop-firm-logo--breakout {
  width: 162%;
  max-width: 162%;
  max-height: 92px;
}

img.prop-firm-logo-small.prop-firm-logo--blusky-trading-company-llc {
  width: 124%;
  max-width: 124%;
}

img.prop-firm-logo-small.prop-firm-logo--daytraders {
  max-width: min(84%, 260px);
  max-height: 72px;
}

img.prop-firm-logo-small.prop-firm-logo--ftmo,
img.prop-firm-logo-small.prop-firm-logo--lucid,
img.prop-firm-logo-small.prop-firm-logo--fundingticks {
  width: 122%;
  max-width: 122%;
}

img.prop-firm-logo-small.prop-firm-logo--funded-elite {
  width: 183%;
  max-width: 183%;
}

img.prop-firm-logo-small.prop-firm-logo--fundingticks {
  width: 78.08%;
  max-width: 78.08%;
}

img.prop-firm-logo-small.prop-firm-logo--goat-funded-trader {
  width: 150%;
  max-width: 150%;
}

/* Match the detail-page logo treatment for these two brands on the list cards */
.prop-firm-card-logo-slot img.prop-firm-logo-small.prop-firm-logo--savius,
.prop-firm-card-logo-slot img.prop-firm-logo-small.prop-firm-logo--sabio-trade {
  width: 240px !important;
  max-width: 240px !important;
  max-height: none !important;
  height: auto !important;
}

img.prop-firm-logo.prop-firm-logo--savius,
.prop-firm-card-logo-slot img.prop-firm-logo-small.prop-firm-logo--savius {
  width: 216px !important;
  max-width: 216px !important;
  height: auto !important;
}

img.prop-firm-logo-small.prop-firm-logo--hola-prime {
  width: 156%;
  max-width: 156%;
}

img.prop-firm-logo-small.prop-firm-logo--hantec-trader {
  width: 182%;
  max-width: 182%;
  transform: translateX(12%);
}

img.prop-firm-logo-small.prop-firm-logo--maven-trading {
  width: 247%;
  max-width: 247%;
}

img.prop-firm-logo-small.prop-firm-logo--trade-the-pool {
  width: 110px;
  max-width: none;
  max-height: none;
}

img.prop-firm-logo-small.prop-firm-logo--tradeify {
  width: 240px;
  max-width: 240px;
  max-height: none;
}

img.prop-firm-logo-small.prop-firm-logo--traders-launch {
  width: 100%;
  max-width: 100%;
}

img.prop-firm-logo-small.prop-firm-logo--the-futures-desk {
  width: 150%;
  max-width: 150%;
  max-height: 96px;
}

img.prop-firm-logo-small.prop-firm-logo--e8-markets {
  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;
}
