﻿/* Video Kart Stili */
.video-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    background: #ffffff;
}

    .video-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .video-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #FF6F0F, #ff9f45);
        transform: scaleX(0);
        transition: transform 0.4s ease;
        transform-origin: left;
    }

    .video-card:hover::after {
        transform: scaleX(1);
    }

    .video-card a {
        text-decoration: none;
        color: #333;
        display: block;
    }

/* Kart Resim Alanı */
.video-thumbnail {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-bottom: none;
    filter: brightness(0.97);
    position: relative;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Play Button Overlay */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 111, 15, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}

    .play-button i {
        color: white;
        font-size: 24px;
        margin-left: 4px;
    }

.video-card:hover .play-button {
    background: rgba(255, 111, 15, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Resim Overlay Efekti */
.thumbnail-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Kart İçerik Alanı */
.video-card .card-body {
    padding: 20px 24px;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.video-card .video-title {
    font-size: 17px;

    text-align: center;
    margin: 0;
    color: #2d3748;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
    min-height: 50px;
}

.video-card:hover .video-title {
    color: #FF6F0F;
}

.video-card .video-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* Video Meta Bilgileri */
.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}

/* Kategori Badge - Belirgin */
.video-category {
    font-size: 12px;
    color: #FF6F0F;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff5f0;
    border-radius: 12px;
    border: 1px solid #ffe8db;
    font-weight: 500;
}

    .video-category i {
        font-size: 11px;
        color: #FF6F0F;
    }

/* Yazar ve Tarih - Minimal Tasarım */
.video-author,
.video-date {
    font-size: 11px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    background: transparent;
    padding: 0;
    border: none;
}

    .video-author i,
    .video-date i {
        font-size: 10px;
        color: #bbb;
        opacity: 0.8;
    }

.video-author {
    color: #888;
}

/* Yazar ve Tarih yan yana için wrapper */
.video-meta-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Kategori Listesi */
.category-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

    .category-list .card-header {
        background: linear-gradient(to right, #FF6F0F, #ff9f45);
        color: white;
    
        border: none;
        padding: 15px 20px;
    }

    .category-list .list-group-item {
        border-left: none;
        border-right: none;
        padding: 12px 20px;
        transition: all 0.3s ease;
    }

        .category-list .list-group-item:last-child {
            border-bottom: none;
        }

        .category-list .list-group-item:hover {
            background-color: #f8f9fa;
        }

        .category-list .list-group-item a {
            color: #333;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .category-list .list-group-item a span:first-child {
                display: flex;
                align-items: center;
            }

        .category-list .list-group-item i {
            color: #FF6F0F;
            margin-right: 10px;
            transition: transform 0.3s ease;
        }

        .category-list .list-group-item:hover i {
            transform: translateX(5px);
        }

        .category-list .list-group-item.active {
            background-color: #f8f9fa;
            border-color: #dee2e6;
        }

            .category-list .list-group-item.active a {
                color: #FF6F0F;
            
            }

            .category-list .list-group-item.active i {
                transform: translateX(5px);
            }

    /* Badge Stili */
    .category-list .badge {
        background: linear-gradient(135deg, #FF6F0F, #ff9f45) !important;
        color: white !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        min-width: 25px !important;
        text-align: center !important;
        display: inline-block !important;
        box-shadow: 0 2px 4px rgba(255, 111, 15, 0.2) !important;
        line-height: 1.4 !important;
        vertical-align: middle !important;
    }

    .category-list .list-group-item.active .badge {
        background: linear-gradient(135deg, #ff9f45, #FF6F0F) !important;
        box-shadow: 0 3px 6px rgba(255, 111, 15, 0.3) !important;
    }

/* Sayfalama - Geliştirilmiş Versiyon */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

    .pagination .page-item .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        background-color: white;
        border-radius: 8px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        padding: 0 10px;
        font-size: 14px;
        margin: 0;
    }

        .pagination .page-item .page-link:hover {
            background-color: #ff9f45;
            color: white;
            border-color: #ff9f45;
            transform: translateY(-2px);
            box-shadow: 0 5px 10px rgba(255, 111, 15, 0.2);
        }

    .pagination .page-item.active .page-link {
        background-color: #ff6f0f;
        color: white;
        border-color: #ff6f0f;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(255, 111, 15, 0.3);
    }

        .pagination .page-item.active .page-link:hover {
            background-color: #ff6f0f;
            color: white;
        }

    .pagination .page-item.disabled .page-link {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        border-color: #e0e0e0;
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

/* Video yükleniyor göstergesi */
.loading-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

    .loading-video .spinner-border {
        width: 3rem;
        height: 3rem;
    }

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}

    .loading-spinner .spinner-border {
        width: 3rem;
        height: 3rem;
        color: #FF6F0F;
    }

/* No Results Message */
.no-results {
    background-color: #fff8f3;
    border: 1px solid rgba(255, 111, 15, 0.2);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.1) 0%, rgba(255, 159, 69, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6f0f;
    font-size: 48px;
}

.no-results h3 {
    font-size: 24px;

    color: #333;
    margin-bottom: 12px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Video Modal - Desktop */
.modal.video-modal .modal-dialog,
#videoModal.modal .modal-dialog,
.video-modal.modal-dialog {
    max-width: 1400px !important;
    width: 98% !important;
    margin: 1rem auto !important;
}

.modal.video-modal .modal-content,
#videoModal .modal-content {
    background-color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
}

.modal.video-modal .modal-body,
#videoModal .modal-body {
    padding: 0 !important;
}

/* Sağ üst kapatma butonu - Kırmızı */
.video-modal-header {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1051 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.btn-close-video {
    background: linear-gradient(135deg, #e01e1e, #f02727) !important;
    opacity: 0.95 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(224, 30, 30, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .btn-close-video:hover {
        background: linear-gradient(135deg, #f02727, #ff3838) !important;
        opacity: 1 !important;
        transform: rotate(90deg) scale(1.1) !important;
        box-shadow: 0 6px 16px rgba(224, 30, 30, 0.6) !important;
    }

    .btn-close-video i {
        font-size: 18px !important;
        line-height: 1 !important;
        color: #ffffff !important;
    }

/* Alt footer kapatma butonu - Sağda */
.video-modal-bottom-footer {
    background: linear-gradient(to right, #1a1a1a, #252525) !important;
    border-top: 1px solid #333 !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

    .video-modal-bottom-footer .btn {
        background: linear-gradient(135deg, #e01e1e, #f02727) !important;
        border: none !important;
        color: white !important;
        padding: 10px 24px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(224, 30, 30, 0.3) !important;
        display: inline-flex !important;
        align-items: center !important;
    }

        .video-modal-bottom-footer .btn i {
            margin-right: 8px !important;
        }

        .video-modal-bottom-footer .btn:hover {
            background: linear-gradient(135deg, #f02727, #ff3838) !important;
            box-shadow: 0 6px 15px rgba(224, 30, 30, 0.4) !important;
            transform: translateY(-3px) !important;
        }

        .video-modal-bottom-footer .btn:active {
            transform: translateY(-1px) !important;
        }

/* Video iframe containeri */
.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .video-iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        z-index: 1;
    }

/* Mobil cihazlar için video modal düzenlemeleri */
@media (max-width: 991px) {
    .modal.video-modal,
    #videoModal.modal {
        padding: 0 !important;
    }

        .modal.video-modal .modal-dialog,
        #videoModal .modal-dialog {
            margin: 0 !important;
            max-width: 100% !important;
            width: 100% !important;
            min-height: 85vh !important;
            max-height: 85vh !important;
            height: 85vh !important;
            display: flex !important;
            align-items: center !important;
        }

        .modal.video-modal .modal-content,
        #videoModal .modal-content {
            border-radius: 0 !important;
            max-height: 85vh !important;
            min-height: 85vh !important;
            height: 85vh !important;
            width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            background-color: #000 !important;
        }

        .modal.video-modal .modal-body,
        #videoModal .modal-body {
            padding: 0 !important;
            flex: 1 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

    .video-iframe-container {
        padding-bottom: 56.25% !important;
        height: 0 !important;
        width: 100% !important;
        position: relative !important;
    }

    .video-modal-header {
        top: 8px !important;
        right: 8px !important;
    }

    .btn-close-video {
        width: 28px !important;
        height: 28px !important;
        opacity: 0.9 !important;
    }

        .btn-close-video i {
            font-size: 12px !important;
        }

    .video-modal-bottom-footer {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.85)) !important;
        border-top: 1px solid rgba(255, 111, 15, 0.3) !important;
    }

        .video-modal-bottom-footer .btn {
            padding: 8px 20px !important;
            font-size: 13px !important;
            border-radius: 8px !important;
            background: linear-gradient(135deg, #FF6F0F, #ff8c3f) !important;
            box-shadow: 0 4px 12px rgba(255, 111, 15, 0.4) !important;
        }

            .video-modal-bottom-footer .btn:hover {
                background: linear-gradient(135deg, #ff8c3f, #ffa366) !important;
                box-shadow: 0 6px 16px rgba(255, 111, 15, 0.5) !important;
            }
}

@media (max-width: 576px) {
    .modal.video-modal .modal-dialog,
    #videoModal .modal-dialog {
        min-height: 80vh !important;
        max-height: 80vh !important;
        height: 80vh !important;
    }

    .modal.video-modal .modal-content,
    #videoModal .modal-content {
        max-height: 80vh !important;
        min-height: 80vh !important;
        height: 80vh !important;
    }

    .video-modal-header {
        top: 6px !important;
        right: 6px !important;
    }

    .btn-close-video {
        width: 26px !important;
        height: 26px !important;
    }

        .btn-close-video i {
            font-size: 11px !important;
        }

    .video-modal-bottom-footer {
        padding: 10px 12px !important;
    }

        .video-modal-bottom-footer .btn {
            padding: 7px 16px !important;
            font-size: 12px !important;
        }
}

/* Alt Kategori Stili */
.category-list .list-group-item.subcategory {
    padding-left: 40px;
    background-color: #fafafa;
}

    .category-list .list-group-item.subcategory:hover {
        background-color: #f0f0f0;
    }

    .category-list .list-group-item.subcategory.active {
        background-color: #fff5f0;
    }

    .category-list .list-group-item.subcategory a {
        font-size: 13px;
    }

    .category-list .list-group-item.subcategory i {
        font-size: 14px;
        color: #ff9f45;
    }
