/**
 * NT Video Flotter - Frontend Styles
 */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
/* Container */
#nt-vf-floating-video {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position classes */
.nt-vf-position-bottom-right {
    bottom: 30px;
    right: 30px;
}

.nt-vf-position-bottom-left {
    bottom: 30px;
    left: 30px;
}

.nt-vf-position-top-right {
    top: 30px;
    right: 30px;
}

.nt-vf-position-top-left {
    top: 30px;
    left: 30px;
}

/* Size classes */
.nt-vf-size-small .nt-vf-video-wrapper {
    width: 200px;
    height: 280px;
}
.nt-vf-size-small.nt-vf-expanded .nt-vf-video-wrapper {
    width: 260px;
    height: 340px;
}

.nt-vf-size-medium .nt-vf-video-wrapper {
    width: 280px;
    height: 350px;
}
.nt-vf-size-medium.nt-vf-expanded .nt-vf-video-wrapper {
    width: 250px;
    height: 450px;
}
.nt-vf-size-medium.nt-vf-expanded .nt-vf-video-wrapper iframe{
    width: 100% !important;
    height: 100% !important;
}
.nt-vf-size-large .nt-vf-video-wrapper {
    width: 360px;
    height: 450px;
}
.nt-vf-size-large.nt-vf-expanded .nt-vf-video-wrapper {
    width: 440px;
    height: 550px;
}

/* Video wrapper */
.nt-vf-video-wrapper {
    background: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Play overlay */
.nt-vf-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.nt-vf-video-wrapper:hover .nt-vf-play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.nt-vf-play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nt-vf-video-wrapper:hover .nt-vf-play-button {
    transform: scale(1.1);
    background: #ffffff;
}

.nt-vf-play-icon {
    font-size: 28px;
    color: #fe2c55;
    margin-left: 4px;
}

.nt-vf-video-label {
    margin-top: 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* TikTok iframe wrapper */
.nt-vf-iframe-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#nt-vf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Close button */
.nt-vf-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nt-vf-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nt-vf-close-icon {
    font-size: 20px;
    font-weight: 300;
}

/* Minimize button */
.nt-vf-minimize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nt-vf-minimize-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nt-vf-minimize-icon {
    font-size: 20px;
    font-weight: 300;
}

/* Expanded state */
#nt-vf-floating-video.nt-vf-expanded .nt-vf-play-overlay {
    display: none;
}

#nt-vf-floating-video.nt-vf-expanded .nt-vf-iframe-wrapper {
    display: block !important;
}

#nt-vf-floating-video.nt-vf-expanded .nt-vf-minimize-btn {
    display: flex;
}

#nt-vf-floating-video.nt-vf-expanded .nt-vf-bubble {
    display: none;
}

/* Minimized bubble (floating icon) */
.nt-vf-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fe2c55, #ff6b8a);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.nt-vf-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(254, 44, 85, 0.5);
}

.nt-vf-bubble-icon {
    color: white;
    margin-bottom: 1px;
}

.nt-vf-bubble-icon svg {
    width: 26px;
    height: 26px;
}

.nt-vf-bubble-text {
    color: white;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Pulse animation for bubble */
.nt-vf-bubble::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(254, 44, 85, 0.3);
    animation: nt-vf-pulse 2s ease-in-out infinite;
}

@keyframes nt-vf-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

/* Hide wrapper when minimized */
#nt-vf-floating-video:not(.nt-vf-expanded) .nt-vf-video-wrapper {
    display: none;
}

#nt-vf-floating-video:not(.nt-vf-expanded) .nt-vf-bubble {
    display: flex;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #nt-vf-floating-video{
        display: none !important;
    }
    .nt-vf-position-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .nt-vf-position-bottom-left {
        bottom: 15px;
        left: 15px;
    }
    
    .nt-vf-position-top-right {
        top: 15px;
        right: 15px;
    }
    
    .nt-vf-position-top-left {
        top: 15px;
        left: 15px;
    }
    
    .nt-vf-bubble {
        width: 50px;
        height: 50px;
    }
    
    .nt-vf-bubble-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .nt-vf-bubble-text {
        font-size: 7px;
    }
    
    /* Mobile sizes */
    .nt-vf-size-small .nt-vf-video-wrapper,
    .nt-vf-size-medium .nt-vf-video-wrapper {
        width: 180px;
        height: 250px;
    }
    
    .nt-vf-size-small.nt-vf-expanded .nt-vf-video-wrapper,
    .nt-vf-size-medium.nt-vf-expanded .nt-vf-video-wrapper {
        width: 220px;
        height: 300px;
    }
    
    .nt-vf-size-large .nt-vf-video-wrapper {
        width: 200px;
        height: 280px;
    }
    
    .nt-vf-size-large.nt-vf-expanded .nt-vf-video-wrapper {
        width: 260px;
        height: 360px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nt-vf-video-wrapper {
        background: #2d2d44;
    }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    #nt-vf-floating-video,
    .nt-vf-bubble,
    .nt-vf-play-button {
        transition: none !important;
        animation: none !important;
    }
    
    .nt-vf-bubble::after {
        animation: none !important;
        display: none;
    }
}