/**
 * BlogAds - Ana Site Stilleri
 * Özel stil tanımlamaları ve düzenlemeler
 */

/* Genel Stiller */
body {
    transition: background-color 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-y: scroll; /* Kaydırma çubuğunu her zaman göster */
}

/* Container Stili */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* İçerik Alanı Stilleri */
.content-section {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2.5rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* GPU hızlandırma */
}

/* Admin Panel İçerik Alanı */
.content-section-admin {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem; 
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: -1rem;
}

/* İçerik Kartları */
.content-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Linkler */
a {
    transition: color 0.3s ease;
}

/* Buttonlar */
button, .btn {
    transition: all 0.3s ease;
}

/* Blogcard Hover Efekti */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* İçerik Metni Stilleri */
.blog-content h2 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.blog-content ul li, .blog-content ol li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #3490dc;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #4a5568;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.blog-content a {
    color: #3490dc;
    text-decoration: none;
    border-bottom: 1px dotted #3490dc;
}

.blog-content a:hover {
    border-bottom: 1px solid #3490dc;
}

.blog-content pre {
    background-color: #f7fafc;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow: auto;
    margin: 1.5rem 0;
}

.blog-content code {
    background-color: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Kategori Badge */
.category-badge {
    background-color: #3490dc;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #3490dc;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f7fafc;
}

.pagination .page-item.active .page-link {
    background-color: #3490dc;
    color: white;
    border-color: #3490dc;
}

.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    pointer-events: none;
    cursor: not-allowed;
}

/* Arama Sonuçları */
.search-highlight {
    background-color: rgba(250, 240, 137, 0.5);
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

/* Yorum Formu */
.comment-form textarea {
    resize: none;
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .content-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .content-card {
        padding: 1rem;
    }
}

/* Mobil Menü Animasyonu */
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#mobileMenu:not(.hidden) {
    animation: slideDown 0.3s ease forwards;
}

/* Mobil Reklam */
.mobile-ad-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 50;
    padding: 0.5rem;
}

/* Bildirim Stili */
.alert {
    position: relative;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fff4;
    border-left: 4px solid #48bb78;
    color: #2f855a;
}

.alert-danger {
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
    color: #c53030;
}

.alert-warning {
    background-color: #fffaf0;
    border-left: 4px solid #ed8936;
    color: #c05621;
}

.alert-info {
    background-color: #ebf8ff;
    border-left: 4px solid #4299e1;
    color: #2b6cb0;
}

/* Üretildi İmzası */
.ai-generated-notice {
    font-size: 0.8rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 2rem;
    font-style: italic;
}

/* Lazy-loading görüntüler için animasyon */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Resimlerin ön yerleşim (placeholder) boyutları için stil */
.lazy-image[src^="data:image"] {
    background-color: #f1f1f1;
}

/* Gelişmiş render performansı */
.content-section, .container, .grid, img, .shadow-md, .shadow-lg {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* GPU hızlandırma */
}

/* Yerleşik stillere eklemeler */ 