/**
 * Video Detay Sayfası CSS
 * themes/Duru/assets/css/video-detail.css
 */

/* Container */
.video-detail-page {
    margin-top: 7px;
    margin-bottom: 30px;
}

/* Header - Başlık Kartı */
.video-detail-header {
    background: #fff;
    border-radius: 0;
    padding: 25px 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.video-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.video-detail-summary {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Layout */
.video-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* Main Content */
.video-detail-main {
    min-width: 0;
}

/* Video Player */
.video-detail-player {
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Meta */
.video-detail-meta {
    background: #fff;
    border-radius: 0;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.video-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e11d48;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.video-meta-category:hover {
    filter: brightness(1.1);
    color: #fff;
}

.video-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.video-meta-item i {
    color: #999;
}

/* Video Content */
.video-detail-content {
    background: #fff;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.video-detail-content p {
    margin-bottom: 1em;
}

.video-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Share Section */
.video-share-section {
    background: #fff;
    border-radius: 0;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.video-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.video-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.video-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-share-btn.facebook { background: #1877f2; }
.video-share-btn.twitter { background: #000; }
.video-share-btn.nextsocial { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.video-share-btn.whatsapp { background: #25d366; }
.video-share-btn.telegram { background: #0088cc; }
.video-share-btn.linkedin { background: #0a66c2; }
.video-share-btn.email { background: #ea4335; }
.video-share-btn.copy { background: #6c757d; }

.video-share-x-icon {
    width: 16px;
    height: 16px;
}

.video-share-nextsocial-letter {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
}

/* Related Videos */
.video-related-section {
    background: #fff;
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

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

.video-related-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.video-related-card:hover {
    transform: translateY(-5px);
}

.video-related-thumbnail {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    padding-top: 56.25%;
    background: #f0f0f0;
}

.video-related-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-related-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 32px;
}

.video-related-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(225, 29, 72, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-related-card:hover .video-related-play {
    opacity: 1;
}

.video-related-info {
    padding: 12px 0 0;
}

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

.video-related-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 12px;
}

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


/* Sidebar */
.video-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-sidebar-section {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

.video-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

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

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

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

.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, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
}

.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;
    color: #fff;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-sidebar-item:hover .video-sidebar-play {
    opacity: 1;
}

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

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

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

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

.video-sidebar-item-simple {
    padding-left: 0;
}

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

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

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

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

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

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

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

    .video-detail-title {
        font-size: 24px;
    }
}

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

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

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

    .video-detail-header {
        padding: 20px;
    }

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

    .video-detail-summary {
        font-size: 14px;
    }

    .video-detail-meta {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .video-meta-info {
        gap: 12px;
    }

    .video-detail-content {
        padding: 20px;
        font-size: 15px;
    }

    .video-share-section {
        padding: 15px 20px;
    }

    .video-related-section {
        padding: 20px;
    }
}

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

    .video-related-card {
        display: flex;
        gap: 12px;
    }

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

    .video-related-info {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .video-share-buttons {
        justify-content: center;
    }

    .video-share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-meta-item {
        font-size: 12px;
    }
}

/* Extra Small (max-width: 380px) */
@media (max-width: 380px) {
    .video-detail-header {
        padding: 15px;
    }

    .video-detail-title {
        font-size: 18px;
    }

    .video-related-thumbnail {
        width: 110px;
        height: 65px;
    }

    .video-sidebar-thumb {
        width: 70px;
        height: 45px;
    }
}
