/*
Theme Name: IRCALEM
Theme URI: https://ircalem.net
Author: IRCALEM Developer
Description: Modern IRC, WebIRC ve Topluluk WordPress Teması
Version: 1.7
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sub: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Gündüz Modu Kod Kutusu (Açık Soft Gri) */
  --code-bg: #f1f5f9;
  --code-header-bg: #e2e8f0;
  --code-text: #0f172a;
  --code-border: #cbd5e1;
  --input-bg: #ffffff;
}

html.dark {
  /* Zifiri Siyah Yerine Uyumlu ve Şık Koyu Lacivert/Siyah Tonları (Dark Slate) */
  --bg-main: #0f172a;       /* Slate 900 */
  --bg-card: #1e293b;       /* Slate 800 */
  --bg-sub: #334155;        /* Slate 700 */
  --text-main: #f8fafc;      /* Slate 50 */
  --text-muted: #94a3b8;     /* Slate 400 */
  --border-color: #334155;   /* Slate 700 */
  
  /* Gece Modu Kod Kutusu (Yumuşak Koyu Ton) */
  --code-bg: #0f172a;
  --code-header-bg: #1e293b;
  --code-text: #f8fafc;
  --code-border: #334155;
  --input-bg: #1e293b;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.themed-text { color: var(--text-main); }
.themed-muted { color: var(--text-muted); }

.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.bg-sub {
  background-color: var(--bg-sub);
}

.bg-card {
  background-color: var(--bg-card);
}

/* Form Input & Select Gece Modu Uyum Stil Tanımları */
.themed-input {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
}

.themed-input:focus {
  border-color: #6366f1 !important;
  outline: none;
}

/* Select Option Kutuları Gece Modunda Okunabilirlik Düzeltmesi */
select.themed-input option {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  padding: 10px;
}

/* Gece / Gündüz Moduyla Uyumlu Modern mIRC Kod Kutusu */
.mirc-code-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px -5px rgba(79, 70, 229, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mirc-code-header {
  background-color: var(--bg-sub);
  border-bottom: 1px solid var(--border-color);
}

.mirc-code-body {
  background-color: var(--code-bg);
  color: var(--code-text);
  border-top: 1px solid var(--code-border);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mirc-code-body pre {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.mirc-code-body code {
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: var(--code-text) !important;
}

/* Prism.js Vurgulama Renkleri */
html:not(.dark) .token.keyword { color: #4f46e5 !important; font-weight: bold; }
html:not(.dark) .token.function { color: #0284c7 !important; }
html:not(.dark) .token.string { color: #059669 !important; }
html:not(.dark) .token.comment { color: #94a3b8 !important; font-style: italic; }
html:not(.dark) .token.punctuation { color: #64748b !important; }
html:not(.dark) .token.operator { color: #d97706 !important; }

html.dark .token.keyword { color: #a5b4fc !important; font-weight: bold; }
html.dark .token.function { color: #38bdf8 !important; }
html.dark .token.string { color: #34d399 !important; }
html.dark .token.comment { color: #64748b !important; font-style: italic; }
html.dark .token.punctuation { color: #94a3b8 !important; }
html.dark .token.operator { color: #fbbf24 !important; }

/* Pagination Styling */
.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.page-numbers a, .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
  background-color: var(--bg-sub);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-numbers.current {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.page-numbers a:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--text-muted);
}


/* Custom Scrollbar Styling (Yana Kaydırma Çubuğu Uyumlaştırması) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-sub);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* mIRC Code Body Custom Scrollbar */
.mirc-code-body::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.mirc-code-body::-webkit-scrollbar-track {
  background: var(--code-header-bg);
  border-radius: 4px;
}

.mirc-code-body::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 4px;
}

.mirc-code-body::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Firefox Scrollbar Support */
.mirc-code-body {
  scrollbar-width: thin;
  scrollbar-color: #4f46e5 var(--code-header-bg);
}
