/* ==========================================================================
   Global — Modern Design System
   ========================================================================== */

:root {
  /* Primary — refined blue palette */
  --color-primary: #3B63E2;
  --color-primary-light: #6B8AFF;
  --color-primary-dark: #2445B8;
  --color-primary-50: rgba(59, 99, 226, 0.05);
  --color-primary-100: rgba(59, 99, 226, 0.1);
  --color-primary-200: rgba(59, 99, 226, 0.15);

  /* Neutrals — cooler, cleaner */
  --color-bg: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-border: #E5E7EB;
  --color-border-light: #F1F3F5;
  --color-text: #111827;
  --color-text-secondary: #4B5563;
  --color-text-muted: #9CA3AF;

  /* Accent */
  --color-accent: #10B981;
  --color-accent-dark: #059669;
  --color-accent-50: rgba(16, 185, 129, 0.08);

  /* Feedback */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  /* Typography */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows — layered, modern */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(59, 99, 226, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(16, 185, 129, 0.15);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-dark: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --transition: var(--duration-base) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);
}

/* === Base Reset === */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

/* === Layout === */

.olgun-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.olgun-container--narrow {
  max-width: 720px;
}

.olgun-container--wide {
  max-width: 1400px;
}

.olgun-section {
  padding: var(--space-20) 0;
  position: relative;
}

.olgun-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.olgun-section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
  position: relative;
  padding-left: var(--space-6);
}

.olgun-section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.olgun-section-label--center {
  display: block;
  text-align: center;
  padding-left: 0;
}

.olgun-section-label--center::before {
  display: none;
}

/* === Scroll Reveal Animations === */

.olgun-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.olgun-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.olgun-reveal--delay-1 { transition-delay: 100ms; }
.olgun-reveal--delay-2 { transition-delay: 200ms; }
.olgun-reveal--delay-3 { transition-delay: 300ms; }
.olgun-reveal--delay-4 { transition-delay: 400ms; }

.olgun-reveal--scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
}

.olgun-reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* === Override Astra === */

.ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

#primary {
  padding: 0;
  margin: 0;
}

.entry-content {
  margin: 0;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  padding: 0;
}

@media (min-width: 768px) {
  .olgun-section {
    padding: var(--space-24) 0;
  }
}

@media (min-width: 1024px) {
  .olgun-section {
    padding: var(--space-32) 0;
  }

  .olgun-container {
    padding: 0 var(--space-8);
  }

  .olgun-section__title {
    font-size: var(--text-4xl);
  }
}
