/* ===================================================
   THEME — Açık Gri Tema
   Design Tokens, Reset, Typography, Layout
   =================================================== */

/* ----- FONTS ----- */
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

/* ----- DESIGN TOKENS — Açık Gri Tema ----- */
:root {
  --bg:       #F0F2F5;
  --surface:  #FFFFFF;
  --surface2: #F7F8FA;
  --surface3: #ECEEF2;
  --border:   #E2E5EA;
  --border2:  #D0D4DC;

  --accent:      #D4880A;
  --accent-dim:  rgba(212, 136, 10, 0.10);
  --accent2:     #1E72CC;
  --accent2-dim: rgba(30, 114, 204, 0.10);

  --text:     #1A1D24;
  --text-dim: #4A5060;
  --muted:    #8A90A0;

  --error:       #C94040;
  --error-dim:   rgba(201, 64, 64, 0.10);
  --warn:        #D97706;
  --warn-dim:    rgba(217, 119, 6, 0.10);
  --success:     #1E9E6A;
  --success-dim: rgba(30, 158, 106, 0.10);

  --radius:    4px;
  --radius-sm: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);

  --sidebar-width: 240px;
  --topbar-height: 72px;

  --font-body: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; outline: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ----- PAGE LAYOUT ----- */
#page-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.topbar-sub {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.page-content {
  padding: 28px;
  flex: 1;
}

/* ----- SECTION LABEL ----- */
.section-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.code-text {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ----- UTILITY ----- */
.hidden { display: none !important; }

/* ----- MOBILE ----- */
@media (max-width: 768px) {
  #page-wrapper { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
}
