/**
 * Video Kategori Sayfası CSS
 * themes/Duru/assets/css/video-category.css
 */

/* Container */
.duru-container.video-category-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 7px;
    margin-bottom: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Layout - 2 Sütun */
.video-category-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
}

/* Kategori Header */
.video-category-header {
    background: #ffffff;
    border-radius: 0;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.video-category-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.video-category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-category-icon i {
    font-size: 28px;
    color: #ffffff;
}

.video-category-info {
    flex: 1;
}

.video-category-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.2;
}

.video-category-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}

.video-category-stats {
    display: flex;
    gap: 20px;
}

.video-category-stat {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-category-stat i {
    color: #e11d48;
}

.video-category-stat strong {
    color: #1f2937;
    font-weight: 600;
}

.video-category-color-bar {
    height: 4px;
    background: #e11d48;
}

/* Video Listesi */
.video-category-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 15px;
}

.video-category-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.video-category-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-category-list-title i {
    color: #e11d48;
}

/* Sıralama Dropdown */
.video-category-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-category-sort .sort-label {
    font-size: 13px;
    color: #6b7280;
}

.video-category-sort .sort-select {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

.video-category-sort .sort-select:focus {
    outline: none;
    border-color: #e11d48;
}

/* Video Grid */
.video-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Video Kartları */
.video-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
    transform: translateY(-2px);
}

.video-card-link {
    text-decoration: none;
    display: block;
}

.video-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #1f2937;
    overflow: hidden;
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-card-thumbnail img {
    transform: scale(1.05);
}

.video-card-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.video-card-no-image i {
    font-size: 40px;
    color: #6b7280;
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(225, 29, 72, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card-play i {
    color: #ffffff;
    font-size: 18px;
    margin-left: 3px;
}

.video-card:hover .video-card-play {
    background: #e11d48;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.video-card-content {
    padding: 14px;
}

.video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.video-card-meta i {
    margin-right: 4px;
}

/* Sayfalama */
.video-pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.video-pagination .pagination-list {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-pagination .pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-pagination .pagination-link:hover {
    background: #f3f4f6;
    border-color: #e11d48;
    color: #e11d48;
}

.video-pagination .pagination-link.active {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.video-pagination .pagination-dots span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #9ca3af;
}

/* Video Yok */
.video-category-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 60px 40px;
    text-align: center;
}

.video-category-empty i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.video-category-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px;
}

.video-category-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

.video-category-empty-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #e11d48;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.video-category-empty-btn:hover {
    background: #be185d;
    color: #ffffff;
}

/* ==================== SIDEBAR ==================== */
.video-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-sidebar-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

.video-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e11d48;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-sidebar-title i {
    color: #e11d48;
}

/* Sidebar Video Listesi */
.video-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.video-sidebar-item:hover {
    background: #f9fafb;
}

.video-sidebar-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-sidebar-thumb {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #1f2937;
}

.video-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-sidebar-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.video-sidebar-no-image i {
    font-size: 18px;
    color: #6b7280;
}

.video-sidebar-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(225, 29, 72, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sidebar-play i {
    color: #ffffff;
    font-size: 8px;
    margin-left: 2px;
}

.video-sidebar-info {
    flex: 1;
    min-width: 0;
}

.video-sidebar-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-sidebar-views,
.video-sidebar-date {
    font-size: 11px;
    color: #9ca3af;
}

.video-sidebar-views i,
.video-sidebar-date i {
    margin-right: 4px;
}

/* Sidebar Kategoriler */
.video-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-sidebar-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.video-sidebar-category:hover {
    background: #fee2e2;
}

.video-sidebar-category.active {
    background: #e11d48;
    color: #ffffff;
}

.video-sidebar-category i {
    font-size: 14px;
    color: #e11d48;
    width: 20px;
    text-align: center;
}

.video-sidebar-category.active i {
    color: #ffffff;
}

.video-sidebar-category-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.video-sidebar-category.active .video-sidebar-category-name {
    color: #ffffff;
}

.video-sidebar-category-count {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}

.video-sidebar-category.active .video-sidebar-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .video-category-layout {
        grid-template-columns: 1fr 280px;
    }

    .video-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .duru-container.video-category-page {
        margin-top: 5px;
    }

    .video-category-layout {
        grid-template-columns: 1fr;
    }

    .video-category-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .video-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-category-header-content {
        padding: 20px;
    }

    .video-category-icon {
        width: 60px;
        height: 60px;
    }

    .video-category-icon i {
        font-size: 24px;
    }

    .video-category-title {
        font-size: 22px;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .duru-container.video-category-page {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .video-category-sidebar {
        grid-template-columns: 1fr;
    }

    .video-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-category-header-content {
        padding: 16px;
        gap: 14px;
    }

    .video-category-icon {
        width: 50px;
        height: 50px;
    }

    .video-category-icon i {
        font-size: 20px;
    }

    .video-category-title {
        font-size: 20px;
    }

    .video-category-description {
        font-size: 13px;
    }

    .video-category-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Mobile Portrait (max-width: 575px) */
@media (max-width: 575px) {
    .video-category-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        display: flex;
        flex-direction: row;
    }

    .video-card-thumbnail {
        width: 140px;
        padding-top: 0;
        height: 90px;
        flex-shrink: 0;
    }

    .video-card-play {
        width: 36px;
        height: 36px;
    }

    .video-card-play i {
        font-size: 14px;
    }

    .video-card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .video-category-header-content {
        flex-direction: column;
        text-align: center;
    }

    .video-category-stats {
        justify-content: center;
    }

    .video-pagination .pagination-link {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* Extra Small (max-width: 380px) */
@media (max-width: 380px) {
    .video-card-thumbnail {
        width: 110px;
        height: 70px;
    }

    .video-card-title {
        font-size: 13px;
    }

    .video-card-meta {
        font-size: 11px;
    }
}

