/**
 * HMVIP Player - Industrial Styles
 *
 * @version 2.0.0
 * @package hmvip-player
 */

/* Player Wrapper */
.hmvip-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Loading State */
.hmvip-player-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmvip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Spinner Animation */
.hmvip-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hmvip-spin 0.8s linear infinite;
}

@keyframes hmvip-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Element */
.hmvip-video {
    width: 100%;
    max-width: 100%;
    display: block;
    background: #000;
}

/* Ready State */
.hmvip-player-ready .hmvip-video {
    border-radius: 8px;
}

/* Error State */
.hmvip-player-error {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hmvip-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    padding: 20px;
}

.hmvip-error-icon {
    font-size: 32px;
}

/* Fallback Video */
.hmvip-fallback {
    opacity: 0.9;
}

/* Ads Container */
.hmvip-ads-container {
    position: relative;
    width: 100%;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hmvip-player-wrapper {
        border-radius: 0;
    }

    .hmvip-player-ready .hmvip-video {
        border-radius: 0;
    }

    .hmvip-loading {
        font-size: 13px;
    }

    .hmvip-spinner {
        width: 24px;
        height: 24px;
    }
}

/* BuddyBoss Activity Integration */
.activity-inner .hmvip-player-wrapper,
.bb-activity-media-wrap .hmvip-player-wrapper {
    margin: 10px 0;
}

/* Theatre Mode Support */
.bb-theatre-mode .hmvip-player-wrapper {
    border-radius: 0;
    height: 100%;
}

.bb-theatre-mode .hmvip-video {
    height: 100%;
    object-fit: contain;
}

/* ✅ PROTECTED CONTENT OVERLAY */
.hmvip-player-protected {
    position: relative;
}

.hmvip-player-protected .hmvip-video {
    filter: blur(0px); /* Blur é aplicado no vídeo da Lambda, não via CSS */
}

.hmvip-protected-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
    text-align: center;
    color: white;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hmvip-protected-overlay .hmvip-overlay-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hmvip-protected-overlay .hmvip-overlay-message {
    font-size: 1em;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 300px;
    line-height: 1.5;
}

.hmvip-protected-overlay .hmvip-overlay-cta {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hmvip-protected-overlay .hmvip-overlay-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.hmvip-protected-overlay .hmvip-overlay-hint {
    margin-top: 16px;
    font-size: 0.8em;
    opacity: 0.6;
    font-style: italic;
}

/* Mobile adjustments for overlay */
@media (max-width: 768px) {
    .hmvip-protected-overlay {
        padding: 16px;
    }

    .hmvip-protected-overlay .hmvip-overlay-title {
        font-size: 1.4em;
    }

    .hmvip-protected-overlay .hmvip-overlay-message {
        font-size: 0.9em;
        margin-bottom: 16px;
    }

    .hmvip-protected-overlay .hmvip-overlay-cta {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}
