/* Button Styles */
.affinite-vsb-button-wrapper {
    display: inline-block;
    margin: 10px 0;
}

.affinite-vsb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.affinite-vsb-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.affinite-vsb-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.affinite-vsb-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.affinite-vsb-icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.affinite-vsb-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.affinite-vsb-button-text {
    white-space: nowrap;
}

/* Popup Styles */
.affinite-vsb-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affinite-vsb-popup.active {
    display: flex;
    opacity: 1;
}

.affinite-vsb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.affinite-vsb-popup-content {
    position: relative;
    width: 90%;
    max-width: 1280px;
    max-height: 90vh;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.affinite-vsb-popup.active .affinite-vsb-popup-content {
    transform: scale(1);
}

.affinite-vsb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.affinite-vsb-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.affinite-vsb-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.affinite-vsb-close span {
    font-size: 28px;
    line-height: 1;
    display: block;
}

.affinite-vsb-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000000;
}

#affinite-vsb-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#affinite-vsb-video-wrapper iframe,
#affinite-vsb-video-wrapper video {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .affinite-vsb-popup-content {
        width: 95%;
        max-height: 85vh;
    }

    .affinite-vsb-close {
        width: 35px;
        height: 35px;
        top: 5px;
        right: 5px;
        font-size: 20px;
    }

    .affinite-vsb-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .affinite-vsb-icon-svg,
    .affinite-vsb-icon-img {
        width: 20px;
        height: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .affinite-vsb-popup,
    .affinite-vsb-popup-content,
    .affinite-vsb-button,
    .affinite-vsb-close {
        transition: none;
    }
}

