/* mesora-popup.css */
/* Version: 1.0.0 */
/* Styling for clickable mesora circle popups */

/* Clickable mesora circle styling */
.mesora-circle.clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0 2px;
    border-radius: 2px;
}

.mesora-circle.clickable:hover {
    background-color: rgba(254, 246, 187, 0.5);
    transform: scale(1.2);
}

.mesora-circle.clickable.active {
    background-color: #FEF6BB;
}

/* Popup container */
.mesora-popup {
    position: absolute;
    width: 300px;
    max-width: 90vw;
    background: white;
    border: 2px solid #DCA;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup header */
.mesora-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(to bottom, #FEF6BB, #F5E9A0);
    border-bottom: 1px solid #DCA;
    border-radius: 6px 6px 0 0;
}

.mesora-popup-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    direction: rtl;
    text-align: right;
}

.mesora-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mesora-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.mesora-popup-close:active {
    transform: scale(0.9);
}

/* Popup content */
.mesora-popup-content {
    padding: 15px;
    font-family: 'SBL Hebrew', 'Ezra SIL', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Scrollbar styling for popup content */
.mesora-popup-content::-webkit-scrollbar {
    width: 8px;
}

.mesora-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mesora-popup-content::-webkit-scrollbar-thumb {
    background: #DCA;
    border-radius: 4px;
}

.mesora-popup-content::-webkit-scrollbar-thumb:hover {
    background: #C9A53F;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mesora-popup {
        width: 90vw;
        max-width: none;
    }

    .mesora-popup-content {
        font-size: 13px;
        max-height: 250px;
    }
}

/* Print styles - hide popups when printing */
@media print {
    .mesora-popup {
        display: none !important;
    }

    .mesora-circle.clickable {
        cursor: default;
        background: none;
    }
}
