/* ════════════════════════════════════════
   Color Palette Generator — palette.css
   ════════════════════════════════════════ */


.accent-text { color: var(--accent); }

.subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -1rem;
  margin-bottom: 1.2rem;
}
 .seo-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.8;
  }
 
  .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    color: #0f172a;
    border-left: 4px solid #c0622a;
    padding-left: 12px;
  }
 
  .seo-content p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 0.97rem;
  }
 
  /* Harmony Mode Cards */
  .harmony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 24px 0;
  }
 
  .harmony-card {
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
  }
 
  .harmony-card .h-icon { font-size: 1.4rem; margin-bottom: 6px; display: block; }
  .harmony-card strong { display: block; font-size: 0.95rem; color: #0f172a; margin-bottom: 4px; }
  .harmony-card span { font-size: 0.83rem; color: #4b5563; }
 
  /* Palette Examples */
  .palette-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .palette-ex {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
  }
 
  .palette-ex .p-label {
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f8fafc;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
  }
 
  .palette-ex .p-swatches {
    display: flex;
    height: 60px;
  }
 
  .palette-ex .p-swatches span {
    flex: 1;
  }
 
  /* Export Format Cards */
  .export-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
  }
 
  .export-card {
    border-radius: 12px;
    overflow: hidden;
  }
 
  .export-card .e-header {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: white;
    text-align: center;
  }
 
  .export-card.css-card    .e-header { background: #2563eb; }
  .export-card.tw-card     .e-header { background: #0ea5e9; }
  .export-card.json-card   .e-header { background: #16a34a; }
 
  .export-card pre {
    background: #1e1e2e;
    padding: 12px;
    margin: 0;
    font-size: 0.75rem;
    font-family: monospace;
    overflow-x: auto;
    white-space: pre-wrap;
  }
 
  .export-card.css-card    pre { color: #89b4fa; }
  .export-card.tw-card     pre { color: #89dceb; }
  .export-card.json-card   pre { color: #a6e3a1; }
 
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .feature-card {
    background: #fdf5f0;
    border: 1px solid #f5c6a8;
    border-radius: 10px;
    padding: 16px;
  }
 
  .feature-card .icon { font-size: 1.4rem; }
  .feature-card strong { display: block; margin: 6px 0 4px; font-size: 0.95rem; color: #7c2d12; }
  .feature-card span { font-size: 0.85rem; color: #4b5563; }
 
  .steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: steps;
  }
 
  .steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
  }
 
  .steps-list li::before {
    content: counter(steps);
    background: #c0622a;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
 
  .use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }
 
  .use-case-tag {
    background: #fdf5f0;
    border: 1px solid #f5c6a8;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #7c2d12;
  }
 
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
  }
 
  .compare-table th {
    background: #c0622a;
    color: white;
    padding: 12px 16px;
    text-align: left;
  }
 
  .compare-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
  }
 
  .compare-table tr:nth-child(even) td { background: #fdf5f0; }
 
  .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
 
  .faq-q {
    background: #f9fafb;
    padding: 14px 18px;
    font-weight: 600;
    color: #7c2d12;
    font-size: 0.95rem;
  }
 
  .faq-a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
  }
 
  .info-box {
    background: #fdf5f0;
    border: 1px solid #f5c6a8;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: #7c2d12;
  }
 
  .code-inline {
    background: #1e1e2e;
    color: #a6e3a1;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
  }
 
  @media (max-width: 600px) {
    .export-cards { grid-template-columns: 1fr; }
  }

/* ── Controls Row ── */
.controls-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 0.2rem;
}

.control-group { display: flex; flex-direction: column; gap: 0.3rem; }
.control-group label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

/* Color picker */
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s;
}
.color-picker-wrap:hover { border-color: var(--accent); }

.color-picker-wrap input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: none;
  outline: none;
}

.color-hex-display {
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

/* Select */
.container select {
  margin-top: 0;
  padding: 0.55rem 0.8rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

/* Range slider */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  border: none !important;
  padding: 0 !important;
  margin-top: 0.4rem;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── Generate Button ── */
.shorten-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.shorten-btn:hover  { background: var(--accent2); transform: translateY(-2px); }
.shorten-btn:active { transform: translateY(0); }

/* ── Palette Strip ── */
.palette-strip {
  display: flex;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.strip-swatch {
  flex: 1;
  transition: flex 0.3s ease;
  cursor: pointer;
}
.strip-swatch:hover { flex: 2; }

/* ── Palette Grid ── */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.palette-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.35s ease both;
}
.palette-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-swatch {
  height: 80px;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.lock-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}
.card-swatch:hover .lock-btn { opacity: 1; }
.lock-btn.locked { opacity: 1; background: rgba(255,255,255,0.95); }

.card-info {
  padding: 0.4rem 0.5rem 0.5rem;
}

.card-hex {
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name {
  font-size: 0.62rem;
  color: var(--muted);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-chip {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.2rem 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.62rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.copy-chip:hover { background: var(--accent-lt); }
.copy-chip.copied { color: #27ae60; border-color: #27ae60; background: #eafaf1; }

/* ── Format Tabs ── */
.format-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Export Section ── */
.export-section {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.2);
  border-radius: 10px;
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.result-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.export-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.swap-btn:hover { background: var(--accent-lt); transform: translateY(-1px); }
.swap-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.code-block {
  background: #1e1a16;
  color: #f0e8dc;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 0.6rem;
  max-height: 220px;
  overflow-y: auto;
}

.icon-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--accent);
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--accent-lt); }
.icon-btn.copied { color: #27ae60; border-color: #27ae60; }


.prev-body { padding: 1rem; }

.prev-hero {
  text-align: center;
  padding: 1.2rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.prev-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.prev-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.prev-btn {
  padding: 0.45rem 1.2rem;
  border: none;
  border-radius: 100px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.prev-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.prev-card {
  padding: 0.6rem;
  border-radius: 8px;
  text-align: center;
}

.prev-card-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.prev-card-title {
  font-size: 0.65rem;
  font-weight: 700;
}

/* ── History ── */
.history-section {
  margin-top: 1.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.history-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clear-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  transition: color 0.2s;
}
.clear-btn:hover { color: var(--accent); }

.history-list { display: flex; flex-direction: column; gap: 0.6rem; }

.history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  animation: cardIn 0.3s ease;
}
.history-item:hover { border-color: var(--accent); background: var(--accent-lt); }

.history-swatches {
  display: flex;
  gap: 3px;
  flex: 1;
}

.history-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.history-mode {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.history-load {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Baloo 2', sans-serif;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.history-load:hover { background: var(--accent-lt); }


/* ── Tool Banner ── */
.tool-banner-wrap {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.tool-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, #1a1028 55%, #2a1540);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.tool-banner-text {
  padding: 2rem 0 2rem 2rem;
  flex: 1;
}
.tool-banner-text .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192,98,42,0.2);
  border: 1px solid rgba(192,98,42,0.35);
  color: var(--accent2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.tool-banner-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.tool-banner-text p {
  font-size: 0.85rem;
  color: #a090b8;
  line-height: 1.65;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.tool-banner-img {
  width: 200px;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-palette {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 170px;
}
.mock-swatch {
  height: 26px;
  border-radius: 6px;
}

/* ── Info Cards Wrapper ── */
.info-cards-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tool-banner-img { display: none; }
  .tool-banner-text { padding: 1.5rem; }
  .tool-banner-text h3 { font-size: 1.15rem; }
}
