/* Shared layout for dailyRushes tool pages (tool header, tab bar, panels, drop zone, two
   columns, form fields, buttons, info pages). Copied from markernotes-creator.php's page CSS,
   so pages that link this file look the same. Dark site theme only. */

/* ── Page header ────────────────────────────── */

.tool-header {
  background: #121214;
  border-bottom: 1px solid #2A2D35;
  padding: 16px 24px;
  text-align: center;
}

.tool-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #E4E6EB;
  letter-spacing: 0.04em;
}

.tool-header .subtitle {
  font-size: 0.85rem;
  color: #8A2BE2;
  margin-top: 4px;
  font-weight: 500;
}

/* ── Content wrapper ─────────────────────────── */

.content-wrapper {
  margin: 0 auto;
  max-width: 1516px;
}

/* ── Shared fields ───────────────────────────── */

.shared-fields {
  background: #1A1C20;
  color: #E4E6EB;
  max-width: 1483px;
  margin: 18px;
  padding: 16px 24px;
  border-radius: 6px;
  border: 1px solid #2A2D35;
}

.shared-fields h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8A2BE2;
  margin-bottom: 12px;
}

.shared-fields h2 + h2,
.shared-fields p + h2 {
  margin-top: 14px;
}

.shared-fields-flush {
  margin-top: 0;
  margin-bottom: 0;
}

.shared-fields-gap-below {
  margin-bottom: 24px;
}

.shared-fields-top-only {
  margin-bottom: 18px;
}

/* ── Section intro ──────────────────────────── */

.section-intro {
  width: 70%;
  margin: 0 auto 18px;
  line-height: 1.5;
  text-align: center;
}

/* ── Drop zone ──────────────────────────────── */

.drop-zone {
  background: #1A1C20;
  color: #E4E6EB;
  max-width: 1483px;
  margin: 24px 18px 18px;
  padding: 24px;
  border: 2px dashed #3A3D45;
  border-radius: 6px;
  text-align: center;
}

.drop-zone p {
  font-size: 0.88rem;
  color: #7A7D85;
  margin-bottom: 12px;
}

.drop-zone .btn {
  margin: 0 auto;
}

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

.shared-row .field {
  flex: 1 1 10px;
  min-width: 120px;
}

/* ── Two-column text ─────────────────────────── */

.two-col-text {
  columns: 2;
  column-gap: 24px;
}

.two-col-text p {
  font-size: 0.85rem;
  color: #B0B3BA;
  line-height: 1.55;
}

/* ── Column descriptions ─────────────────────── */

.column-descriptions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.column-descriptions > div {
  flex: 1 1 300px;
  min-width: 0;
}

.column-descriptions strong {
  font-size: 0.85rem;
  color: #E4E6EB;
}

.column-descriptions p {
  font-size: 0.82rem;
  color: #9A9DA5;
  line-height: 1.5;
}

.column-descriptions .desc-heading {
  margin-bottom: 4px;
}

/* ── Two-column layout ───────────────────────── */

.tool-columns {
  display: flex;
  gap: 16px;
  max-width: 1516px;
  margin: 20px auto;
  padding: 0 16px;
}

.tool-column {
  flex: 0 1 750px;
  padding: 20px 24px;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid #2A2D35;
  background: #1A1C20;
  color: #E4E6EB;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2A2D35;
}

.column-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E4E6EB;
  margin-bottom: 0;
}

.column-header .badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0B0C10;
  background: #00D4AA;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}

/* ── Form elements ───────────────────────────── */

