/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulseGentle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.pulse-gentle {
    animation: pulseGentle 2s ease-in-out infinite;
}

.blog-item {
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Blog Content Styles */
.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.3;
}

.dark .blog-content h1,
.dark .blog-content h2,
.dark .blog-content h3,
.dark .blog-content h4,
.dark .blog-content h5,
.dark .blog-content h6 {
    color: #f9fafb;
}

.blog-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    font-weight: 800;
    color: #1f2937;
}

.dark .blog-content h1 {
    border-bottom-color: #4b5563;
    color: #f9fafb;
}

.blog-content h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    scroll-margin-top: 2rem;
}

.dark .blog-content h2 {
    border-bottom-color: #60a5fa;
    color: #f9fafb;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    scroll-margin-top: 2rem;
}

.dark .blog-content h3 {
    color: #d1d5db;
}

/* SEO için başlık hiyerarşisi */
.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.dark .blog-content h4 {
    color: #9ca3af;
}

.blog-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dark .blog-content h5 {
    color: #a1a1aa;
}

.blog-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dark .blog-content h6 {
    color: #a1a1aa;
}


.blog-content h5 {
    font-size: 1.125rem;
}

.blog-content h6 {
    font-size: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem 1rem 2rem;
    border-left: 4px solid #3b82f6;
}

.dark .blog-content ul,
.dark .blog-content ol {
    background-color: #1f2937;
    border-left-color: #60a5fa;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #374151;
    position: relative;
}

.dark .blog-content li {
    color: #d1d5db;
}

.blog-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.blog-content ul li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.dark .blog-content ul li::before {
    color: #60a5fa;
}

.blog-content ol li {
    list-style-type: decimal;
    padding-left: 0.5rem;
}

.blog-content ol {
    counter-reset: item;
}

.blog-content ol li {
    display: block;
    margin-bottom: 0.5rem;
}

.blog-content ol li::before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: bold;
    color: #3b82f6;
}

.dark .blog-content ol li::before {
    color: #60a5fa;
}

/* İç içe ol listelerini sola yapıştır */
.blog-content ol ol {
    margin-left: 0;
    padding-left: 1rem;
    background-color: transparent;
    border-left: none;
}

.dark .blog-content ol ol {
    background-color: transparent;
    border-left: none;
}

.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
}

.dark .blog-content blockquote {
    background-color: #1f2937;
    color: #9ca3af;
    border-left-color: #60a5fa;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e5e7eb;
}

.dark .blog-content code {
    background-color: #374151;
    color: #fbbf24;
    border-color: #4b5563;
}

.blog-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .blog-content pre {
    background-color: #111827;
    border-color: #4b5563;
}

.blog-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9em;
}

.blog-content strong,
.blog-content b {
    font-weight: 700;
    color: #1f2937;
}

.dark .blog-content strong,
.dark .blog-content b {
    color: #f9fafb;
}

.blog-content em,
.blog-content i {
    font-style: italic;
    color: #6b7280;
}

.dark .blog-content em,
.dark .blog-content i {
    color: #9ca3af;
}

.blog-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

.dark .blog-content a {
    color: #60a5fa;
}

.dark .blog-content a:hover {
    color: #93c5fd;
}

.blog-content hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 3rem 0;
}

.dark .blog-content hr {
    background-color: #4b5563;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.blog-content th,
.blog-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.blog-content th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.dark .blog-content th {
    background-color: #1f2937;
    color: #f9fafb;
    border-bottom-color: #4b5563;
}

.dark .blog-content td {
    border-bottom-color: #4b5563;
}

/* WordPress kod blokları için dark mode desteği */
.wp-block-code {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    overflow-x: auto !important;
    margin: 1rem 0 !important;
    border: 1px solid #374151 !important;
}

.wp-block-code code {
    background-color: transparent !important;
    color: #f9fafb !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: 'Courier New', monospace !important;
}

/* Dark mode için ek stiller */
.dark .wp-block-code {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

.dark .wp-block-code code {
    background-color: transparent !important;
    color: #f9fafb !important;
}

/* Light mode için kod blokları */
.wp-block-code:not(.dark) {
    background-color: #f8fafc !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

.wp-block-code:not(.dark) code {
    background-color: transparent !important;
    color: #1f2937 !important;
}