/* =========================================
   VIDEO SAYFASI CSS
   ========================================= */

/* Layout */
.video-sayfa-row {
    /* Container içinde çalışacak şekilde */
}

.video-sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Header Card */
.video-header-card {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
}

.video-header-card.mini {
    padding: 24px;
}

.video-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.video-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.video-header-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Video Card */
.video-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100%;
}

.video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1e293b;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.video-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-card-level {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.video-card-body {
    padding: 16px;
}

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

.video-card-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.video-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Video Player */
.video-player-card {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

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

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

/* Video Fallback (embed edilemeyen videolar için) */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
}

.video-fallback-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-fallback-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.video-fallback-play {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.video-fallback-play:hover {
    transform: scale(1.1);
    color: #fff;
}

.video-fallback-play i {
    font-size: 72px;
    color: #ff0000;
}

.video-fallback-play span {
    font-size: 18px;
    font-weight: 600;
}

.video-fallback-text {
    position: absolute;
    bottom: 20px;
    color: #aaa;
    font-size: 13px;
    text-align: center;
}

/* YouTube'da İzle Butonu */
.video-external-link {
    padding: 12px 16px;
    background: #1a1a1a;
    text-align: center;
}

.btn-youtube-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff0000;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-youtube-watch:hover {
    background: #cc0000;
    color: #fff;
    transform: translateY(-2px);
}

.btn-youtube-watch i {
    font-size: 18px;
}

/* Video Info */
.video-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.video-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.video-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #c1c1c1;
    border-radius: 5px;
    font-size: 13px;
    color: #475569;
}

.video-meta-item.seviye {
    color: #fff;
}

.video-meta-item.kategori {
    background: #e0f2fe;
    color: #0369a1;
}

.video-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.video-tag {
    padding: 6px 12px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-tag:hover {
    background: #dc2626;
    color: #fff;
}

/* Video Section */
.video-section {
    margin-top: 32px;
}

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

.video-section-title i {
    color: #dc2626;
}

/* Empty State */
.video-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.video-empty i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.video-empty h3 {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .video-header-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .video-header-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .video-header-text h1 {
        font-size: 20px;
    }

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

    .video-sidebar-sticky {
        position: relative;
        top: auto;
        margin-top: 24px;
    }
}