.tool-column label,
.shared-fields label {
  display: block;
  font-size: 0.78rem;
  color: #7A7D85;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-column input[type="text"],
.tool-column input[type="number"],
.tool-column textarea,
.tool-column select,
.shared-fields input[type="text"],
.shared-fields input[type="number"],
.shared-fields textarea,
.shared-fields select {
  width: 100%;
  background: #0B0C10;
  border: 1px solid #2A2D35;
  color: #E4E6EB;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.tool-column input[type="text"]:focus,
.tool-column input[type="number"]:focus,
.tool-column textarea:focus,
.tool-column select:focus,
.shared-fields input[type="text"]:focus,
.shared-fields input[type="number"]:focus,
.shared-fields textarea:focus,
.shared-fields select:focus {
  outline: none;
  border-color: #8A2BE2;
  box-shadow: 0 0 0 1px rgba(138, 43, 226, 0.3);
}

.tool-column input[type="text"]::placeholder,
.tool-column input[type="number"]::placeholder,
.tool-column textarea::placeholder,
.shared-fields input[type="text"]::placeholder,
.shared-fields input[type="number"]::placeholder,
.shared-fields textarea::placeholder {
  color: #4A4D55;
}

.tool-column select option,
.shared-fields select option {
  background: #1A1C20;
  color: #E4E6EB;
}

.tool-column textarea,
.shared-fields textarea {
  resize: vertical;
  min-height: 60px;
}

.field {
  margin-bottom: 12px;
}

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

.field-row .field {
  flex: 1 1 0;
  min-width: 0;
}

.field-row-3 .field {
  flex: 1 1 0;
}

/* ── Buttons ─────────────────────────────────── */

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.tool-btn:active {
  transform: scale(0.97);
}

.tool-btn-primary {
  background: #8A2BE2;
  color: #ffffff;
}

.tool-btn-primary:hover {
  background: #7B25CC;
}

.tool-btn-secondary {
  background: #2A2D35;
  color: #B0B3BA;
  border: 1px solid #3A3D45;
}

.tool-btn-secondary:hover {
  background: #33363E;
  color: #E4E6EB;
}

.tool-btn-danger {
  background: transparent;
  color: #E5484D;
  padding: 4px 8px;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.tool-btn-danger:hover {
  background: rgba(229, 72, 77, 0.12);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.add-row-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px dashed #3A3D45;
  color: #7A7D85;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.add-row-btn:hover {
  border-color: #8A2BE2;
  color: #8A2BE2;
}

/* ── Section dividers ────────────────────────── */

.section-divider {
  border: none;
  border-top: 1px solid #2A2D35;
  margin: 16px 0;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A7D85;
  margin-bottom: 10px;
  margin-top: 4px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 860px) {
  .tool-columns {
    flex-direction: column;
  }

  .tool-column {
    flex: 1 1 auto;
  }

  .two-col-text {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .section-intro {
    width: 100%;
  }

  .tool-header {
    padding: 12px 16px;
  }

  .shared-fields {
    padding: 12px 16px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .how-it-works {
    max-height: 200px;
    overflow-y: auto;
  }

  .tool-column {
    padding: 16px;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .shared-row {
    flex-direction: column;
    gap: 0;
  }
}

.tool-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

[hidden] { display: none !important; }

/* ── Tab navigation ─────────────────────────── */

.tab-bar {
  display: flex;
  gap: 0;
  max-width: 1516px;
  margin: 0 auto;
  padding: 0 16px;
  background: #121214;
  border-bottom: 1px solid #2A2D35;
}

.tab-bar button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #7A7D85;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.tab-bar button:hover {
  color: #B0B3BA;
}

.tab-bar button.active {
  color: #E4E6EB;
  border-bottom-color: #8A2BE2;
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Info page sections (tabs 2-4) ──────────── */

.info-page {
  max-width: 800px;
  margin: 24px auto;
  padding: 0 24px;
  color: #E4E6EB;
}

.info-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E4E6EB;
  margin: 0 0 8px;
}

.info-page h2 + p {
  font-size: 0.92rem;
  color: #9A9DA5;
  margin-bottom: 24px;
  line-height: 1.5;
}

.info-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #E4E6EB;
  margin: 28px 0 10px;
}

.info-page ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.info-page ol li {
  font-size: 0.88rem;
  color: #B0B3BA;
  line-height: 1.6;
  margin-bottom: 6px;
}

.info-page ol ol {
  margin-top: 6px;
  list-style-type: lower-alpha;
}

.info-page p {
  font-size: 0.88rem;
  color: #B0B3BA;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-page code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  background: #15171B;
  padding: 2px 6px;
  border-radius: 3px;
  color: #7dd3fc;
}

.info-page pre {
  background: #15171B;
  border: 1px solid #2A2D35;
  border-radius: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  margin: 10px 0 16px;
}

.info-page pre code {
  background: transparent;
  padding: 0;
  display: block;
  white-space: pre;
}

.info-page .next-time-box {
  background: #1A1C20;
  border: 1px solid #2A2D35;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-page .next-time-box h3 {
  margin-top: 0;
  color: #00D4AA;
  font-size: 0.9rem;
}

.info-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.info-page th {
  text-align: left;
  padding: 10px 12px;
  background: #15171B;
  color: #7A7D85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  border-bottom: 1px solid #2A2D35;
}

.info-page td {
  padding: 10px 12px;
  color: #B0B3BA;
  border-bottom: 1px solid #1E2025;
  vertical-align: top;
  line-height: 1.5;
}

.info-page .licence-note {
  font-size: 0.78rem;
  color: #7A7D85;
  margin-top: 24px;
  line-height: 1.5;
}

.info-page .licence-note a {
  color: #8A2BE2;
}

.info-page a {
  color: #8A2BE2;
  text-decoration: none;
}

.info-page a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .tab-bar {
    overflow-x: auto;
    padding: 0 8px;
  }

  .tab-bar button {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .info-page {
    padding: 0 16px;
  }
}
