﻿/* Ön İzleme Modalı */
.preview-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
}

.preview-modal .modal-header {
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
    position: relative;
}

.preview-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.preview-modal .modal-body {
    padding: 30px;
    background-color: #f8f9fa;
}

.preview-modal .news-header {
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-modal .news-title {
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #2b2d42;
    position: relative;
    padding-bottom: 15px;
}

    .preview-modal .news-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: #4895ef;
        border-radius: 2px;
    }

.preview-modal .news-description {
    font-size: 1.1rem;
    color: #5a5a72;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.preview-modal .media-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .preview-modal .media-container {
        flex-direction: column;
    }
}

/* Medya Kartları */
.preview-modal .media-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    position: relative;
    height: 300px;
}

/* Video Kartı */
.preview-modal .video-card {
    display: grid;
    gap: 15px;
    width: 100%;
}

/* Placeholder */
.preview-modal .media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #8d99ae;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .preview-modal .media-placeholder i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #adb5bd;
    }

/* Resim ve Video */
.preview-modal .media-img,
.preview-modal .media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Çoklu ve Tekli Resimler */
.preview-modal .images-card {
    display: grid;
    gap: 15px;
    width: 100%;
}

    .preview-modal .images-card.single-image {
        grid-template-columns: 1fr; /* Tek resim tüm alanı kaplasın */
    }

    .preview-modal .images-card.multi-image {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Dinamik grid */
    }

/* Resim kutusu */
.preview-modal .image-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: 150px;
}

    .preview-modal .image-item:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    .preview-modal .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .preview-modal .image-item .media-download-btn {
        position: absolute;
        top: 10px; /* üste */
        right: 10px; /* sağa */
        bottom: auto; /* alttaki sabitlemeyi iptal et */
        background: rgba(255, 255, 255, 0.9);
        color: var(--dark);
        border-radius: 50px;
        padding: 8px 15px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        z-index: 10;
    }

        .preview-modal .image-item .media-download-btn:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        }

/* Badge & Butonlar */
.preview-modal .badge-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-modal .category-badge {
    background: linear-gradient(135deg, #06d6a0 0%, #05a183 100%);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.preview-modal .date-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Action Buttons */
.preview-modal .action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.preview-modal .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-modal .btn-download {
    background: linear-gradient(135deg, #4cc9f0 0%, #2aa0c4 100%);
    color: white;
}

.preview-modal .btn-share {
    background: linear-gradient(135deg, #ffd166 0%, #e6b400 100%);
    color: white;
}

.preview-modal .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* Medya indirme butonları */
.preview-modal .media-download-btn {
    position: absolute;
    top: 10px; /* üste */
    right: 10px; /* sağa */
    bottom: auto; /* alttaki sabitlemeyi iptal et */
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-radius: 50px;
    padding: 8px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 10;
}

    .preview-modal .media-download-btn:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

/* Kopyalama Toast */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #4cc9f0;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

    .copy-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }


.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    border-radius: 0 0 10px 10px;
}

.btn-close-modal {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f0f2f5;
    color: #5f676e;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-close-modal:hover {
        background: #e2e6ea;
        color: #3d4349;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    .btn-close-modal:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .btn-close-modal i {
        font-size: 16px;
        transition: transform 0.2s;
    }

    .btn-close-modal:hover i {
        transform: scale(1.1);
    }