﻿/*
Theme Name: Deva Sigorta Ultra Pro
Theme URI: https://www.devasigorta.com
Author: Deva Sigorta Karşılaştırma Platformu
Author URI: https://www.devasigorta.com
Description: Deva Sigorta için özel kodlanmış yüksek dönüşümlü, fintech kurumsal sigorta karşılaştırma ve teklif platformu teması. Hızlı, mobil uyumlu ve SEO odaklı.
Version: 5.0.0
*/

/* ==========================================================================
   1. DESIGN TOKENS (Tasarım Jetonları)
   ========================================================================== */
:root {
    /* Premium Renk Paleti */
    --clr-slate-900: #0f172a; /* Çok Koyu Premium Lacivert - Ana Arka Plan */
    --clr-slate-800: #1e293b; /* Kart Arka Planları */
    --clr-slate-100: #f1f5f9; /* Sayfa Arka Planı (Light) */
    --clr-emerald-500: #2563eb; /* Güven Veren Yeşil (Vurgu) */
    --clr-emerald-400: #38bdf8; /* Yeşil Hover */
    --clr-amber-500: #f59e0b; /* Dikkat/Altın Sarısı (İkincil Vurgu) */
    --clr-white: #ffffff;
    --clr-text-main: #334155;
    --clr-text-light: #64748b;

    /* 8px Spacing Grid */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-12: 6rem;    /* 96px */

    /* Gölgeler (Elevation) */
    --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-glow: 0 0 20px rgba(37, 99, 235, 0.4); /* Zümrüt Yeşili Glow */

    /* Fontlar */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   2. RESET & NORMALIZE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-slate-100);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* ==========================================================================
   3. THE HEADER (Premium Glassmorphism)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    /* Mükemmel Cam Efekti */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clr-emerald-500);
    border-radius: 10px;
    color: white;
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-size: 1.5rem; /* 24px */
    font-weight: 900;
    color: var(--clr-slate-900);
    letter-spacing: -0.5px;
}

.brand-text span {
    color: var(--clr-emerald-500);
}

.main-navigation ul {
    display: flex;
    gap: var(--space-4);
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-slate-900);
    position: relative;
    padding: 8px 0;
}

/* Hover Altı Çizgi Animasyonu */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-emerald-500);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--clr-emerald-500);
}

.header-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-primary {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--clr-emerald-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   4. THE HERO (Cinematic Entrance)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 160px; /* Header yüksekliği + boşluk */
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--clr-slate-900) 0%, #080f1c 100%);
    color: var(--clr-white);
    overflow: hidden;
    text-align: center;
}

/* Arka Plan Süslemeleri (Glow Orb) */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-emerald-400);
    margin-bottom: var(--space-3);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem; /* 64px */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-3);
}

.hero-title span {
    color: var(--clr-emerald-400);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-inline: auto;
}

/* Premium AI Search Bar */
.hero-search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hero-search-wrapper:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
}

.hero-search-form {
    display: flex;
    align-items: center;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    color: var(--clr-white);
    outline: none;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-search-btn {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-btn:hover {
    background: var(--clr-emerald-400);
    transform: scale(1.02);
}

.site-main {
    padding: var(--space-8) 0;
}

/* ==========================================================================
   5. MAGAZINE GRID & PREMIUM CARDS
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-top: calc(var(--space-6) * -1); /* Hero alanının üzerine hafifçe taşması için */
    position: relative;
    z-index: 10;
}

.premium-card {
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-emerald-400);
}

.card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--clr-slate-100);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--clr-slate-900);
    margin-bottom: var(--space-2);
}

.card-title a {
    background-image: linear-gradient(var(--clr-emerald-400), var(--clr-emerald-400));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.premium-card:hover .card-title a {
    background-size: 100% 2px;
    color: var(--clr-slate-900);
}

.card-excerpt {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--clr-slate-100);
    font-size: 0.85rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-slate-900);
}

/* ==========================================================================
   6. FOOTER & AI CHATBOT
   ========================================================================== */
.site-footer {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.footer-logo__deva { color: #fff; }
.footer-logo__sigorta { color: var(--clr-emerald-500); }

.footer-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--clr-emerald-500);
    border-color: var(--clr-emerald-500);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links-col h4, .footer-contact-col h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-emerald-500);
    margin-bottom: 16px;
}

