/* options-predictions.css  —  Options Predictions page styles */

/* ============================================
   CUMULATIVE PROFIT HERO CARD
   Golden border, dark background, large green %
   ============================================ */
.op-profit-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #c9a54e;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
}

.op-profit-card .op-profit-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.op-profit-card .op-profit-value {
  font-size: 3rem;
  font-weight: 700;
  color: #22c55e;
  line-height: 1.2;
}

.op-profit-card .op-profit-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* ============================================
   CHART CONTAINER
   ============================================ */
.op-chart-wrap {
  background: #1e293b;
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  min-height: 320px;
}

.op-chart-wrap canvas {
  width: 100% !important;
}

/* ============================================
   TAB PILLS
   Overrides for Bootstrap nav-pills to match site
   ============================================ */
.op-tabs .nav-link {
  color: #495057;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.op-tabs .nav-link:hover {
  background: rgba(34, 139, 34, 0.08);
  color: var(--primary-color, #228B22);
}

.op-tabs .nav-link.active {
  background: var(--primary-color, #228B22);
  color: #fff;
}

/* ============================================
   DATA TABLES  (Active & Closed)
   ============================================ */
.op-table {
  font-size: 0.82rem;
  border-collapse: collapse;
}

.op-table thead th {
  background: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid #dee2e6;
  border-right: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  text-align: center;
}

.op-table thead th:last-child {
  border-right: none;
}

.op-table tbody td {
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}

.op-table tbody td:last-child {
  border-right: none;
}

.op-table .text-call {
  color: #16a34a;
  font-weight: 600;
}

.op-table .text-put {
  color: #dc2626;
  font-weight: 600;
}

.op-table .text-win {
  color: #16a34a;
  font-weight: 600;
}

.op-table .text-loss {
  color: #dc2626;
  font-weight: 600;
}

.op-table .text-na {
  color: #94a3b8;
}

/* Scrollable table wrapper */
.op-table-scroll {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Fade overlay indicating more rows below */
.op-scroll-fade {
  position: relative;
}
.op-scroll-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
  border-radius: 0 0 8px 8px;
}
.op-scroll-fade.scrolled-bottom::after {
  opacity: 0;
}

/* "Scroll for more" hint text */
.op-scroll-hint {
  text-align: center;
  padding: 6px 0 2px;
  color: #6c757d;
  font-size: 0.8rem;
  animation: op-bounce 2s ease infinite;
}
@keyframes op-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ============================================
   BLURRED OVERLAY  (Active tab — non-subscribers)
   ============================================ */
.op-blur-wrap {
  position: relative;
}

.op-blur-wrap .op-blur-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.op-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

.op-blur-cta {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 420px;
}

.op-blur-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.op-blur-cta p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* ============================================
   OPPREDS APP PROMO BANNER
   ============================================ */
.op-app-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.op-app-banner .op-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

.op-app-banner .op-app-text h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #fff;
}

.op-app-banner .op-app-text p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.op-app-banner .op-app-link {
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================
   PERFORMANCE SUMMARY TABLE
   ============================================ */
.op-summary-table {
  font-size: 0.9rem;
}

.op-summary-table td:first-child {
  color: #64748b;
  font-weight: 500;
}

.op-summary-table td:last-child {
  font-weight: 700;
  text-align: right;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.op-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ============================================
   PAGINATION  (Closed tab)
   ============================================ */
.op-pagination .page-link {
  color: var(--primary-color, #228B22);
  font-size: 0.85rem;
}

.op-pagination .page-item.active .page-link {
  background-color: var(--primary-color, #228B22);
  border-color: var(--primary-color, #228B22);
  color: #fff;
}

/* ============================================
   DISCLAIMER TEXT
   ============================================ */
.op-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
  border-left: 3px solid #c9a54e;
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet: hide less-important date columns, shrink fonts */
@media (max-width: 991.98px) {
  .op-table {
    font-size: 0.78rem;
  }

  .op-table thead th,
  .op-table tbody td {
    padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 767.98px) {
  .op-profit-card .op-profit-value {
    font-size: 2.25rem;
  }

  .op-chart-wrap {
    padding: 0.75rem;
    min-height: 240px;
  }

  .op-tabs .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .op-app-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .op-app-banner .op-app-link {
    margin-left: 0;
  }

  .op-blur-cta {
    padding: 1.25rem 1.5rem;
    margin: 0 1rem;
  }

  .op-table {
    font-size: 0.73rem;
  }

  .op-table thead th,
  .op-table tbody td {
    padding: 0.25rem 0.35rem;
  }

  .op-table-scroll {
    max-height: 450px;
  }
}

@media (max-width: 575.98px) {
  .op-profit-card {
    padding: 1.25rem 1rem;
  }

  .op-profit-card .op-profit-value {
    font-size: 1.85rem;
  }

  .op-table {
    font-size: 0.7rem;
  }

  .op-table thead th {
    font-size: 0.68rem;
    padding: 0.2rem 0.3rem;
  }

  .op-table tbody td {
    padding: 0.2rem 0.3rem;
  }

  /* Contract label: keep ticker bold but let detail text wrap */
  .op-table tbody td:first-child {
    white-space: normal;
    min-width: 70px;
  }

  .op-table-scroll {
    max-height: 400px;
  }
}
