/**
 * ====================================================================
 * DIYAR - KİŞİSEL GELİŞTİRİCİ & BLOG WEB SİTESİ
 * STİL DOSYASI (STYLE.CSS)
 * Tema: Parlament Mavisi & Altın Sarısı (Royal Parliament Blue & Gold)
 * ====================================================================
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Renk Paleti: Parlament Mavisi & Gece Tonları */
  --bg-deep: #040814;
  --bg-main: #070e22;
  --bg-surface: #0c1836;
  --bg-card: #0f1f45;
  --bg-card-hover: #142857;
  --bg-elevated: #183068;
  
  /* Renk Paleti: Altın Sarısı & Metalik Tonlar */
  --gold-primary: #D4AF37;
  --gold-light: #FFDF00;
  --gold-bright: #FFE57F;
  --gold-dark: #996515;
  --gold-subtle: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-border-hover: rgba(212, 175, 55, 0.6);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  --gold-glow-lg: 0 0 45px rgba(212, 175, 55, 0.35);

  /* Gradyanlar */
  --grad-gold: linear-gradient(135deg, #FFF3A8 0%, #D4AF37 50%, #996515 100%);
  --grad-gold-text: linear-gradient(135deg, #FFF9D2 0%, #FFDF00 40%, #D4AF37 80%);
  --grad-blue: linear-gradient(180deg, #070e22 0%, #040814 100%);
  --grad-card: linear-gradient(145deg, rgba(15, 31, 69, 0.8) 0%, rgba(9, 19, 43, 0.95) 100%);
  --grad-card-glow: linear-gradient(145deg, rgba(20, 40, 87, 0.9) 0%, rgba(12, 24, 54, 0.95) 100%);

  /* Metin Renkleri */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #FFDF00;

  /* Yardımcı & Durum Renkleri */
  --accent-cyan: #38BDF8;
  --accent-green: #4ADE80;
  --accent-purple: #C084FC;
  --accent-red: #F87171;

  /* Font Aileleri */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Courier New', monospace;

  /* Boyutlar & Boşluklar */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Geçişler */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* Temel Sıfırlamalar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(29, 61, 126, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(20, 42, 88, 0.2) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Arka Plan Canvas / Yıldız Efekti */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Tipografi */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* Altın Metin Efekti */
.gold-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

.gold-border {
  border: 1px solid var(--gold-border);
}

/* Kapsayıcı (Container) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Bölüm (Section) Ortak Yapısı */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Özel Scrollbar (Parlament & Altın Sarısı) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #162c5b;
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Seçim Rengi (Text Highlight) */
::selection {
  background: var(--gold-primary);
  color: var(--bg-deep);
}
