
/* =========================================
   İÇERİK BAŞLIK ALANI (Mor Gradyan + Apple)
   ========================================= */
.content-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    min-height: clamp(420px, 45vh, 600px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-header.has-bg-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.content-header.has-bg-image::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}
.content-header h1 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    margin-top: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.category-badge {
    font-family: 'Baloo 2', sans-serif;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

/* =========================================
   İÇERİK KART ALANI (Ana Kapsayıcı)
   ========================================= */
.content-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #fae8ff 100%);
}

.content-card {
    background: #ffffff;
    border-radius: 28px; 
    padding: 60px 80px; 
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.05); 
    word-wrap: break-word; /* Taşmaları engeller */
}

/* İçerikteki özel kutucuklar (Varsa) */
.content-box {
    background: linear-gradient(135deg, var(--light-purple) 0%, #fae8ff 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 6px solid var(--primary-purple);
}

.content-box h3 {
    font-family: 'Baloo 2', sans-serif;
    color: var(--dark-purple);
    font-size: 2rem; 
    font-weight: 800; 
    margin-bottom: 20px;
}

.content-box p {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
    color: #333; 
    margin-bottom: 15px;
}

.content-box ul {
    list-style: none;
    padding: 0;
}

.content-box ul li {
    font-family: 'Baloo 2', sans-serif;
    padding: 10px 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 35px;
}

.content-box ul li::before {
    content: '✨'; 
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 1.2rem;
}

/* =========================================
   EDİTÖR İÇERİĞİ BİÇİMLENDİRMELERİ (CKEditor)
   ========================================= */
.content-card p {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9; 
    font-weight: 500;
    color: #444; 
    margin-bottom: 1.5rem;
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.1); 
    display: block;
}

/* Genel Figure Ayarı */
.content-card figure.image {
    margin: 1.5rem auto;
    text-align: center;
    display: block; 
}

.content-card figure.image img {
    margin: 0 auto;
}

.content-card figure.image figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    text-align: center;
    display: block;
}

/* --- CKEditor Resim Hizalamaları --- */
.content-card figure.image.image-style-align-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%; 
    clear: none;
}

.content-card figure.image.image-style-align-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
    clear: none;
}

.content-card figure.image.image-style-align-center {
    margin: 2rem auto;
    clear: both; 
    display: table;
}

/* Float işlemlerinden sonra düzenin bozulmasını engeller */
.content-card::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Başlıklar ve Listeler --- */
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5 {
    font-family: 'Baloo 2', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-purple);
    font-weight: 800; 
    clear: both; /* Başlıklar resmin yanına sıkışmasın */
}

.content-card ul,
.content-card ol {
    font-family: 'Baloo 2', sans-serif;
    padding-left: 2rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.content-card li {
    margin: 0.5rem 0;
}

.content-card strong,
.content-card b {
    font-weight: 800;
    color: #222;
}

.content-card blockquote {
    border-left: 5px solid var(--primary-purple);
    padding: 1rem 1.5rem;
    background: #f5f3ff;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.content-card table th,
.content-card table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
}

.content-card table th {
    background-color: #f5f3ff;
    font-weight: bold;
    color: var(--dark-purple);
}

/* =========================================
   MOBİL CİHAZLAR İÇİN OPTİMİZASYON
   ========================================= */
@media (max-width: 768px) {
    .content-card {
        padding: 30px 20px; 
        border-radius: 20px;
    }
    
    .content-header h1 {
        font-size: 2.2rem;
    }

    /* Mobilde resimler yazıyı sıkıştırmasın, tam sayfa üste geçsin */
    .content-card figure.image.image-style-align-left,
    .content-card figure.image.image-style-align-right {
        float: none !important;
        max-width: 100% !important;
        margin: 1.5rem auto !important;
        text-align: center;
    }

    .content-card figure.image img {
        width: 100%; 
    }
}