.footer-links-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-col a:hover { color: #fff; }

.footer-contact-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-bottom__links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
}

/* AI Chatbot Float */
.ai-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.ai-bubble-btn {
    width: 64px;
    height: 64px;
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: grid;
    place-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-bubble-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--clr-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.ai-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-window-header {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-status {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
}

.ai-window-body {
    height: 300px;
    background: var(--clr-slate-100);
    padding: var(--space-3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-msg.bot {
    background: var(--clr-white);
    color: var(--clr-slate-900);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: var(--shadow-sm);
}

.ai-msg.user {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.ai-window-footer {
    display: flex;
    padding: var(--space-2);
    border-top: 1px solid var(--clr-slate-100);
    background: var(--clr-white);
}

.ai-window-footer input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    outline: none;
}

.ai-window-footer button {
    background: transparent;
    border: none;
    color: var(--clr-emerald-500);
    font-weight: 800;
    cursor: pointer;
    padding: 0 12px;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-search-wrapper {
        max-width: 100%;
        margin: 0 var(--space-4);
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search-input {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .hero-search-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .premium-card {
        border-radius: 12px;
    }
    
    .card-content {
        padding: var(--space-3);
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* Additional styles for compatibility */
.post-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.post-item h2 {
    margin-bottom: 10px;
}

.post-item h2 a {
    color: #0A1F44;
    text-decoration: none;
}

.post-item h2 a:hover {
    color: #00C897;
}

.post-item p {
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item small {
    color: #999;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    color: #0A1F44;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-slate-100);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* ==========================================================================
   3. THE HEADER (Premium Glassmorphism)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    /* Mükemmel Cam Efekti */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clr-emerald-500);
    border-radius: 10px;
    color: white;
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-size: 1.5rem; /* 24px */
    font-weight: 900;
    color: var(--clr-slate-900);
    letter-spacing: -0.5px;
}

.brand-text span {
    color: var(--clr-emerald-500);
}

.main-navigation ul {
    display: flex;
    gap: var(--space-4);
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-slate-900);
    position: relative;
    padding: 8px 0;
}

/* Hover Altı Çizgi Animasyonu */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-emerald-500);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--clr-emerald-500);
}

/* MEGA MENU */
.has-mega-menu {
    position: static; /* Header'a göre genişlemesi için */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--clr-emerald-500);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--clr-slate-900);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--clr-emerald-500);
    padding-left: 12px;
}

.mega-col ul li {
    margin-bottom: 10px;
}

.mega-col ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-light);
    padding: 0;
}

.mega-col ul li a:hover {
    color: var(--clr-emerald-500);
    padding-left: 5px;
}

.header-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-primary {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--clr-emerald-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   4. THE HERO (Cinematic Entrance)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 160px; /* Header yüksekliği + boşluk */
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--clr-slate-900) 0%, #080f1c 100%);
    color: var(--clr-white);
    overflow: hidden;
    text-align: center;
}

/* Arka Plan Süslemeleri (Glow Orb) */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-emerald-400);
    margin-bottom: var(--space-3);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem; /* 64px */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-3);
}

.hero-title span {
    color: var(--clr-emerald-400);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-inline: auto;
}

/* Premium AI Search Bar */
.hero-search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hero-search-wrapper:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
}

.hero-search-form {
    display: flex;
    align-items: center;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    color: var(--clr-white);
    outline: none;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-search-btn {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-btn:hover {
    background: var(--clr-emerald-400);
    transform: scale(1.02);
}

.site-main {
    padding: var(--space-8) 0;
}

/* ==========================================================================
   5. MAGAZINE GRID & PREMIUM CARDS
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-top: calc(var(--space-6) * -1); /* Hero alanının üzerine hafifçe taşması için */
    position: relative;
    z-index: 10;
}

.premium-card {
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-emerald-400);
}

.card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--clr-slate-100);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--clr-slate-900);
    margin-bottom: var(--space-2);
}

.card-title a {
    background-image: linear-gradient(var(--clr-emerald-400), var(--clr-emerald-400));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.premium-card:hover .card-title a {
    background-size: 100% 2px;
    color: var(--clr-slate-900);
}

.card-excerpt {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--clr-slate-100);
    font-size: 0.85rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-slate-900);
}

