/* =============================================
   Professional Dashboard (page-specific styles)
   This file layers on top of the shared theme used by
   pricing/professional pages. Put page-only tweaks here.
   ============================================= */

@import url("./pricing-professional.css");

/* Page‑only overrides can be added below if needed. */

/* Prevent any section background or blur from overlapping adjacent sections */
.section {
  position: relative;
  isolation: isolate;
}
.container {
  position: relative;
  z-index: 1;
}

/* Ensure ANRE calculator cards align and stretch evenly */
.calculator-grid > .calculator-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Live Market Prices grid (this page uses .price-grid, not .prices-grid) */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

/* Section variants used on this page */
.section.variant-purple {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(15, 23, 42, 0.06)
  );
}
.section.variant-green {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.04),
    rgba(15, 23, 42, 0.06)
  );
}

/* Small polish: keep price cards’ status pill aligned and avoid overflow */
.price-card .price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}
.price-card .price-trend {
  text-align: center;
}

/* Extra breathing room between major sections */
.section + .section {
  margin-top: var(--spacing-xl);
}

/* Market prices live tiles */
.market-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
}
.market-tile .tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.market-tile .tile-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}
.market-tile .tile-source {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--text-secondary);
}
.market-tile .tile-value {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Courier New", monospace;
}
.market-tile .tile-meta {
  margin-top: 0.25rem;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--text-secondary);
}

/* ANRE section typography tweaks */
.section.variant-blue .metric-label { font-size: var(--text-sm); }
.section.variant-blue .metric-value { font-size: var(--text-base); font-weight: 700; }
.metric-value.highlight { color: var(--primary-color); font-weight: 800; }

/* Smaller typography just for Romanian Market Prices section */
#romanian-market-prices .section-header h2 {
  font-size: clamp(1.875rem, 4vw, var(--text-3xl));
}
#romanian-market-prices .section-header .section-subtitle {
  font-size: var(--text-sm);
}
#romanian-market-prices .market-tile .tile-value {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-family: inherit;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
#romanian-market-prices .market-tile .tile-value * {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}
#romanian-market-prices .market-tile .tile-source,
#romanian-market-prices .market-tile .tile-meta {
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
}

@media (max-width: 768px) {
  #romanian-market-prices .section-header h2 {
    font-size: clamp(1.25rem, 5vw, var(--text-xl));
  }
  #romanian-market-prices .market-tile .tile-value {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
  }
}
