/* ═══════════════════════════════════════════════
   Global Bento Layout - Structural Classes
   Extracted from standard Premium Tools
   ═══════════════════════════════════════════════ */

/* Page Header */
.bento-page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
}

.bento-ph-left {
  padding: 44px 48px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.bento-ph-left::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

.bento-ph-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bento-ph-eyebrow .ey-dot {
  width: 6px;
  height: 6px;
  background: var(--green, #00c875);
  border-radius: 50%;
  animation: bento-dot-blink 1.8s step-end infinite;
}

@keyframes bento-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.bento-ph-eyebrow .ey-sep {
  color: var(--border);
}

.bento-ph-title {
  font-family: var(--cond);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.bento-ph-title .t-accent {
  color: var(--yellow);
}

.bento-ph-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.65;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin-bottom: 28px;
}

.bento-ph-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bento-ph-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.bento-ph-tag.yellow {
  border-color: var(--yellow);
  color: var(--yellow);
}
.bento-ph-tag.green {
  border-color: var(--green, #00c875);
  color: var(--green, #00c875);
}

.bento-ph-right {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.bento-ph-stat {
  flex: 1;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-ph-stat:last-child {
  border-bottom: none;
}

.bento-ph-stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bento-ph-stat-val {
  font-family: var(--cond);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.bento-ph-stat-val .y {
  color: var(--yellow);
}

.bento-ph-stat-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Main Layout */
.bento-page-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 80vh;
}
.bento-col-main {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.bento-col-side {
  display: flex;
  flex-direction: column;
  background: #080808;
}

/* Tool Panel */
.bento-tool-panel {
  border-bottom: 1px solid var(--border);
}

.bento-tool-panel-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  height: 46px;
}

.bento-tph-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border);
  flex: 1;
}

.bento-tph-title .status {
  width: 6px;
  height: 6px;
  background: var(--green, #00c875);
  border-radius: 50%;
  flex-shrink: 0;
  animation: bento-dot-blink 1.8s step-end infinite;
}

.bento-tph-title .status-text {
  color: var(--green, #00c875);
  font-size: 0.65rem;
}

.bento-tph-actions {
  display: flex;
  align-items: stretch;
}

.bento-tph-btn {
  height: 46px;
  padding: 0 16px;
  border: none;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  transition:
    color 0.12s,
    background 0.12s;
  cursor: pointer;
}

.bento-tph-btn:hover {
  color: var(--white);
  background: #111;
}
.bento-tph-btn:last-child {
  border-right: none;
}

.bento-tool-body {
  padding: 28px;
}

/* Standard Output Areas */
.bento-output-wrap {
  position: relative;
  margin-bottom: 20px;
}

.bento-output {
  width: 100%;
  padding: 20px 70px 20px 20px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  word-break: break-all;
  line-height: 1.5;
  min-height: 72px;
  display: flex;
  align-items: center;
  transition: border-color 0.15s;
}

.bento-output:hover {
  border-color: var(--yellow);
}

.bento-output-copy {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #161616;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s;
}

.bento-output-copy:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.bento-output-copy.ok {
  border-color: var(--green, #00c875);
  color: var(--green, #00c875);
}

/* Options Grid */
.bento-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.bento-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.12s;
  cursor: pointer;
  user-select: none;
}

.bento-option:nth-child(even) {
  border-right: none;
}
.bento-option:nth-last-child(-n + 2) {
  border-bottom: none;
}
.bento-option:hover {
  background: #0f0f0f;
}

.bento-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.12s,
    background 0.12s;
}

.bento-option input[type="checkbox"]:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}

.bento-option input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--ink, #0c0c0c);
}

.bento-option-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--white);
}

.bento-option-hint {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: auto;
}

/* Actions Row */
.bento-action-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bento-btn-primary {
  height: 48px;
  padding: 0 32px;
  background: var(--yellow);
  color: var(--ink, #0c0c0c);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-btn-primary:hover {
  background: #e5b300;
}
.bento-btn-primary:active {
  transform: translateY(1px);
}

/* Sidebar Info Details (if not fully covered by global sidebar) */
.bento-detail-pill {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.bento-dp-label {
  color: var(--muted);
}
.bento-dp-val {
  color: var(--white);
}

/* Documentation Content / Text Section */
.bento-content-section {
  padding: 40px 48px;
}

.bento-cs-header {
  margin-bottom: 32px;
}

.bento-cs-title {
  font-family: var(--cond);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.bento-cs-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.bento-step {
  padding: 24px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  border-left: 3px solid #333;
  transition: border-color 0.2s;
}

.bento-step:hover {
  border-left-color: var(--yellow);
}

.bento-step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--yellow);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.bento-step-title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.bento-step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-page-body {
    grid-template-columns: 1fr;
  }
  .bento-col-main {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .bento-page-header {
    grid-template-columns: 1fr;
  }
  .bento-ph-left {
    padding: 30px 20px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .bento-ph-right {
    flex-direction: row;
    border-bottom: 1px solid var(--border);
  }
  .bento-ph-stat {
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 16px;
  }
  .bento-ph-stat:last-child {
    border-right: none;
  }
  .bento-options-grid {
    grid-template-columns: 1fr;
  }
  .bento-option {
    border-right: none;
  }
  .bento-option:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .bento-option:last-child {
    border-bottom: none;
  }
  .bento-content-section {
    padding: 30px 20px;
  }
}
