/* Scoped Tool CSS */
.gb-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;
}
.gb-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: bold;
}
.gb-explanation {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #0284c7;
  font-size: 14px;
  color: #0369a1;
}

.gb-grid-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  margin-bottom: 25px;
}
@media (max-width: 900px) {
  .gb-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Controls Section */
.gb-controls {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
}
.gb-controls label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  margin-bottom: -5px;
}
.gb-controls select,
.gb-controls input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.gb-controls input[type="range"] {
  padding: 0;
  height: 6px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  margin-top: 10px;
  border-radius: 5px;
}
.gb-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  cursor: pointer;
}

.gb-item-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.gb-btn-item {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  color: white;
  transition: 0.2s;
}

/* Preview Section */
.gb-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gb-preview-box {
  width: 100%;
  height: 500px;
  border: 2px dashed #cbd5e1;
  padding: 15px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: auto;
  display: grid;
  transition: all 0.3s ease;
}

.gb-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 60px;
}
.gb-item:nth-child(10n + 1) {
  background: #4f46e5;
}
.gb-item:nth-child(10n + 2) {
  background: #06b6d4;
}
.gb-item:nth-child(10n + 3) {
  background: #14b8a6;
}
.gb-item:nth-child(10n + 4) {
  background: #f59e0b;
}
.gb-item:nth-child(10n + 5) {
  background: #ef4444;
}
.gb-item:nth-child(10n + 6) {
  background: #7c3aed;
}
.gb-item:nth-child(10n + 7) {
  background: #ec4899;
}
.gb-item:nth-child(10n + 8) {
  background: #10b981;
}
.gb-item:nth-child(10n + 9) {
  background: #f97316;
}
.gb-item:nth-child(10n + 10) {
  background: #64748b;
}

/* Output Section */
.gb-output-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.gb-output-controls select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-weight: bold;
  width: 100%;
}
.gb-textarea {
  width: 100%;
  height: 220px;
  padding: 15px;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #1e293b;
  color: #10b981;
  resize: none;
}
.gb-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;
}
.gb-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;
}
