/* Custom styles for Bharat Text Popup with click-to-play Video */

/* Glassmorphism background overlay */
.bharat-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.bharat-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal container */
.bharat-popup-container {
    position: relative;
    width: 90%;
    max-width: 60vw;
    background: #0d0d0d;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bharat-popup-overlay.active .bharat-popup-container {
    transform: scale(1) translateY(0);
}

/* Close button style */
.bharat-popup-close {
    position: absolute;
    top: -1vw;
    right: -1vw;
    width: 2.5vw;
    height: 2.5vw;
    background: #ff1a30;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2vw;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bharat-popup-close:hover {
    background: #e62235;
    /* Custom red brand-accent color */
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
}

/* Content wrappers */
.bharat-popup-content {
    width: 100%;
    background: transparent;
    position: relative;
    display: flex;
}

.bharat-popup-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.bharat-popup-img {
    width: 60vw;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.bharat-popup-image-wrapper:hover .bharat-popup-img {
    filter: brightness(0.65) contrast(1.05);
    transform: scale(1.03);
}

/* Centered play button */
.bharat-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 3vw;
    height: 3vw;
    background: rgba(230, 34, 53, 0.95);
    /* Red brand color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(230, 34, 53, 0.4);
    transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    /* Passes click to parent wrapper */
}

.bharat-popup-image-wrapper:hover .bharat-play-button {
    background: #ff1a30;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 35px rgba(230, 34, 53, 0.8);
}

.bharat-play-icon {
    width: 2vw;
    height: 2vw;
    fill: #ffffff;
    margin-left: 0;
    /* Visually align play triangle */
}

/* Video styles */
.bharat-popup-video-wrapper {
    width: 100%;
    height: 100%;
    display: none;
    background: #000000;
}

.bharat-popup-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .bharat-popup-container {
        width: 95%;
        border-radius: 0;
        max-width: 100%;
    }

    .bharat-play-button {
        width: 30px;
        height: 30px;
    }

    .bharat-popup-img {
        width: 100%;
        display: block;
    }

    .bharat-play-icon {
        width: 15px;
        height: 15px;
    }

    .bharat-popup-close {
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 17px;
        top: -10px;
    }
}