/* ============================================
   Kurumsal Tema - Ana Stiller
   Modern Kurumsal: Blue & Slate Renk Sistemi
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Modern Corporate Blue (Varsayılan - Light) */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-foreground: #ffffff;

    --color-secondary: #f1f5f9;
    --color-secondary-foreground: #1e293b;

    --color-background: #ffffff;
    --color-foreground: #0f172a;

    --color-card: #ffffff;
    --color-card-foreground: #1e293b;

    --color-border: #e2e8f0;
    --color-muted: #f8fafc;
    --color-muted-foreground: #64748b;

    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Tipografi */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;

    /* Spacing ölçeği (4px grid) */
    --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;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Geçiş süresi */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-4);

    /* Navbar */
    --navbar-height: 72px;
}

/* --- Reset & Temel Stiller --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--navbar-height) + 32px);
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-foreground);
    background-color: var(--color-background);
    transition: background-color var(--transition-base), color var(--transition-base);
    -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-fast);
}

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

ul, ol {
    list-style: none;
}

/* --- Tipografi --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-foreground);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-muted-foreground);
}

.font-heading {
    font-family: var(--font-heading);
}

.text-primary {
    color: var(--color-primary);
}

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

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title h2 {
    margin-bottom: var(--space-3);
}

.section-title .divider {
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto var(--space-4);
    color: var(--color-muted-foreground);
}

.section-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

/* --- Grid Sistem --- */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Flex Yardımcıları --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* --- Animasyonlar --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-up { animation: fadeUp 0.8s ease forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease forwards; }

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; animation-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; animation-delay: 0.6s; }

/* --- WP Entry Content --- */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-8);
}

.entry-content p {
    line-height: 1.8;
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--color-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* --- Selection --- */
::selection {
    background-color: var(--color-primary);
    color: #ffffff;
}
