/* Module Custom Styles */
.h5-5 {
    font-size: 1.25rem;
}
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.invisible {
    visibility: hidden;
}

.se-vw-video {
    position: relative;
    border: 1px solid var(--primary-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

    .se-vw-video img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        opacity: 0.75;
        transition: all 300ms ease-in-out;
        z-index: 0;
        transform: scale(1);
    }

    /* Hover effects only when enabled */
    .se-vw-video.se-vw-hover-enabled:hover img {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    /* Animated preview overlay effect - only when enabled */
    .se-vw-video.se-vw-hover-enabled::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
        background-size: 200% 200%;
        opacity: 0;
        transition: opacity 300ms ease-in-out;
        pointer-events: none;
        z-index: 1;
    }

    .se-vw-video.se-vw-hover-enabled:hover::after {
        opacity: 1;
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: -200% 50%;
    }
}

.se-vw-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease-in-out, transform 200ms ease-in-out;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-vw-video-play i {
    font-size: 3rem;
}

.se-vw-video:hover .se-vw-video-play {
    opacity: 1;
}

.se-vw-video-play:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

.se-vw-video-source {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000;
}


.se-vw-video-close {
    z-index: 1001;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    width: 48px;
    height: 48px;
}

.se-vw-video-close i {
    font-size: 3rem;
}

.se-vw-video-source:hover .se-vw-video-close {
    opacity: 1;
}

.se-vw-video-close:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.2s;
}

/* Description Modal Styles */
.se-vw-description-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.se-vw-description-thumbnail {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .se-vw-description-thumbnail {
        float: left;
        margin-right: 1.5rem;
        margin-bottom: 1rem;
        max-width: 320px;
    }
}

/* Tag Input Component Styles */
.tag-input-container {
    width: 100%;
}

.tag-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: 0.375rem;
    min-height: 42px;
    cursor: text;
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tag-chips-wrapper:focus-within {
    border-color: var(--bs-primary, #86b7fe);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 0.375rem;
    white-space: nowrap;
    animation: tagFadeIn 0.2s ease-in-out;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-remove {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    padding: 0;
    margin: 0;
    width: 0.75em;
    height: 0.75em;
    background-size: 0.75em;
    opacity: 0.7;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out;
}

.tag-remove:hover {
    opacity: 1;
}

.tag-remove:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.tag-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    background: transparent;
    color: inherit;
}

.tag-input::placeholder {
    color: var(--bs-secondary-color, #6c757d);
    opacity: 0.6;
}

/* Oqtane dark mode support using data-bs-theme */
[data-bs-theme="dark"] .tag-chips-wrapper {
    background-color: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

[data-bs-theme="dark"] .tag-input {
    color: var(--bs-body-color, #fff);
}

[data-bs-theme="dark"] .tag-input::placeholder {
    color: var(--bs-secondary-color, #adb5bd);
    opacity: 0.6;
}

[data-bs-theme="dark"] .tag-chips-wrapper:focus-within {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tag chip colors for dark mode */
[data-bs-theme="dark"] .tag-chip {
    background-color: var(--bs-secondary-bg, #495057) !important;
    color: var(--bs-body-color, #fff) !important;
    border: 1px solid var(--bs-border-color, #6c757d);
}

/* Fallback for prefers-color-scheme (for systems not using data-bs-theme) */
@media (prefers-color-scheme: dark) {
    body:not([data-bs-theme]) .tag-chips-wrapper {
        background-color: #212529;
        border-color: #495057;
    }

    body:not([data-bs-theme]) .tag-input {
        color: #fff;
    }

    body:not([data-bs-theme]) .tag-input::placeholder {
        color: #adb5bd;
        opacity: 0.6;
    }

    body:not([data-bs-theme]) .tag-chips-wrapper:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    body:not([data-bs-theme]) .tag-chip {
        background-color: #495057 !important;
        color: #fff !important;
        border: 1px solid #6c757d;
    }
}
