/**
 * Nimet Hoca - Modern CSS Framework
 * Tailwind CSS CDN + Custom Properties + Animations
 * Renk Paleti: Lacivert (#1e3a8a), Antrasit (#1f2937), Gold (#f59e0b), Soft Blue (#3b82f6)
 */

:root {
    /* Renk Paleti */
    --color-primary: #1e3a8a;        /* Lacivert - Ana marka rengi */
    --color-primary-light: #3b82f6;  /* Soft Blue */
    --color-primary-dark: #1e40af;   /* Koyu lacivert */
    --color-secondary: #1f2937;      /* Antrasit */
    --color-secondary-light: #374151;
    --color-accent: #f59e0b;         /* Gold/Amber */
    --color-accent-light: #fbbf24;
    --color-accent-dark: #d97706;
    
    /* Durum Renkleri */
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --color-info: #0284c7;
    
    /* Nötr Renkler */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Tipografi */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Ölçek */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* 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;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgb(59 130 246 / 0.3);
    --shadow-gold: 0 0 20px rgb(245 158 11 / 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    
    /* Header Height */
    --header-height: 4.5rem;
    --header-height-scrolled: 4rem;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #0f172a;
        --color-bg-secondary: #1e293b;
        --color-text-primary: #f1f5f9;
        --color-text-secondary: #94a3b8;
    }
}

/* Light mode (default) */
:root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-muted: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

/* Selection */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: var(--space-4);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

@media (max-width: 768px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

/* Renkli istatistik kutularında p rengi ezmesin */
.about-stat-card,
.about-stat-card p,
.about-stat-card svg {
    color: #ffffff !important;
}
.about-stat-card p {
    margin-bottom: 0;
}
.about-stat-card {
    min-height: 0;
}
@media (max-width: 640px) {
    .about-stat-card {
        aspect-ratio: auto;
        min-height: 8.5rem;
        padding: 0.75rem;
    }
    .about-stat-card svg {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .about-stat-card .stat-value {
        font-size: 1.125rem !important;
        line-height: 1.25;
    }
    .about-stat-card .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }
}

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

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

strong, b {
    font-weight: 600;
    color: var(--color-text-primary);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-4) 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }
    :root {
        --container-padding: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    .btn-lg {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
    .card-body {
        padding: var(--space-4);
    }
}

.section-sm {
    padding: var(--space-10) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* 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: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { 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); }

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Secondary */
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
}

/* Accent/Gold */
.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-accent:hover:not(:disabled) {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    box-shadow: var(--shadow-gold);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-bg-tertiary);
}

/* Sizes */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); }

/* Full width */
.btn-block { width: 100%; }

/* Icon only */
.btn-icon {
    padding: var(--space-2);
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm { padding: var(--space-1.5); }
.btn-icon.btn-lg { padding: var(--space-3); }

/* =====================================================
   FORMS
   ===================================================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:disabled {
    background: var(--color-bg-tertiary);
    cursor: not-allowed;
}

.form-input.error {
    border-color: var(--color-error);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.15);
}

.form-error {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-error);
}

.form-success {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-success);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    padding-right: var(--space-10);
}

/* Checkbox/Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* Card variants */
.card-featured {
    border-color: var(--color-accent);
    position: relative;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.card-compact {
    padding: var(--space-4);
}

.card-compact .card-body {
    padding: var(--space-4);
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: rgb(59 130 246 / 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.badge-accent {
    background: rgb(245 158 11 / 0.1);
    color: var(--color-accent-dark);
}

.badge-success {
    background: rgb(5 150 105 / 0.1);
    color: var(--color-success);
}

.badge-warning {
    background: rgb(217 119 6 / 0.1);
    color: var(--color-warning);
}

.badge-error {
    background: rgb(220 38 38 / 0.1);
    color: var(--color-error);
}

/* =====================================================
   ALERTS
   ===================================================== */

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: rgb(5 150 105 / 0.05);
    border-color: var(--color-success);
    color: #065f46;
}

.alert-error {
    background: rgb(220 38 38 / 0.05);
    border-color: var(--color-error);
    color: #991b1b;
}

.alert-warning {
    background: rgb(217 119 6 / 0.05);
    border-color: var(--color-warning);
    color: #92400e;
}

.alert-info {
    background: rgb(2 132 199 / 0.05);
    border-color: var(--color-info);
    color: #075985;
}

.alert-dismissible {
    position: relative;
}

.alert-close {
    background: none;
    border: none;
    padding: var(--space-1);
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    margin-left: auto;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn var(--transition-base) ease-out; }
.animate-slide-up { animation: slideUp var(--transition-slow) ease-out; }
.animate-slide-down { animation: slideDown var(--transition-slow) ease-out; }
.animate-slide-in-left { animation: slideInLeft var(--transition-slow) ease-out; }
.animate-slide-in-right { animation: slideInRight var(--transition-slow) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-base) ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   SKELETON LOADERS
   ===================================================== */

.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: var(--space-4);
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
}

.skeleton-card {
    padding: var(--space-6);
}

.skeleton-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

/* =====================================================
   UTILITIES
   ===================================================== */

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

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

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Hero metin okunabilirlik */
.hero-readable,
.hero-readable p,
.hero-readable span,
.hero-readable div,
.hero-readable strong,
.hero-readable em,
.hero-readable li {
    color: rgba(255, 255, 255, 0.95) !important;
}
.hero-readable a {
    color: #fbbf24 !important;
    text-decoration: underline;
}

/* Mobil menü: viewport fixed (header blur dışında) */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(100vw - 3rem, 20rem);
    max-width: 100%;
    background: #fff;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    padding-top: env(safe-area-inset-top);
}
.mobile-menu-panel.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-btn .mobile-menu-bar {
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.sticky-below-header {
    top: var(--header-height);
}

/* Blog / CMS içeriği taşmasın */
.prose img,
.prose table,
.prose-admin img,
.prose-admin table,
.blog-content img,
.blog-content table {
    max-width: 100%;
    height: auto;
}
.prose pre,
.prose-admin pre,
.blog-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.break-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Video play: dokunmatikte görünür */
.media-play-veil {
    opacity: 0.55;
}
.media-play-btn {
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
    .group .media-play-veil {
        opacity: 0;
    }
    .group:hover .media-play-veil {
        opacity: 1;
    }
    .group .media-play-btn {
        opacity: 0;
    }
    .group:hover .media-play-btn {
        opacity: 1;
    }
}

/* Yatay chip kaydırma */
.chip-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}
.chip-scroll::-webkit-scrollbar {
    display: none;
}

#back-to-top {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/* =====================================================
   PRINT
   ===================================================== */

@media print {
    .no-print { display: none !important; }
    .btn { display: none !important; }
    a { text-decoration: none; color: inherit; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}