/* Custom styles for Video Hosting Application */

/* Video card hover effect */
.video-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

/* Upload form enhancements */
.upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #0ea5e9;
}

/* Copy button animation */
.copy-button {
    transition: background-color 0.3s;
}

.copy-button.copied {
    background-color: #10b981;
}

/* Custom progress bar */
.progress-bar {
    height: 10px;
    border-radius: 5px;
    background-color: #e0f2fe;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    background-color: #0ea5e9;
    width: 0%;
    transition: width 0.3s;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