/* ==========================================================================
   6. FOOTER & AI CHATBOT
   ========================================================================== */
.site-footer {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.footer-logo__deva { color: #fff; }
.footer-logo__sigorta { color: var(--clr-emerald-500); }

.footer-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--clr-emerald-500);
    border-color: var(--clr-emerald-500);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links-col h4, .footer-contact-col h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-emerald-500);
    margin-bottom: 16px;
}

.footer-links-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-col a:hover { color: #fff; }

.footer-contact-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-bottom__links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
}

/* AI Chatbot Float */
.ai-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.ai-bubble-btn {
    width: 64px;
    height: 64px;
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: grid;
    place-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-bubble-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--clr-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.ai-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-window-header {
    background: var(--clr-slate-900);
    color: var(--clr-white);
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-status {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
}

.ai-window-body {
    height: 300px;
    background: var(--clr-slate-100);
    padding: var(--space-3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-msg.bot {
    background: var(--clr-white);
    color: var(--clr-slate-900);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: var(--shadow-sm);
}

.ai-msg.user {
    background: var(--clr-emerald-500);
    color: var(--clr-slate-900);
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.ai-window-footer {
    display: flex;
    padding: var(--space-2);
    border-top: 1px solid var(--clr-slate-100);
    background: var(--clr-white);
}

.ai-window-footer input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    outline: none;
}

.ai-window-footer button {
    background: transparent;
    border: none;
    color: var(--clr-emerald-500);
    font-weight: 800;
    cursor: pointer;
    padding: 0 12px;
}

/* ==========================================================================
   7. SINGLE POST (Okuma Deneyimi)
   ========================================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

@media(max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

.single-article {
    background: var(--clr-white);
    padding: var(--space-6);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.single-category {
    display: inline-block;
    background: var(--clr-slate-100);
    color: var(--clr-emerald-500);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: var(--space-3);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.single-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--clr-slate-900);
    letter-spacing: -1px;
    margin-bottom: var(--space-4);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--clr-slate-100);
}

.meta-author-avatar img {
    border-radius: 50%;
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 800;
    color: var(--clr-slate-900);
}

.post-date {
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.single-thumbnail {
    margin-bottom: var(--space-6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--clr-text-main);
}

.single-content p {
    margin-bottom: var(--space-4);
}

/* Table of Contents */
.devasigorta-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .devasigorta-toc {
    background: #1e293b;
    border-color: #334155;
}

.devasigorta-toc h4 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .devasigorta-toc h4 { color: #fff; }

.devasigorta-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.devasigorta-toc li {
    margin-bottom: 8px;
}

.devasigorta-toc a {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.devasigorta-toc a:hover {
    color: var(--clr-emerald-500);
}

.toc-level-3 {
    margin-left: 20px;
}

.single-content h2, .single-content h3 {
    font-size: 2rem;
    color: var(--clr-slate-900);
    margin: var(--space-6) 0 var(--space-3);
}

.author-bio-box {
    margin-top: var(--space-8);
    padding: var(--space-4);
    background: var(--clr-slate-100);
    border-radius: 12px;
    border-left: 4px solid var(--clr-emerald-500);
}

.author-bio-box h3 {
    margin-bottom: var(--space-1);
    color: var(--clr-slate-900);
}

.sticky-cta {
    position: sticky;
    top: 120px;
    background: linear-gradient(135deg, var(--clr-slate-900), var(--clr-slate-800));
    color: var(--clr-white);
    padding: var(--space-4);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.sticky-cta h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--clr-emerald-400);
}

.sticky-cta p {
    margin-bottom: var(--space-4);
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   8. SIDEBAR & WIDGETS
   ========================================================================== */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.premium-widget {
    background: var(--clr-white);
    border: 1px solid var(--clr-slate-100);
    border-radius: 16px;
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

[data-theme="dark"] .premium-widget {
    background: var(--clr-slate-800);
    border-color: rgba(255,255,255,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-1);
    border-bottom: 2px solid var(--clr-emerald-500);
    display: inline-block;
    color: var(--clr-slate-900);
}

[data-theme="dark"] .widget-title {
    color: var(--clr-white);
}

.premium-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   DARK MODE (Gece Modu)
   ========================================================================== */
[data-theme="dark"] {
    --clr-slate-100: #0f172a;
    --clr-slate-900: #f8fafc;
    --clr-slate-800: #1e293b;
    --clr-text-main: #cbd5e1;
    --clr-text-light: #94a3b8;
    --clr-white: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

body[data-theme="dark"], [data-theme="dark"] body {
    background-color: var(--clr-slate-100);
    color: var(--clr-text-main);
}

[data-theme="dark"] .deva-header {
    background-color: var(--clr-slate-800);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .site-footer {
    background-color: #020617;
}

[data-theme="dark"] .single-content table,
[data-theme="dark"] .related-card,
[data-theme="dark"] .author-bio-box,
[data-theme="dark"] .single-sidebar .sidebar-widget,
[data-theme="dark"] .single-related {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f1f5f9;
}

[data-theme="dark"] .single-content h2,
[data-theme="dark"] .single-content h3,
[data-theme="dark"] .single-content h4,
[data-theme="dark"] .single-title,
[data-theme="dark"] .toc-header h4,
[data-theme="dark"] .related-content h5 a,
[data-theme="dark"] .author-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .single-toc {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .toc-list a {
    color: #93c5fd;
}

[data-theme="dark"] .toc-list a.active {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .single-content strong {
    color: #f8fafc;
}

/* ==========================================================================
   MICRO-ANIMATIONS
   ========================================================================== */
button, .btn-primary, .deva-share-btn, .deva-bookmark-btn, .tag-pill {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

button:active, .btn-primary:active {
    transform: scale(0.95);
}

.related-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.single-thumbnail img {
    transition: transform 0.5s ease;
}

.single-thumbnail:hover img {
    transform: scale(1.02);
}

/* Dark Mode Toggle Icons */
.theme-icon.dark { display: none; }
[data-theme="dark"] .theme-icon.light { display: none; }
[data-theme="dark"] .theme-icon.dark { display: inline; }


/* ==========================================================================
   2026 ULTRA-MODERN FINTECH & INSURTECH VISUAL ENHANCEMENTS
   Elevating Deva Sigorta UI to World-Class Standards
   ========================================================================== */

/* 1. Global Polish & Font Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 2. Elevated Content Tables */
.deva-article-body table, .entry-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 25px 0 35px 0 !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    border: 1px solid #E2E8F0 !important;
}

.deva-article-body table th, .entry-content table th {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    color: #F8FAFC !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    padding: 14px 16px !important;
    letter-spacing: 0.3px !important;
    border: none !important;
}

.deva-article-body table td, .entry-content table td {
    padding: 13px 16px !important;
    font-size: 14.5px !important;
    color: #334155 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    transition: background 0.15s ease !important;
}

.deva-article-body table tr:last-child td, .entry-content table tr:last-child td {
    border-bottom: none !important;
}

.deva-article-body table tr:hover td, .entry-content table tr:hover td {
    background: #F8FAFC !important;
}

/* 3. Card Grids Lift & Smooth Shadows */
.post-card, .blog-card, .deva-card, .category-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
}

.post-card:hover, .blog-card:hover, .deva-card:hover, .category-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.12) !important;
    border-color: #CBD5E1 !important;
}

/* 4. WhatsApp Button Shimmer & Pulse Animation */
@keyframes devaWAPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

a[href*="wa.me"] {
    animation: devaWAPulse 2.5s infinite !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

a[href*="wa.me"]:hover {
    transform: scale(1.025) !important;
    filter: brightness(1.05) !important;
}

/* 5. Sleek Mobile Quick Bar Enhancement */
.deva-mobile-bottom-bar {
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* 6. High-Contrast Readability for Articles */
.entry-content, .deva-article-body {
    font-size: 16.5px !important;
    line-height: 1.85 !important;
    color: #334155 !important;
}

.entry-content h2, .deva-article-body h2 {
    color: #0F172A !important;
    font-weight: 800 !important;
    margin-top: 40px !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.3px !important;
}

.entry-content h3, .deva-article-body h3 {
    color: #1E293B !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    margin-bottom: 14px !important;
}

/* 7. Image Container Elegance */
.entry-content img, .deva-article-body img {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
