/* * Engineered by faaw web solutions
 * Core Style Sheet - Ultra Modern Glassmorphism Theme
 * Optimizasyon: Yüksek Hız, GPU Donanım Hızlandırması, Sıfır Render Bloğu
 */

:root {
    /* Premium Kurumsal Renk Paleti */
    --color-bg-primary: #f4f7f9;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-accent: #0284c7;
    --color-admin: #4f46e5;
    
    /* Glassmorphism Değişkenleri */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    
    /* Animasyon Eğrileri (Cubic Bezier - Apple Tarzı Pürüzsüzlük) */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
 * 1. BASE & RESET (Mükemmel Akıcılık İçin)
 * -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--color-bg-primary); 
    background-image: 
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-main); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Özel Scrollbar - Premium Hissiyat */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(148, 163, 184, 0.4); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.7); }

/* --------------------------------------------------------------------------
 * 2. GLASSMORPHISM (CAM EFEKTİ) MİMARİSİ
 * Bu class'ları HTML'deki div'lere (card, header, sidebar) ekleyeceğiz
 * -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Card Hover Efekti - Işık Yansıması */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}
.glass-card:hover::before { left: 150%; transition: 0.7s; }
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
    background: var(--glass-bg-dark);
}

/* Header & Navbar Glass Efekti */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
 * 3. SAYFA YÜKLENME ANİMASYONLARI (Füze Hızında Pürüzsüz Giriş)
 * -------------------------------------------------------------------------- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
 * 4. MAKALE İÇERİĞİ (ARTICLE.PHP) - KUSURSUZ OKUMA DENEYİMİ
 * -------------------------------------------------------------------------- */
.article-body {
    font-family: 'Inter', sans-serif;
    color: #334155;
}
.article-body p {
    line-height: 1.85;
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.article-body a { 
    color: var(--color-accent); 
    text-decoration: none; 
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    font-weight: 500;
}
.article-body a:hover { 
    border-bottom-color: var(--color-accent);
}
.article-body ul { 
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}
.article-body li { 
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem; 
    line-height: 1.7;
}
.article-body li::before {
    content: '•';
    color: var(--color-accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}
.article-body blockquote { 
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic; 
    color: var(--color-text-muted); 
    background: linear-gradient(to right, rgba(241, 245, 249, 0.5), transparent);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 1rem 1rem 0;
}

/* --------------------------------------------------------------------------
 * 5. FORM & INPUT KONTROLLERİ (LOGIN & ADD_ARTICLE)
 * -------------------------------------------------------------------------- */
.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}
.glass-input:focus {
    background: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    outline: none;
}

/* Yapay Zeka (AI) Buton Efekti */
.ai-btn-glow {
    position: relative;
    overflow: hidden;
}
.ai-btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent 30%);
    animation: rotateGlow 4s linear infinite;
    pointer-events: none;
}
@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
 * 6. ADMİN & OPTİKÇİ PANELİ (DASHBOARD) ÖZELLEŞTİRMELERİ
 * -------------------------------------------------------------------------- */
.admin-sidebar-glass {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-textarea { 
    min-height: 500px; 
    resize: vertical; 
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.8; 
    background: rgba(248, 250, 252, 0.8);
}
.editor-textarea:focus {
    background: #ffffff;
}

/* AI İşleniyor (Loader) */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 18px; height: 18px;
    animation: spin 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
    vertical-align: middle;
}