/* Additive styles for the Ore Chance Calculator page (built to sit on top of mainv001.css) */

:root {
  --oc-border: rgba(255,255,255,0.10);
  --oc-muted: rgba(255,255,255,0.65);
  --oc-bad: rgba(255,80,80,0.85);
  --oc-good: rgba(120,255,160,0.85);
}

.forge-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Simple form controls that match the old theme */
.oc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--oc-border);
  background: rgba(0,0,0,0.25);
  color: #fff;
  border-radius: 12px;
  outline: none;
}

/* Intro + FAQ layout */
.oc-intro-grid{
  margin: 6px 0 14px;
  display: grid;
  gap: 14px;
  align-items: start;
}

@media (min-width: 980px){
  .oc-intro-grid{
    grid-template-columns: 1.35fr 1fr;
  }
}

.oc-mini-faq{
  border: 1px solid var(--oc-border);
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
  padding: 14px 14px;
}

.oc-mini-faq-title{
  margin: 0 0 8px 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.oc-faq-accordion details{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.10);
  padding: 10px 12px;
  margin: 10px 0;
}

.oc-faq-accordion summary{
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.oc-faq-accordion summary::-webkit-details-marker{ display:none; }

.oc-faq-answer{
  margin-top: 8px;
  line-height: 1.45;
  color: var(--oc-muted);
}


.oc-seo {
  margin: 6px 0 14px;
  color: var(--oc-muted);
  line-height: 1.45;
  max-width: 72ch;
}

.oc-select:focus {
  border-color: rgba(255,255,255,0.22);
}

.oc-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.oc-row > * {
  flex: 1 1 320px;
  min-width: 260px;
}

.oc-help {
  color: var(--oc-muted);
  font-size: 12px;
  margin-top: 6px;
}

.oc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .oc-summary { grid-template-columns: 1fr; }
}

.oc-pill {
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.22);
}

.oc-pill-title {
  font-size: 12px;
  color: var(--oc-muted);
  margin-bottom: 4px;
}

.oc-pill-value {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.oc-section-title {
  margin: 10px 0 6px;
  color: var(--oc-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Accordion */
.oc-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-item {
  border: 1px solid var(--oc-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}

.oc-item-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.20);
  border: none;
  color: #fff;
  cursor: pointer;
}

.oc-item-header:hover {
  background: rgba(0,0,0,0.28);
}

.oc-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.oc-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oc-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--oc-border);
  color: var(--oc-muted);
  background: rgba(0,0,0,0.15);
}

.oc-tag.good { color: var(--oc-good); }
.oc-tag.bad { color: var(--oc-bad); }

.oc-chevron {
  color: var(--oc-muted);
  font-weight: 800;
}

.oc-item-body {
  display: none;
  padding: 14px;
  border-top: 1px solid var(--oc-border);
}

.oc-item.open .oc-item-body { display: block; }

.oc-warning {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,80,0.25);
  background: rgba(255,80,80,0.08);
  color: rgba(255,230,230,0.95);
  font-size: 13px;
}

.oc-chance {
  margin-top: 12px;
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  padding: 12px;
}

.oc-chance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.oc-chance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.oc-chance-row .label {
  color: var(--oc-muted);
  font-size: 12px;
}

.oc-chance-row .value {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.oc-small {
  font-size: 12px;
  color: var(--oc-muted);
}

.oc-muted { color: var(--oc-muted); }
/* ---------- Rock accordion UI ---------- */

.oc-section-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.oc-rock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-rock {
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}

.oc-rock-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.oc-rock summary::-webkit-details-marker { display: none; }

.oc-rock[data-mineable="1"] .oc-rock-summary {
  border-left: 4px solid rgba(120,255,160,0.65);
}
.oc-rock[data-mineable="0"] .oc-rock-summary {
  border-left: 4px solid rgba(255,80,80,0.65);
  opacity: 0.92;
}

.oc-rock-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.oc-rock-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.oc-rock-name {
  font-weight: 900;
  color: #fff;
}

.oc-rock-sub {
  font-size: 12px;
}

.oc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.18);
}

