/* ─── NexToolsX · image-converter.css ──────────────────────────────── */

/* Hero */
.converter-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  position: relative;
}

/* Format şeridi */
.format-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.fmt-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.fmt-arrow {
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
}

/* Upload */
.upload-area {
  width: 100%;
  max-width: 500px;
  min-height: 180px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}

.upload-area:hover,
.upload-area.dragover,
.upload-area:focus-visible {
  border-color: var(--red);
  background: var(--surface-3);
  outline: none;
}

.upload-content,
.upload-loading {
  text-align: center;
  padding: 1.5rem;
}

.upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.upload-text { font-size: 1rem; margin-bottom: 0.25rem; }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); }

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Kontroller */
.convert-controls {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.source-label { font-weight: 600; }
.source-format { color: var(--red); font-weight: 700; }

/* Format Seçici */
.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.format-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fmt-btn {
  flex: 1;
  min-width: 70px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  letter-spacing: 0.03em;
}

.fmt-btn:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.fmt-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.fmt-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Kalite */
.quality-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quality-control label {
  font-size: 0.8rem;
  font-weight: 600;
}

.quality-control input[type="range"] {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  background: var(--surface-3);
  border-radius: 3px;
  outline: none;
}

.quality-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}

.quality-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.quality-control input[type="range"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quality-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Dönüştür Butonu */
.btn-convert {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-convert:hover:not(:disabled) {
  background: var(--red-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.btn-convert:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sonuç */
.result-area {
  width: 100%;
  max-width: 680px;
  margin-top: 1rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem;
}

.preview-card.highlight {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 4px 16px rgba(255, 0, 0, 0.15);
}

.preview-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.preview-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.preview-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.file-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.savings {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.25rem;
  color: var(--green);
}

.convert-arrow {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 700;
  text-align: center;
}

/* Aksiyon Butonları */
.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download-converted {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-download-converted:hover:not(:disabled) {
  background: #22c55e;
  transform: translateY(-2px);
}

.btn-download-converted:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-convert-another {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-convert-another:hover {
  border-color: var(--red);
  background: var(--surface-3);
}

/* Geçmiş */
.history-section {
  width: 100%;
  max-width: 520px;
  margin-top: 1.5rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.history-filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  color: var(--text-muted);
}

.history-conversion {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.history-savings {
  font-weight: 700;
  white-space: nowrap;
}

/* Hata */
.error-msg {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* ─── INFO SECTION — tüm sayfalara yapıştır ────────────────────────── */
.info-section {
  width: 100%;
  padding: 4rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-inner {
  max-width: 900px;
  margin: 0 auto;
}

.info-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.info-card:hover {
  border-color: var(--red);
  background: var(--surface-3);
  transform: translateY(-3px);
}

.info-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.info-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── SSS / FAQ Section ──────────────────────────────────────────────── */
.faq-section {
  padding: 4rem 1.5rem;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--red);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 1.25rem 1rem;
}

.faq-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .info-section {
    padding: 2.5rem 1rem;
  }
  .info-inner h2,
  .faq-inner h2 {
    font-size: 1.25rem;
  }
  .info-card {
    padding: 1rem 0.75rem;
    border-radius: 12px;
  }
  .info-icon { font-size: 1.5rem; }
  .info-card h3 { font-size: 0.78rem; }
  .info-card p { font-size: 0.7rem; }
}