/**
 * Public styles for MTWPGR Video Password
 */

.mtwpgr-video-password-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mtwpgr-video-countdown {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #495057;
}

.mtwpgr-video-countdown-timer {
    font-weight: bold;
    color: #dc3545;
}

.mtwpgr-video-password-form {
    margin-top: 15px;
}

.mtwpgr-video-password-text {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #495057;
}

.mtwpgr-video-password-field {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.mtwpgr-video-password-input {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    width: 60%;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mtwpgr-video-password-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.mtwpgr-video-password-submit {
    padding: 10px 20px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mtwpgr-video-password-submit:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

.mtwpgr-video-password-submit:active {
    transform: translateY(0);
}

.mtwpgr-video-password-message {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mtwpgr-video-password-message.show {
    opacity: 1;
}

.mtwpgr-video-password-message.success {
    color: #28a745;
}

.mtwpgr-video-password-message.error {
    color: #dc3545;
}

.mtwpgr-video-content {
    margin-top: 20px;
    position: relative;
}

.mtwpgr-video-download-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mtwpgr-video-download-link:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mtwpgr-video-error {
    color: #dc3545;
    font-weight: bold;
    padding: 15px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background-color: #f8d7da;
    margin: 10px 0;
}

/* Video Popup Styles */
.mtwpgr-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mtwpgr-video-popup.show {
    opacity: 1;
    visibility: visible;
}

.mtwpgr-video-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mtwpgr-video-popup.show .mtwpgr-video-popup-content {
    transform: translateY(0);
}

.mtwpgr-video-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.mtwpgr-video-popup-close:hover {
    color: #dc3545;
}

.mtwpgr-video-popup-title {
    font-size: 24px;
    color: #212529;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mtwpgr-video-password-field {
        flex-direction: column;
    }
    
    .mtwpgr-video-password-input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .mtwpgr-video-password-submit {
        width: 100%;
        border-radius: 4px;
    }
    
    .mtwpgr-video-popup-content {
        padding: 20px;
    }
}