.oc-dot--good { background: var(--oc-good); }
.oc-dot--bad  { background: var(--oc-bad); }

.oc-chip {
  border: 1px solid var(--oc-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.18);
}

.oc-chip--good { border-color: rgba(120,255,160,0.35); }
.oc-chip--bad  { border-color: rgba(255,80,80,0.35); }

.oc-rock-body {
  padding: 12px 12px 14px 12px;
  border-top: 1px solid var(--oc-border);
}

.oc-locked {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,80,0.25);
  background: rgba(255,80,80,0.08);
  color: rgba(255,230,230,0.95);
  font-size: 13px;
  margin-bottom: 10px;
}

.oc-warning {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,180,80,0.25);
  background: rgba(255,180,80,0.08);
  color: rgba(255,245,220,0.95);
  font-size: 13px;
  margin-bottom: 10px;
}

.oc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.oc-table-wrap {
  border: 1px solid var(--oc-border);
  border-radius: 14px;
  overflow: hidden;
}

.oc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.oc-table thead th {
  text-align: left;
  padding: 10px 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid var(--oc-border);
  position: sticky;
  top: 0;
}

.oc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.oc-table tbody tr:last-child td { border-bottom: none; }

.oc-ore { font-weight: 800; color: #fff; }
.oc-num { text-align: left; white-space: nowrap; }

.oc-row-unknown td {
  opacity: 0.75;
}

@media (max-width: 900px) {
  .oc-rock-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .oc-rock-right {
    justify-content: flex-start;
  }
  .oc-num { white-space: normal; }
}
/* ---------- Page layout fixes (Ore Chance page only) ---------- */

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main area should use full viewport width and sit under header */
main.oc-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 18px 20px 30px;
  box-sizing: border-box;
}

/* center the content area inside the full-width main */
.oc-container {
  width: 100%;
  margin: 0 auto;
}

/* make cards fill container width */
.oc-container .card {
  width: 100%;
  box-sizing: border-box;
}

/* ----- Premium select styling (closed state) ----- */
.oc-select {
  width: 100%;
  padding: 10px 44px 10px 12px; /* space for arrow */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* subtle glass */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.25);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;

  /* chevron */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.75) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,0.10), rgba(255,255,255,0.10));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 18px;
  background-repeat: no-repeat;
}

.oc-select:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);
}

.oc-select:focus {
  border-color: rgba(255,255,255,0.30);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 10px 30px rgba(0,0,0,0.30),
    0 0 0 3px rgba(255,255,255,0.08);
}

.oc-select:active {
  transform: translateY(1px);
}


.oc-select option,
.oc-select optgroup {
  color: #fff;
  background: #0b0b0b;
}


..oc-select option,
.oc-select optgroup {
  color: #fff;
  background: #0b0b0b;
}


main.oc-page {
  position: static !important;     /* stop absolute/fixed layouts */
  inset: auto !important;          /* clears top/right/bottom/left if set */
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;    /* let the document scroll normally */
}

/* If mainv001 forces body to be overflow hidden, undo that for this page */
body {
  overflow: auto !important;
}

.oc-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.25);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.oc-input:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);
}

.oc-input:focus{
  border-color: rgba(255,255,255,0.30);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 10px 30px rgba(0,0,0,0.30),
    0 0 0 3px rgba(255,255,255,0.08);
}
/* Weekend Boost pill toggle */
.oc-pill-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.18);
}

.oc-pill-btn:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
}

.oc-pill-btn:active{
  transform: translateY(1px);
}

/* OFF = red */
.oc-pill-off{
  border-color: rgba(255,80,80,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.18),
    0 0 0 3px rgba(255,80,80,0.08);
}

/* ON = green */
.oc-pill-on{
  border-color: rgba(120,255,160,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.18),
    0 0 0 3px rgba(120,255,160,0.08);
}
.oc-pill-btn{
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.oc-row-focus td {
  font-weight: 700;
  text-decoration: underline;
}