/**
 * Video Resume Watching - Styles
 */

/* Resume Prompt */
.video-resume-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    min-width: 350px;
    max-width: 450px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.video-resume-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-resume-prompt i.fa-history {
    font-size: 40px;
    opacity: 0.9;
}

.video-resume-text {
    flex: 1;
}

.video-resume-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.video-resume-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.video-resume-text strong {
    font-weight: 600;
}

.video-resume-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-resume-actions .btn {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-resume-actions .btn-primary {
    background: white;
    color: #667eea;
    border: none;
}

.video-resume-actions .btn-primary:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.video-resume-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.video-resume-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-resume-prompt {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        padding: 15px;
    }

    .video-resume-content {
        flex-direction: column;
        text-align: center;
    }

    .video-resume-text h4 {
        font-size: 16px;
    }

    .video-resume-text p {
        font-size: 13px;
    }

    .video-resume-actions {
        flex-direction: row;
        width: 100%;
    }

    .video-resume-actions .btn {
        flex: 1;
    }
}

/* Continue Watching Section */
.continue-watching-section {
    padding: 40px 0;
    background: #f5f7fb;
}

.continue-watching-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.continue-watching-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.clear-history-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.continue-watching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.continue-watching-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.continue-watching-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.continue-watching-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.continue-watching-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.continue-watching-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.continue-watching-progress-bar {
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
}

.continue-watching-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.continue-watching-info {
    padding: 15px;
}

.continue-watching-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.continue-watching-meta {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.continue-watching-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.continue-watching-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.continue-watching-empty h3 {
    font-size: 20px;
    color: #666;
    margin: 0 0 10px 0;
}

.continue-watching-empty p {
    color: #999;
    margin: 0;
}

/* Watch History Tabs */
.watch-history-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.watch-history-tab {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.watch-history-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.watch-history-tab:hover {
    color: #667eea;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .continue-watching-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .continue-watching-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .watch-history-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .watch-history-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 14px;
    }
}
