/**
 * AykutAkman.com - Modern IDE Code Highlighter Styles
 * Modern macOS Pencere Tasarımı & Canlı Sözdizimi Renkleri
 */

.ide-code-wrapper {
  background: #181825;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 28px 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  position: relative;
  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ide-code-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

/* Header (Mac Window Bar) */
.ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #11111b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
}

/* macOS Dots */
.ide-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: default;
}

.ide-dot:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.ide-dot-red {
  background: #ff5f56;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.ide-dot-yellow {
  background: #ffbd2e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.ide-dot-green {
  background: #27c93f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Language Badge */
.ide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 12px;
}

.ide-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cdd6f4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ide-lang-badge i {
  font-size: 13px;
}

/* Actions & Copy Button */
.ide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ide-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #bac2de;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.ide-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ide-copy-btn:active {
  transform: translateY(0);
}

.ide-copy-btn.copied {
  background: rgba(166, 227, 161, 0.18) !important;
  color: #a6e3a1 !important;
  border-color: rgba(166, 227, 161, 0.5) !important;
}

/* Body & Lines */
.ide-body {
  padding: 14px 0;
  max-height: 600px;
  overflow: auto;
  background: #181825;
}

.ide-lines {
  display: flex;
  flex-direction: column;
  min-width: 100%;
  width: max-content;
}

.ide-line {
  display: flex;
  align-items: flex-start;
  padding: 0 18px;
  line-height: 1.68;
  font-size: 13.5px;
  transition: background-color 0.12s ease;
  box-sizing: border-box;
}

.ide-line:hover {
  background-color: rgba(255, 255, 255, 0.038);
}

.ide-line-num {
  user-select: none;
  -webkit-user-select: none;
  color: #585b70;
  text-align: right;
  padding-right: 16px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 16px;
  flex-shrink: 0;
}

.ide-line-code {
  flex-grow: 1;
  white-space: pre;
  color: #cdd6f4;
  tab-size: 4;
  -moz-tab-size: 4;
  word-break: normal;
}

/* Custom Dark Scrollbar */
.ide-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ide-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.22);
}

.ide-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.ide-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   SÖZDİZİMİ (SYNTAX) RENKLERİ - CATPPUCCIN MOCHA & TOKYO NIGHT
   ═══════════════════════════════════════════════════════════════ */
.ide-keyword      { color: #cba6f7; font-weight: 600; } /* Mor / Magenta */
.ide-builtin      { color: #89b4fa; font-weight: 600; } /* Gök Mavisi */
.ide-func         { color: #89dceb; }                   /* Açık Camgöbeği */
.ide-string       { color: #a6e3a1; }                   /* Canlı Yeşil */
.ide-comment      { color: #7f849c; font-style: italic; } /* Gri / Arduvaz */
.ide-number       { color: #fab387; }                   /* Şeftali / Turuncu */
.ide-var          { color: #f38ba8; }                   /* Mercan Kırmızısı */
.ide-tag          { color: #f38ba8; font-weight: 600; } /* Gül Rengi */
.ide-attr         { color: #f9e2af; }                   /* Altın Sarısı */
.ide-operator     { color: #94e2d5; }                   /* Nane Yeşili / Turkuaz */
.ide-preprocessor { color: #f5c2e7; font-weight: 600; } /* Pembe */

/* Responsive Mobil Uyumluluk */
@media (max-width: 768px) {
  .ide-header {
    padding: 8px 12px;
  }
  .ide-lang-badge {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .ide-line {
    font-size: 12px;
    padding: 0 10px;
    line-height: 1.6;
  }
  .ide-line-num {
    padding-right: 10px;
    margin-right: 10px;
    font-size: 11px;
  }
  .ide-copy-text {
    display: none;
  }
  .ide-copy-btn {
    padding: 5px 8px;
  }
}
