/**
 * OposicionesAGE Video Player Styles
 */

.oage-video-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.oage-video-player {
    width: 100%;
    height: auto;
    display: block;
}

.oage-watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.5s ease;
}

.oage-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 100;
}

.oage-video-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

.oage-video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 100;
    max-width: 80%;
}

.oage-video-error p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .oage-watermark {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* Protección contra captura de pantalla (limitado) */
.oage-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, 0.01) 100px,
        rgba(255, 255, 255, 0.01) 200px
    );
}

/* Botón de descarga PDF */
.oage-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.oage-pdf-download-btn:hover {
    background: #005a87;
}

.oage-pdf-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.oage-pdf-download-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
