/* --- GLOBAL & TYPOGRAPHY --- */
body {
  font-family: "Montserrat", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
code,
pre,
textarea,
.tech-font {
  font-family: "JetBrains Mono", monospace;
  font-variant-ligatures: none;
}
html {
  scroll-behavior: smooth;
}

/* --- PREMIUM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark-scroll::-webkit-scrollbar-thumb {
  background: #334155;
}
.dark-scroll::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* --- FORM & INPUTS --- */
.field-control {
  width: 100%;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.field-control:hover {
  border-color: #cbd5e1;
}
.field-control:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.masked-secret {
  -webkit-text-security: disc;
}
.masked-secret.is-visible {
  -webkit-text-security: none;
}

/* --- SIDEBAR NAV --- */
.nav-link-active {
  background: #ffffff;
  color: #ea580c;
  border-left: 3px solid #ea580c;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}
.nav-link-default {
  color: #64748b;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.nav-link-default:hover {
  color: #0f172a;
  background: rgba(241, 245, 249, 0.8);
  border-left-color: #e2e8f0;
  padding-left: 1.25rem;
}

/* --- BADGES & CARDS --- */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.tech-badge-orange {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid rgba(253, 186, 116, 0.3);
}
.tech-badge-slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.note-card {
  background: #fffcf9;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- TABS & IDE BUTTONS --- */
.content-tab-active {
  color: #ea580c;
  border-bottom: 2px solid #ea580c;
  font-weight: 600;
  padding-bottom: 12px;
}
.content-tab-default {
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  padding-bottom: 12px;
  transition: all 0.2s ease;
}
.content-tab-default:hover {
  color: #334155;
  border-bottom-color: #e2e8f0;
}
.ide-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.ide-btn:active {
  transform: translateY(0);
}

/* --- PARAMETER TABLES --- */
table {
  border-radius: 12px;
  overflow: hidden;
}
tr {
  transition: background 0.2s ease;
}
tr:hover {
  background-color: #fafbfc;
}
td {
  vertical-align: top;
}

/* --- COPY FEEDBACK --- */
.copy-feedback {
  position: absolute;
  top: -32px;
  right: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.copy-btn-success {
  color: #16a34a !important;
  background: #f0fdf4 !important;
}

/* --- CODE BLOCKS --- */
#json-output,
#code-example-output,
#response-example-output {
  line-height: 1.6;
  font-size: 13px;
  tab-size: 2;
}
#json-output {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#json-output * {
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}
.request-header-value {
  color: #fdba74;
  word-break: break-all;
}
.bg-slate-post {
  background-color: rgb(222, 178, 98);
}
.bg-slate-get {
  background-color: green;
}
.overflow-wrap-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

/* --- AUTH PAGE SPECIFIC (STEP CARDS & LIGHTBOX) --- */
.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.step-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}
.step-index {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.screenshot-card {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: #f97316;
}
.screenshot-card img {
  display: block;
  width: 240px;
  min-width: 240px;
  height: 140px;
  object-fit: cover;
  border-right: 1px solid #f1f5f9;
  transition: transform 0.4s ease;
}
.screenshot-card:hover img {
  transform: scale(1.03);
}
.screenshot-card::after {
  content: "TAM EKRAN GÖR";
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.screenshot-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.screenshot-card-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 4px;
  background: #ffffff;
}
.screenshot-card-caption-text strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}
.screenshot-card-caption-text small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: all 0.3s ease;
}
.lightbox.is-open {
  display: flex;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-dialog {
  position: relative;
  width: auto;
  max-width: 95vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
  transition: 0.2s;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #f8fafc;
}
.lightbox-meta {
  padding: 18px 24px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  aside {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
  }
  main {
    padding-bottom: 40px !important;
  }
  .flex-row {
    flex-direction: column !important;
  }
  .h-screen {
    height: auto !important;
    overflow: visible !important;
  }
}
@media (max-width: 768px) {
  .screenshot-card {
    flex-direction: column;
  }
  .screenshot-card img {
    width: 100%;
    min-width: 100%;
    height: 180px;
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .screenshot-card::after {
    display: none;
  }
  .lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
