/* General Body & Font Imports (if needed) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
}

/* Page Header */
.page-header {
    background-color: #2c3e50; /* Dark blue-charcoal */
    padding: 5rem 0;
    margin-bottom: -1px; /* Overlap with section below */
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTB8fGxhdyUyMGJvb2tzfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-position: center;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3b82f6;
    border-radius: 2px;
}

.page-header p {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-weight: 400;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem; /* left padding for icon */
    border: 1px solid #e5e7eb;
    border-radius: 9999px; /* full rounded */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    background-color: #f3f4f6; /* Light gray */
    color: #4b5563; /* Darker gray text */
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.category-btn.active {
    background-color: #3b82f6; /* Blue */
    color: white;
}

.category-btn:hover:not(.active) {
    background-color: #e5e7eb; /* Slightly darker gray on hover */
}

/* Blog Card */
.blog-card {
    background-color: white;
    border-radius: 0.5rem; /* Slightly reduced from 0.75rem */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Softer shadow */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none; /* Remove border for cleaner look */
    height: 100%; /* Make all cards the same height */
}

.blog-card:hover {
    transform: translateY(-3px); /* Reduced from -5px for subtler effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); /* Softer shadow on hover */
}

.blog-card .card-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    width: 100%;
    height: 0;
    padding-bottom: 60%; /* Slightly taller than 16:9 for better image display */
    display: block;
}

.blog-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures the image fills the container */
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.03); /* Reduced from 1.05 for subtler effect */
}

.blog-card .date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Remove the ribbon style */
.blog-card .new-ribbon {
    display: none;
}

/* Professional corner indicator for new posts - removed */
.blog-card .new-indicator {
    display: none;
}

.blog-card .category-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.7rem; /* 12px */
    font-weight: 500; /* Reduced from 600 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa; /* Lighter gray */
    color: #4b5563; /* Gray text */
    transition: all 0.2s ease;
    border: none; /* Removed border */
}

.blog-card .category-tag:hover {
    background-color: #e9ecef; /* Lighter hover background */
    color: #2c3e50;
}

.blog-card .card-content {
    padding: 1.5rem; /* Slightly reduced from 1.75rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.blog-card .card-title {
    font-size: 1.25rem; /* Slightly reduced from 1.35rem */
    font-weight: 600; /* Reduced from 700 */
    color: #1f2937;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    line-height: 1.4;
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-bottom: 0.75rem;
}

.blog-card .card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem; /* Reduced from 3rem */
    height: 2px; /* Reduced from 3px */
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.blog-card:hover .card-title:after {
    width: 4rem; /* Reduced from 5rem */
}

.blog-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card .card-title:hover {
    color: #3b82f6;
}

.blog-card .card-excerpt {
    color: #6b7280;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    line-height: 1.6; /* Reduced from 1.7 */
    margin-bottom: 1.25rem; /* Reduced from 1.5rem */
    flex-grow: 1;
}

.blog-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between; /* Changed from flex-direction: column */
    align-items: center; /* Added for vertical alignment */
    padding-top: 1rem; /* Reduced from 1.25rem */
    border-top: 1px solid #f3f4f6; /* Added subtle separator */
}

.blog-card .read-more {
    color: #3b82f6;
    font-weight: 500; /* Reduced from 600 */
    font-size: 0.8rem; /* Reduced from 0.85rem */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card .read-more:hover {
    color: #2563eb; /* Slightly darker blue */
}

.blog-card .read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.blog-card .read-more:hover svg {
    transform: translateX(3px);
}

/* Sidebar */
.sidebar-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-card-header {
    background-color: #2c3e50; /* Dark blue-charcoal */
    padding: 1rem 1.5rem;
}

.sidebar-card-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: white;
    text-align: center;
}

.sidebar-card-body {
    background-color: white;
    padding: 1.5rem;
}

/* Sidebar Social Links */
.social-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}
.social-link:hover {
    color: #3b82f6;
}
.social-link i {
    font-size: 1.5rem;
}


/* Sidebar Recent Posts */
.recent-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recent-post-item:not(:last-child) {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Blog Sayfası Özel Stilleri */

/* Ana Konteyner Stili */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Başlık Alanı */
.blog-header {
    position: relative;
    background-color: #1f2937;
    color: white;
}

/* Blog Kartları */
#posts-container article {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

#posts-container article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#posts-container article img {
    transition: transform 0.5s ease;
}

#posts-container article:hover img {
    transform: scale(1.05);
}

#posts-container article h3 {
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

#posts-container article:hover h3 {
    color: #f59e0b;
}

/* Kategori Badge */
#posts-container .bg-blue-100 {
    background-color: #fef3c7; /* amber-100 */
    color: #92400e; /* amber-800 */
}

/* Okuma Linki */
#posts-container a.text-blue-600 {
    color: #f59e0b; /* amber-500 */
    transition: all 0.3s ease;
}

#posts-container a.text-blue-600:hover {
    color: #d97706; /* amber-600 */
}

/* Sayfalama Butonları */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
}

.pagination-btn.active {
    background-color: #3b82f6;
    color: white;
}

/* Yan Menü Kartları */
aside > div {
    transition: all 0.3s ease;
}

aside > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Yükleme Animasyonu */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* RTL Desteği */
body.rtl {
    direction: rtl;
}

body.rtl .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

body.rtl .lang-dropdown {
    left: 0;
    right: auto;
}

/* Mobil Duyarlı Tasarım */
@media (max-width: 768px) {
    .category-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    #posts-container article {
        margin-bottom: 1.5rem;
    }
}

/* Post cards */
.post-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    transition: all 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Contact form */
.contact-input {
    width: 100%;
    background-color: #1f2937;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 0.75rem 0.75rem 2.75rem;
    color: white;
}

.contact-input::placeholder {
    color: #9ca3af;
}

.contact-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
