/* ============================================================
   BLOG SAYFASI STİLLERİ
   ============================================================ */

/* Blog Grid Container */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

#blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Blog Card Content */
.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Blog Card Footer */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-card-footer small {
    color: #999;
    font-size: 12px;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
}

/* No Blogs Message */
.no-blogs {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ============================================================
   TAM SAYFA BLOG MODAL STİLLERİ
   ============================================================ */

/* Fullscreen Modal */
.blog-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fullscreen Container */
.blog-fullscreen-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Fullscreen Content */
.blog-fullscreen-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Fullscreen Image */
.blog-fullscreen-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-fullscreen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fullscreen Text */
.blog-fullscreen-text {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.blog-fullscreen-text h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
}

.blog-fullscreen-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
}

.blog-fullscreen-meta small {
    color: #999;
    font-size: 14px;
}

.blog-fullscreen-body {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    word-wrap: break-word;
}

.blog-fullscreen-body br {
    display: block;
    content: '';
    margin: 10px 0;
}

/* Blog İçeriğindeki Görseller */
.blog-content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Blog İçeriğindeki Görseller - Responsive */
@media (max-width: 768px) {
    .blog-content-image {
        margin: 15px 0;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .blog-content-image {
        margin: 10px 0;
        border-radius: 4px;
    }
}

/* Close Button */
.close-fullscreen-blog {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-fullscreen-blog:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Scrollbar Styling - Tam Sayfa Modal */
.blog-fullscreen-content::-webkit-scrollbar {
    width: 12px;
}

.blog-fullscreen-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.blog-fullscreen-content::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 6px;
}

.blog-fullscreen-content::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Firefox Scrollbar */
.blog-fullscreen-content {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

.blog-fullscreen-text::-webkit-scrollbar {
    width: 12px;
}

.blog-fullscreen-text::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.blog-fullscreen-text::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 6px;
}

.blog-fullscreen-text::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Firefox Scrollbar */
.blog-fullscreen-text {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-grid,
    #blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-fullscreen-container {
        width: 95%;
        height: 95vh;
    }
    
    .blog-fullscreen-image {
        height: 200px;
    }
    
    .blog-fullscreen-text {
        padding: 25px;
    }
    
    .blog-fullscreen-text h1 {
        font-size: 24px;
    }
    
    .blog-fullscreen-body {
        font-size: 15px;
    }
    
    .close-fullscreen-blog {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-card-content h3 {
        font-size: 16px;
    }
    
    .blog-card-content p {
        font-size: 13px;
    }
    
    .blog-fullscreen-text {
        padding: 20px;
    }
    
    .blog-fullscreen-text h1 {
        font-size: 20px;
    }
    
    .blog-fullscreen-body {
        font-size: 14px;
        line-height: 1.6;
    }
}
