/**
 * VideoModal.css - Styling for video modal popups
 */

/* Backdrop - full screen overlay */
.video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
   opacity: 1;
    }
}

/* Modal container */
.video-modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
   transform: translateY(-50px);
        opacity: 0;
    }
    to {
      transform: translateY(0);
    opacity: 1;
    }
}

/* Modal header */
.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

.video-modal-title {
  margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.video-modal-close {
    background: none;
  border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.video-modal-close:active {
    background-color: #e9ecef;
}

/* Modal body */
.video-modal-body {
    padding: 24px;
    overflow: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video player */
.video-modal-player {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    background-color: #000;
}

/* Help icon styling */
.video-modal-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    color: #0d6efd;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.video-modal-help-icon:hover {
    color: #0a58ca;
    transform: scale(1.1);
}

.video-modal-help-icon:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal-backdrop {
        padding: 10px;
    }

    .video-modal-container {
    max-width: 100%;
        max-height: 95vh;
      border-radius: 8px;
    }

    .video-modal-header {
        padding: 16px;
    }

    .video-modal-title {
    font-size: 1.25rem;
    }

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

    .video-modal-player {
        max-height: 60vh;
  }

    .video-modal-help-icon {
   font-size: 1.1rem;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .video-modal-container {
    border-radius: 0;
        max-height: 100vh;
    }

    .video-modal-header {
        padding: 12px 16px;
    }

    .video-modal-title {
        font-size: 1.1rem;
    }

    .video-modal-body {
        padding: 12px;
    }

    .video-modal-player {
        border-radius: 4px;
    }
}

/* Print styles - hide modal when printing */
@media print {
    .video-modal-backdrop {
        display: none !important;
    }
}
