/**
 * Rama Video Activity - Public CSS
 */

/* Video completion button */
.rama-video-complete-button {
    background-color: #fff;
    color: var(--ra-ma-new-blue);
    padding: 10px 25px 8px;
    border-radius: 100px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1.5px solid var(--ra-ma-new-blue);
    font-weight: 500;
    cursor: pointer;
}

.rama-video-complete-button:hover,
.rama-video-complete-button.completed {
    background-color: var(--ra-ma-new-blue);
    color: #fff;
}

/* Video save button */
.rama-video-save-button {
    background-color: #fff;
    color: var(--ra-ma-new-blue);
    padding: 10px 25px 8px;
    border-radius: 100px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1.5px solid var(--ra-ma-new-blue);
    font-weight: 500;
    cursor: pointer;
}

.rama-video-save-button:hover,
.rama-video-save-button.saved {
    background-color: var(--ra-ma-new-blue);
    color: #fff;
}

/* Processing state styles (shared) */
.rama-video-complete-button.processing,
.rama-video-save-button.processing {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
    min-width: auto !important;
    min-height: 24px !important;
}

/* Loader styling (shared) */
.rama-video-complete-button.processing svg,
.rama-video-save-button.processing svg {
    width: 24px;
    height: 24px;
    margin: 0;
    color: #666;
    animation: rama-rotate 1s linear infinite;
}

@keyframes rama-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* For buttons inside WordPress content */
.wp-block-post-content .rama-video-complete-button,
.wp-block-post-content .rama-video-save-button,
.entry-content .rama-video-complete-button,
.entry-content .rama-video-save-button {
    margin: 1em 0;
}

/* Button group (when buttons are used together) */
.rama-video-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Icon-only save button styles */
.rama-video-save-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff !important;
    transition: all 0.3s ease;
    background-color: #ffffff61 !important;
    padding: 8px;
    border-radius: 100px;
}

.rama-video-save-icon svg {
    width: 18px;
    height: 18px;
}

.rama-video-save-icon.saved svg path {
    fill: #fff;
}

.rama-video-save-icon:hover {
    transform: scale(1.15);
}

.rama-video-save-icon.loading {
    opacity: 0.7;
    pointer-events: none;
}

.rama-video-save-icon:active {
    transform: scale(0.9);
}

/* Responsive adjustments */
@media (max-width: 480px) {

    .rama-video-complete-button svg,
    .rama-video-save-button svg {
        width: 16px;
        height: 16px;
    }
    
    .rama-video-complete-button.processing svg,
    .rama-video-save-button.processing svg {
        width: 20px;
        height: 20px;
    }
}