/* ==========================================================
   TODAY PANCHANG
   Page Specific Styles
   Ek Rashtra - Ek Panchang
   ========================================================== */


/* ==========================================================
   LOCATION CONTAINER
   ========================================================== */

.location-container {

    min-height: 70vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px 20px;

}


/* ==========================================================
   LOCATION BOX
   ========================================================== */

.location-box {

    width: 100%;

    max-width: 600px;

    background: var(--card);

    padding: 40px 30px;

    border-radius: 15px;

    border: 1px solid var(--border);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.10);

    text-align: center;

}


/* ==========================================================
   LOCATION ICON
   ========================================================== */

.location-icon {

    font-size: 50px;

    margin-bottom: 10px;

}


/* ==========================================================
   PAGE TITLE
   ========================================================== */

.location-title {

    color: var(--primary);

    font-size: 30px;

    font-weight: 600;

    margin-bottom: 25px;

}


/* ==========================================================
   MESSAGE
   ========================================================== */

.location-message {

    font-size: 18px;

    color: #555;

    line-height: 1.6;

    margin-bottom: 20px;

}


/* ==========================================================
   LOCATION STATUS
   ========================================================== */

.location-status {

    font-size: 15px;

    color: var(--primary);

    margin-top: 15px;

    line-height: 1.6;

}


/* ==========================================================
   LOADING
   ========================================================== */

.loading {

    width: 35px;

    height: 35px;

    border: 4px solid #eee;

    border-top: 4px solid var(--primary);

    border-radius: 50%;

    animation:
        today-spin 1s linear infinite;

    margin: 20px auto;

}


@keyframes today-spin {

    0% {

        transform: rotate(0deg);

    }

    100% {

        transform: rotate(360deg);

    }

}


/* ==========================================================
   RETRY BUTTON
   ========================================================== */

.retry-button {

    margin-top: 15px;

    padding: 12px 24px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;

}


.retry-button:hover {

    background: var(--secondary);

    color: #000;

}


/* ==========================================================
   LOCATION OPTION BUTTONS
   ========================================================== */

.location-button {

    width: 100%;

    margin-top: 12px;

    padding: 16px 20px;

    text-align: left;

    background: var(--card);

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;

}


.location-button:hover {

    background: #FFF3E8;

    border-color: var(--primary);

    transform: translateY(-1px);

}


.location-button .icon {

    font-size: 24px;

    margin-right: 10px;

}


.location-button strong {

    font-weight: 600;

}


.location-button small {

    display: inline-block;

    margin-top: 5px;

    color: #666;

    line-height: 1.5;

}


/* ==========================================================
   CITY SECTION
   ========================================================== */

.city-section {

    display: none;

    margin-top: 20px;

    text-align: left;

}


/* ==========================================================
   MANUAL LATITUDE / LONGITUDE SECTION
   ========================================================== */

.manual-fields {

    display: none;

    margin-top: 20px;

    text-align: left;

}


/* ==========================================================
   FORM LABELS
   ========================================================== */

.city-section label,
.manual-fields label {

    display: block;

    margin-top: 12px;

    margin-bottom: 6px;

    font-weight: 600;

    color: var(--primary);

}


/* ==========================================================
   CITY SELECT
   ========================================================== */

.city-select {

    width: 100%;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 7px;

    font-size: 16px;

    background: var(--card);

    color: var(--text);

    outline: none;

}


/* ==========================================================
   MANUAL INPUTS
   ========================================================== */

.manual-fields input {

    width: 100%;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 7px;

    font-size: 16px;

    background: var(--card);

    color: var(--text);

    outline: none;

}


/* ==========================================================
   INPUT FOCUS
   ========================================================== */

.city-select:focus,
.manual-fields input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 2px rgba(110, 27, 42, 0.10);

}


/* ==========================================================
   USE LOCATION / CITY BUTTON
   ========================================================== */

.use-location-button {

    width: 100%;

    padding: 13px;

    margin-top: 20px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 17px;

    cursor: pointer;

    transition: 0.3s;

}


.use-location-button:hover {

    background: var(--secondary);

    color: #000;

}


/* ==========================================================
   BACK BUTTON
   ========================================================== */

.back-button {

    display: inline-block;

    margin-top: 20px;

    color: var(--primary);

    text-decoration: none;

    font-size: 15px;

}


.back-button:hover {

    color: var(--secondary);

    text-decoration: underline;

}


/* ==========================================================
   ERROR MESSAGE
   ========================================================== */

.error-message {

    color: #a00000;

    margin-top: 15px;

    font-size: 15px;

    line-height: 1.6;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {

    .location-container {

        padding: 25px 15px;

    }


    .location-box {

        padding: 30px 20px;

        border-radius: 12px;

    }


    .location-title {

        font-size: 26px;

    }


    .location-message {

        font-size: 16px;

    }


    .location-button {

        font-size: 16px;

        padding: 15px;

    }


    .location-button .icon {

        font-size: 22px;

    }

}

/* ==========================================================
   CHANGE LOCATION / CHANGE DATE BUTTONS
   ========================================================== */

.change-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 10px 16px;
    margin: 0 8px 10px 0;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.2s;
}

.change-location-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-1px);
}

.change-location-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.formula-view-btn {
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
    padding: 8px 14px;
    background: #741b2b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-sizing: border-box;
}

.formula-view-btn:hover {
    background: #5c1421;
}