/**
 * 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);
}

/* Tüm görüntüler için varsayılan stiller */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s, transform 0.3s;
    display: block;
}

img[loading="lazy"] {
    opacity: 0.7;
    background-color: #f3f4f6;
}

img[loading="lazy"]:not([src=""]):not([src="data:,"]) {
    opacity: 1;
    background-color: transparent;
}

/* İç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;
}

/* Form Elemanları Stilleri */
input, textarea, select {
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important;
    width: 100% !important;
    background-color: white !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: #3490dc !important;
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.border-gray-300 {
    border-color: #e2e8f0 !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.focus\:border-primary:focus {
    border-color: #3490dc !important;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.focus\:ring-opacity-50:focus {
    --tw-ring-opacity: 0.5 !important;
}

/* 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.5s ease-in;
    background-color: #f3f4f6;
    min-height: 1px;
}

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

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

/* 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 */
}

/* İçindekiler Tablosu Stilleri */
#toc-container {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border-left: 3px solid #3490dc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#toc-container ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

#toc-container li {
    position: relative;
    margin-bottom: 0.25rem;
    counter-increment: item;
    padding-left: 2rem;
}

#toc-container li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #3490dc;
    font-weight: 600;
    font-size: 0.875rem;
}

#toc-container li li {
    margin-bottom: 0.125rem;
    counter-increment: subitem;
    padding-left: 1.75rem;
}

#toc-container li li::before {
    content: counter(item) "." counter(subitem, lower-alpha);
    font-size: 0.75rem;
    left: 0;
    color: #4b5563;
}

#toc-container a {
    display: inline-block;
    padding: 0.25rem 0;
    text-decoration: none;
}

#toc-container a:hover {
    text-decoration: underline;
    color: #3490dc;
}

#toc-container li ol {
    padding-left: 0;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    counter-reset: subitem;
}

/* Mobil cihazlarda görünüm */
@media (max-width: 768px) {
    #toc-container li {
        padding-left: 1.5rem;
    }
    
    #toc-container li li {
        padding-left: 1.5rem;
    }
}

/* Form Elemanları Stilleri */
input, textarea, select {
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important;
    width: 100% !important;
    background-color: white !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: #3490dc !important;
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.border-gray-300 {
    border-color: #e2e8f0 !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.focus\:border-primary:focus {
    border-color: #3490dc !important;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 3px rgba(52, 144, 220, 0.25) !important;
}

.focus\:ring-opacity-50:focus {
    --tw-ring-opacity: 0.5 !important;
}

/* İçindekiler tablosundan tıklandığında başlığı vurgulama animasyonu */
@keyframes heading-highlight {
    0% { background-color: rgba(59, 130, 246, 0.2); }
    70% { background-color: rgba(59, 130, 246, 0.2); }
    100% { background-color: transparent; }
}

.highlight-heading {
    animation: heading-highlight 1.5s ease;
    border-radius: 4px;
}

/* Metin kısıtlama sınıfları */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Yerleşik stillere eklemeler */ 