/*
PropFirms App Styles
*/

/* Detail page logo sizing */
.prop-firm-detail-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;
}

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

.prop-firm-logo-chip--light-chip {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  padding: 0.75rem 0.95rem;
}

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

.prop-firm-card-logo-slot--wide .prop-firm-logo {
  min-width: 200px;
  max-width: 240px;
  max-height: 84px;
}

.prop-firm-card-logo-slot--wide .prop-firm-logo--very-wide {
  min-width: 240px;
  max-width: 280px;
}

.prop-firm-card-logo-slot--square .prop-firm-logo {
  min-height: 96px;
  max-width: 158px;
  max-height: 116px;
}

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

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


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

[data-bs-theme="dark"] .prop-firm-logo-chip--light-chip {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* Clickable Prop Firm Card Styling */
.prop-firm-card {
  height: 100%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: transparent;
}

.prop-firm-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.prop-firm-card-content {
  flex: 1 1 auto;
  padding: 1rem 1rem 1.1rem;
}

html:not([data-bs-theme="dark"]) .prop-firm-card-media {
  background:
    radial-gradient(circle at 82% 0%, rgba(96, 165, 250, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 20%, transparent 38%),
    linear-gradient(180deg, #171a29 0%, #282a42 48%, #4b5278 100%);
}

html:not([data-bs-theme="dark"]) .prop-firm-card-content {
  background: #ffffff;
}

[data-bs-theme="dark"] .prop-firm-card-media {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 55%),
    linear-gradient(180deg, #1d2032 0%, #282a42 55%, #323654 100%);
}

[data-bs-theme="dark"] .prop-firm-card-content {
  background: #2d344b;
}

.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 1rem 2rem rgba(15, 23, 42, 0.14) !important;
  text-decoration: none !important;
  color: inherit;
}

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

.prop-firm-detail-header {
  padding: 1.25rem 1.25rem 1.35rem;
}

.prop-firm-detail-logo-panel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  min-height: 132px;
  padding: 1.1rem 1.35rem;
  border-radius: 1rem;
  overflow: hidden;
}

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

.prop-firm-detail-logo-panel .prop-firm-detail-logo {
  display: block;
  margin: 0;
  width: auto !important;
  height: auto !important;
}

.prop-firm-detail-logo-panel--wide .prop-firm-detail-logo {
  min-width: 200px;
  max-width: 240px;
  max-height: 84px;
}

.prop-firm-detail-logo-panel--wide .prop-firm-detail-logo--very-wide {
  min-width: 240px;
  max-width: 280px;
}

.prop-firm-detail-logo-panel--square {
  min-width: 158px;
}

.prop-firm-detail-logo-panel--square .prop-firm-detail-logo {
  min-height: 96px;
  max-width: 158px;
  max-height: 116px;
}

.prop-firm-logo-combo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  max-width: 100%;
}

.prop-firm-logo-combo__iso,
.prop-firm-logo-combo__wordmark {
  display: block;
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.prop-firm-logo-combo--card {
  min-width: 200px;
  max-width: 240px;
}

.prop-firm-logo-combo--card .prop-firm-logo-combo__iso {
  width: 48px;
  max-width: 48px;
  max-height: 46px;
}

.prop-firm-logo-combo--card .prop-firm-logo-combo__wordmark {
  width: calc(100% - 48px - 0.9rem);
  max-width: 158px;
  max-height: 45px;
}

.prop-firm-logo-combo--detail {
  min-width: 200px;
  max-width: 240px;
}

.prop-firm-logo-combo--detail .prop-firm-logo-combo__iso {
  width: 56px;
  max-width: 56px;
  max-height: 53px;
}

.prop-firm-logo-combo--detail .prop-firm-logo-combo__wordmark {
  width: calc(100% - 56px - 0.9rem);
  max-width: 150px;
  max-height: 42px;
}

html:not([data-bs-theme="dark"]) .prop-firm-detail-logo-panel {
  background:
    radial-gradient(circle at 82% 0%, rgba(96, 165, 250, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 20%, transparent 38%),
    linear-gradient(180deg, #171a29 0%, #282a42 48%, #4b5278 100%);
}

[data-bs-theme="dark"] .prop-firm-detail-logo-panel {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 55%),
    linear-gradient(180deg, #1d2032 0%, #282a42 55%, #323654 100%);
}

@media (max-width: 767.98px) {
  .prop-firm-detail-header > .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }

  .prop-firm-detail-header > .d-flex > .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .prop-firm-detail-logo-panel {
    width: 100%;
    min-width: 0;
    margin-right: 0 !important;
  }
}


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

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