/* ============================================================
   CMS OBJECT: Video
   Views: _Video.cshtml, AdminVideo/Video.cshtml, AdminVideo/AddExistingVideo.cshtml
   Dependencies: Bootstrap 5, Ionicons, cmscontainermanagement.js video modal
   Dynamic content values may remain inline in the Razor view.
   ============================================================ */

.cms-video__play-control {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.cms-video__play-control:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Add Existing selection */
.cms-video__selection {
    min-height: 80vh;
    padding: 20px 0 60px 0;
    background-color: #fafafa;
    border-bottom: 3px solid #dee2e6;
    margin-bottom: 40px;
    position: relative;
}

.cms-video__selection::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f58025, transparent);
    box-shadow: 0 2px 8px rgba(245, 128, 37, 0.3);
}

.cms-video__selection-card {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.cms-video__selection-card:hover {
    box-shadow: 0 8px 25px rgba(245, 128, 37, 0.15);
    border-color: #f58025 !important;
    transform: translateY(-2px);
}

.cms-video__selection-card::before {
    content: "Video Preview";
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 500;
    z-index: 15;
}

.cms-video__add-action {
    top: 15px !important;
    right: 15px !important;
    display: none !important;
    color: #f58025;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 20;
}

.cms-video__add-action:hover {
    color: white;
    background: #f58025;
    transform: scale(1.1);
}

.cms-video__selection-card:hover .cms-video__add-action {
    display: block !important;
}

@media (max-width: 767.98px) {
    .cms-video__add-action {
        display: block !important;
    }

    .cms-video__selection-card .col-md-10 {
        padding: 0 15px;
    }
}
