/**
 * Styles untuk popup upgrade
 * File ini harus di-include pada halaman yang menggunakan popup upgrade
 */

/* Styling untuk konten terkunci */
.vault-item.locked-content .thumbnail {
    position: relative;
    filter: brightness(0.7);
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon svg {
    color: white;
}

/* Styling untuk popup umum */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

.popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_content-wrapper {
    background: white;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.popup_content-wrapper.small-popup {
    width: 600px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 2;
}

.popup-content {
    padding: 30px;
}

/* Styling untuk popup upgrade */
.popup-upgrade .plan-option {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.popup-upgrade .plan-option h3 {
    background-color: #f5f5f5;
    padding: 10px 15px;
    margin: 0;
    font-size: 18px;
}

.popup-upgrade .plan-option-description {
    display: flex;
    padding: 15px;
    justify-content: space-between;
}

.popup-upgrade .plan-option-description > div:first-child {
    flex: 1;
    padding-right: 15px;
}

.popup-upgrade .options {
    margin-top: 10px;
}

.popup-upgrade .options label {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
}

.popup-upgrade .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.popup-upgrade .options input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.popup-upgrade .options input:checked ~ .checkmark {
    background-color: #2196F3;
    border-color: #2196F3;
}

.popup-upgrade .plan-price {
    text-align: center;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-upgrade .plan-price h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
}

.popup-upgrade .upgrade-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.popup-upgrade .btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.popup-upgrade .exit-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
}

.popup-upgrade .popup-title {
    margin-bottom: 5px;
}

.popup-upgrade .popup-subtitle {
    margin-top: 0;
    margin-bottom: 15px;
    color: #3498db;
}

.popup-upgrade .popup-description {
    margin-bottom: 20px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .popup-upgrade .plan-option-description {
        flex-direction: column;
    }
    
    .popup-upgrade .plan-option-description > div:first-child {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .popup-upgrade .plan-price {
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
}