﻿/* Blog Cards Modern Design - blog-cards.css - GÜNCEL VERSİYON */

/* Blog Section - Header ile aynı gradient */
.blog-content-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 70vh;
}

/* Filter Alerts - Modernleştirilmiş */
.blog-alert {
    border-radius: 16px;
    border: none;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .blog-alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    }

    .blog-alert.alert-primary {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
        color: #1e40af;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .blog-alert.alert-info {
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
        color: #0c4a6e;
        border: 1px solid rgba(6, 182, 212, 0.2);
    }

    .blog-alert .close-filter {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: inherit;
        opacity: 0.8;
        transition: all 0.3s ease;
        padding: 0.5rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }

        .blog-alert .close-filter:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.95);
            transform: scale(1.05);
        }

/* Modern Blog Grid - Geliştirilmiş */
.modern-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Eski grid için backward compatibility */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Modern Blog Cards - Tamamen Yeniden Tasarlanmış */
.modern-blog-card,
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .modern-blog-card:hover,
    .blog-card:hover {
        transform: translateY(-12px) scale(1.02);
    }

/* Card Header Section - Modern Image Container */
.card-header-section,
.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-featured-image,
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.modern-blog-card:hover .blog-featured-image,
.blog-card:hover .blog-card-img {
    transform: scale(1.1);
}

/* Image Hover Overlay - Modern */
.image-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-blog-card:hover .image-hover-overlay {
    opacity: 1;
}

.image-read-btn {
    background: white;
    color: #3b82f6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.modern-blog-card:hover .image-read-btn {
    transform: scale(1);
}

.image-read-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

/* Eski overlay sistemi için backward compatibility */
.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

/* Modern Badges */
.category-badge-modern {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
    margin-top: 2px;
}

/* Card Content Section - Modern */
.card-content-section,
.blog-card-content {
    padding: 1.5rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Modern Meta Information */
.blog-meta-modern,
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.meta-item,
.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .meta-item i,
    .blog-meta-item i {
        font-size: 0.8rem;
        color: #94a3b8;
    }

.meta-divider {
    color: #cbd5e1;
}

/* Modern Blog Title */
.blog-title-modern,
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

    .blog-title-modern a,
    .blog-card-title {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.3s ease;
        display: block;
    }

        .blog-title-modern a:hover,
        .blog-card:hover .blog-card-title {
            color: #3b82f6;
        }

/* Modern Blog Excerpt */
.blog-excerpt-modern,
.blog-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Author & Tags Section - Modern */
.author-tags-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.author-info-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

/* Tags Preview - Modern */
.tags-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-mini {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .tag-mini:hover {
        background: #3b82f6;
        color: white;
    }

.tag-more {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Eski Tag Sistemi - Backward Compatibility */
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .blog-tag:hover {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

/* Card Action Footer - Modern */
.card-action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Modern Read More Button */
.read-more-modern {
    color: black;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    border: 1.5px black solid;
    display: flex;
    padding: 0.5rem;
    border-radius: 16px;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .read-more-modern:hover {
        color: gray;
        gap: 0.75rem;
    }

    .read-more-modern i {
        transition: transform 0.3s ease;

    }

    .read-more-modern:hover i {
        transform: translateX(4px);
    }

/* Eski Read More Button - Enhanced */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

    .blog-read-more::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .blog-read-more:hover::before {
        left: 100%;
    }

    .blog-read-more:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

    .blog-read-more i {
        transition: transform 0.3s ease;
    }

    .blog-read-more:hover i {
        transform: translateX(3px);
    }

/* Share Action - Tek Paylaş Butonu */
.share-action {
    display: flex;
}

.share-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    border: none;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

    .share-btn:hover {
        background: linear-gradient(135deg, #475569, #374151);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
    }

    .share-btn i {
        font-size: 0.9rem;
    }

/* Empty State - Modern */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.blog-empty-state h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-empty-state p {
    color: #64748b;
    margin-bottom: 2rem;
}

.btn-primary-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary-outline:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }

/* Modern Pagination */
.modern-pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.modern-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .modern-pagination .page-item {
        margin: 0;
    }

    .modern-pagination .page-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: white;
        color: #64748b;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        min-width: 44px;
        justify-content: center;
    }

        .modern-pagination .page-link:hover {
            background: #f8fafc;
            color: #3b82f6;
            border-color: #3b82f6;
            transform: translateY(-1px);
        }

    .modern-pagination .page-item.active .page-link {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.prev-link,
.next-link {
    min-width: auto !important;
}

/* Share Menu Styles */
.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .share-menu.active {
        opacity: 1;
    }

.share-menu-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 300px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.share-menu.active .share-menu-content {
    transform: scale(1);
}

.share-menu h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #1e293b;
    font-weight: 600;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

    .share-option:hover {
        background: #f8fafc;
    }

.close-share-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-share-menu:hover {
        color: #64748b;
    }

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    .modern-blog-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 760.99px) {
    .blog-content-section {
        padding: 2rem 0;
    }

    .modern-blog-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-header-section,
    .blog-card-image {
        height: 200px;
    }

    .card-content-section,
    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-title-modern,
    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-alert {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .author-tags-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-action-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .share-action {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .card-header-section,
    .blog-card-image {
        height: 180px;
    }

    .card-content-section,
    .blog-card-content {
        padding: 1rem;
    }

    .blog-title-modern,
    .blog-card-title {
        font-size: 1rem;
    }

    .blog-excerpt-modern,
    .blog-card-excerpt {
        font-size: 0.9rem;
    }

    .blog-read-more {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .blog-card-tags,
    .tags-preview {
        justify-content: center;
    }

    .modern-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .prev-link span,
    .next-link span {
        display: none;
    }

    .card-action-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .share-action {
        align-self: flex-end;
    }
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Delays for Cards */
.modern-blog-card:nth-child(1),
.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-blog-card:nth-child(2),
.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-blog-card:nth-child(3),
.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-blog-card:nth-child(4),
.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.modern-blog-card:nth-child(5),
.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.modern-blog-card:nth-child(6),
.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Fade In Animation */
.modern-blog-card,
.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading States */
.card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
