/* style-panchang.css - Minimal Panchang Popup with Labels */

/* Full screen overlay */
.panchang-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    border-radius: 12px;
    /* display: none; */

    /* Smooth fade-in/out */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
}

.panchang-popup-overlay.active {
    display: block;

    /* Smooth fade-in */
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.panchang-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;

    background-image: url('../images/panchang-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Red close button */
.close-panchang-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc362e;
    color: #eaeaea;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    line-height: 1; /* safari fix */
}

/* Header */
.panchang-header {
    background: #f0eacba1; /* #f0eacb; */
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Content */
.panchang-content {
    padding: 8px 15px;
    max-height: 70vh;
    overflow-y: auto;
    /* background-color: #faf8ee; */
}

/* Day data */
.panchang-day-data {
    display: none;
}

.panchang-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    align-items: flex-start;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right,transparent,rgba(0,0,0,0.2),transparent) 1;
}

.panchang-item:last-child {
    border-bottom: none;
}

.panchang-label {
    font-weight: bold;
    color: #333;
    min-width: 120px;
    font-size: 14px;
}

.panchang-value {
    flex: 1;
    text-align: left;
    color: #555;
    font-size: 14px;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .panchang-popup-container {
        width: 95%;
        max-height: 90vh;
        top: 55%;
    }

    .panchang-header {
        padding: 5px;
    }

    .close-panchang-popup {
        width: 22px;
        height: 22px;
        top: 8px
    }

    .panchang-item {
        padding: 2px 0;
    }
    
    .panchang-label {
        min-width: auto;
        margin-bottom: 4px;
        font-size: 13px;;
        width: 55px;
    }
    
    .panchang-value {
        text-align: left;
        margin-left: 0;
        font-size: 13px;
    }
}