/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modal Styles */
.ppb-password-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background for the modal */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.ppb-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ppb-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ppb-close-btn:hover {
    color: #000;
}

.ppb-password-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ppb-password-form button {
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.ppb-password-form button:hover {
    background-color: #005f8f;
}

/* Overlay for Modal Background */
.ppb-content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Light overlay */
    z-index: 998;
}

/* Error Message Style */
.ppb-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Styles for Posts Content */
.ppb-posts-overlay {
    position: relative;
    z-index: 998;
    opacity: 0.5;
    pointer-events: none;
}

.ppb-posts-overlay img,
.ppb-posts-overlay h2 {
    filter: grayscale(100%) blur(2px);
    pointer-events: none;
}

/* Style for Password Protection Popup */
.ppb-password-modal h2 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.ppb-password-modal p {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

/* Centering the Modal */
.ppb-password-modal,
.ppb-password-modal .ppb-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Modal for Archive Page */
.ppb-archive-password-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ppb-archive-password-modal .ppb-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    text-align: center;
    position: relative;
}

.ppb-archive-password-modal .ppb-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}

.ppb-archive-password-modal .ppb-password-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ppb-archive-password-modal .ppb-password-form button {
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.ppb-archive-password-modal .ppb-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Success Message after Correct Password */
.ppb-success {
    color: green;
    font-size: 16px;
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ppb-modal-content {
        width: 90%;
    }

    .ppb-password-form button {
        font-size: 14px;
    }

    .ppb-password-form input[type="password"] {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ppb-modal-content {
        width: 90%;
    }

    .ppb-password-form input[type="password"],
    .ppb-password-form button {
        font-size: 14px;
    }
}
