/* ============================================
   Klinik Tema - Ana CSS
   Güven odaklı, profesyonel, temiz tasarım
   ============================================ */

/* === Import & Fonksiyon Tanımları === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === RENK SİSTEMİ === */
/* Varsayılan: Medical Blue (Açık tema) */
:root {
    /* Ana renkler */
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-primary-light: #DBEAFE;
    --color-primary-foreground: #FFFFFF;

    /* Yeşil aksan (sağlık) */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;

    /* Arka plan */
    --color-background: #F8FAFC;
    --color-foreground: #0F172A;

    /* Kartlar */
    --color-card: #FFFFFF;
    --color-card-foreground: #1E293B;

    /* Border */
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;

    /* Muted */
    --color-muted: #F1F5F9;
    --color-muted-foreground: #64748B;

    /* Boyutlar */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* 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;

    /* Tipografi */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

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

/* === ALTERNATİF TEMALAR === */
/* Sağlık Yeşili */
[data-theme="teal"] {
    --color-primary: #0D9488;
    --color-primary-hover: #0F766E;
    --color-primary-light: #CCFBF1;
    --color-success: #10B981;
}

/* Lavanta (Psikoloji) */
[data-theme="lavender"] {
    --color-primary: #7C3AED;
    --color-primary-hover: #6D28D9;
    --color-primary-light: #EDE9FE;
}

/* Koyu Mod */
body.dark-mode {
    --color-background: #0F172A;
    --color-foreground: #F1F5F9;
    --color-card: #1E293B;
    --color-card-foreground: #E2E8F0;
    --color-border: #334155;
    --color-border-light: #1E293B;
    --color-muted: #1E293B;
    --color-muted-foreground: #94A3B8;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-foreground);
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-foreground);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

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

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

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

/* === LAYOUT === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

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

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

.section-title p {
    color: var(--color-muted-foreground);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

.section-title .divider::after {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    margin-top: 4px;
    margin-left: 20px;
}

/* === GRID === */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* === FLEX === */
.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); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted-foreground); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-muted { background-color: var(--color-muted); }
.bg-card { background-color: var(--color-card); }

/* === ANİMASYONLAR === */
@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    will-change: opacity, transform;
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }
