/* Scoped Tool CSS */
.cp-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.cp-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: bold;
}

.cp-explanation {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0284c7;
  font-size: 14px;
  color: #0369a1;
}

.cp-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

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

/* Controls Section */
.cp-controls-panel {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cp-controls-panel label {
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  margin-bottom: -5px;
  display: flex;
  justify-content: space-between;
}

.cp-controls-panel select,
.cp-controls-panel input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.cp-slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  margin-top: 10px;
}

.cp-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  cursor: pointer;
}

/* Dynamic Control Sections */
.cp-shape-section {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.cp-shape-section.active {
  display: flex;
}

/* Preview Section */
.cp-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  padding: 20px;
  min-height: 450px;
}

.cp-preview-box {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #ec4899);
  transition:
    clip-path 0.3s ease,
    -webkit-clip-path 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Presets Library */
.cp-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid #cbd5e1;
  width: 100%;
}

.cp-presets button {
  padding: 6px 12px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: 0.2s;
}

.cp-presets button:hover {
  background: #e2e8f0;
  color: #4f46e5;
  border-color: #4f46e5;
}

/* Output Section */
.cp-output-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cp-output-controls select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-weight: bold;
}

.cp-textarea {
  width: 100%;
  height: 200px;
  padding: 15px;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #1e293b;
  color: #10b981;
  resize: none;
}

.cp-btn-copy {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.cp-btn-copy:hover {
  background: #1d4ed8;
}

/* SEO Content Styles */
.seo-content {
  margin-top: 40px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.seo-content h2 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 10px;
}

.seo-content p {
  color: #4b5563;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
  color: #111827;
  margin-bottom: 5px;
}
