/* ========================================================
   SajtPro — Tool Pages (Live Editor & Panel)
   ======================================================== */

/* ========== TOOL MOCKUPS ========== */

/* --- Editor Mockup --- */
.tool-editor-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.tool-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tool-editor-toolbar span {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.tool-editor-toolbar span:nth-child(4) {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
}
.tool-editor-body {
  padding: 20px 18px;
  min-height: 160px;
}
.tool-editor-line {
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.tool-editor-line:nth-child(1) { width: 70%; }
.tool-editor-line:nth-child(2) { width: 90%; }
.tool-editor-line:nth-child(3) { width: 45%; }
.tool-editor-highlight {
  display: inline-block;
  height: 10px;
  width: 55%;
  border-radius: 4px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.3);
  margin-bottom: 10px;
  animation: toolHighlightPulse 2.5s ease-in-out infinite;
}
@keyframes toolHighlightPulse {
  0%, 100% { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.2); }
  50% { background: rgba(99,102,241,0.3); border-color: rgba(99,102,241,0.5); }
}
.tool-editor-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent-l);
  border-radius: 1px;
  vertical-align: middle;
  margin-left: 2px;
  animation: toolCursorBlink 1s step-end infinite;
}
@keyframes toolCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Panel Mockup --- */
.tool-panel-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  min-height: 220px;
}
.tool-panel-sidebar {
  width: 48px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tool-panel-sidebar-dot {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.tool-panel-sidebar-dot:first-child {
  background: var(--accent);
}
.tool-panel-main {
  flex: 1;
  padding: 16px;
}
.tool-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.tool-panel-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.tool-panel-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 2px;
}
.tool-panel-stat-label {
  font-size: 10px;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-panel-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  padding: 0 4px;
}
.tool-panel-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent), #c084fc);
  opacity: 0.7;
  height: 0;
}
.tool-panel-mockup.tool-visible .tool-panel-chart-bar {
  animation: toolBarGrow 0.8s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both;
}
@keyframes toolBarGrow {
  to { height: var(--h, 50%); }
}

/* ========== SCREENSHOT SLOT ========== */

.screenshot-slot {
  width: 100%;
  max-width: 420px;
  min-height: 120px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--text-m);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}
.screenshot-slot img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 2px);
}

/* ========== FEATURE GRID ========== */

.tool-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.tool-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.tool-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-l), #c084fc, var(--accent-l), transparent);
  border-radius: 0 0 4px 4px;
}
.tool-feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
}
.tool-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tool-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.tool-feature-card p {
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.6;
}

/* ========== HOW IT WORKS (STEPS) ========== */

.tool-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.tool-step {
  text-align: center;
  position: relative;
}
.tool-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-l);
  margin: 0 auto 16px;
}
.tool-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.tool-step p {
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ========== TOOL SPLIT VISUAL ========== */

.tool-split-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

@media (max-width: 960px) {
  .tool-features { grid-template-columns: repeat(2, 1fr); }
  .tool-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .tool-features { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .tool-steps { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .tool-editor-mockup,
  .tool-panel-mockup,
  .screenshot-slot { max-width: 100%; }
  .split .tool-split-visual { margin-top: 20px; }
  .tool-feature-card p,
  .tool-step p { text-align: justify; }
}
