/* =========================================
   HAFEZ FALL
   ========================================= */

.hafez-fall-page {
    direction: rtl;
    width: 100%;
    padding: 45px 15px 70px;
    box-sizing: border-box;
    font-family: inherit;
}


.hafez-fall-container {
    width: min(920px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================
   Header
   ========================================= */

.hafez-fall-header {
    text-align: center;
    margin-bottom: 30px;
}


.hafez-fall-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 31px;

    border: 1px solid rgba(130, 95, 40, 0.25);

    background: rgba(180, 145, 75, 0.08);
}


.hafez-fall-header h1 {
    margin: 0 0 10px;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.5;
}


.hafez-fall-header p {
    margin: 0 auto;

    max-width: 680px;

    font-size: 16px;
    line-height: 2;

    opacity: 0.8;
}


/* =========================================
   Buttons
   ========================================= */

.hafez-main-button {
    width: 100%;
    min-height: 58px;

    border: 0;
    border-radius: 14px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 20px;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.hafez-main-button:hover {
    transform: translateY(-2px);
}


.hafez-main-button:active {
    transform: translateY(0);
}


.hafez-main-button:disabled {
    cursor: wait;
    opacity: 0.6;
}


.hafez-adab-button {
    position: relative;
}


.hafez-adab-button .arrow {
    position: absolute;
    left: 20px;

    font-size: 22px;

    transition: transform 0.3s ease;
}


.hafez-adab-button[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}


.button-icon {
    font-size: 22px;
}


/* =========================================
   Adab
   ========================================= */

.hafez-adab-section {
    margin-bottom: 18px;
}



/* =========================================
   فهرست آداب فال حافظ
   ========================================= */


.hafez-adab-list {
    width: 100%;
    margin: 18px 0;
    padding: 0 25px 0 0;

    box-sizing: border-box;

    direction: rtl;
}


.hafez-adab-item {
    display: flex;
    align-items: flex-start;

    width: 100%;

    margin: 0 0 10px;
    padding: 0;

    box-sizing: border-box;

    direction: rtl;

    line-height: 2.2;
}


.hafez-adab-number {
    flex: 0 0 30px;

    display: block;

    margin: 0 0 0 10px;
    padding: 0;

    box-sizing: border-box;

    font-family: Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;

    line-height: 2.2;

    text-align: center;

    direction: rtl;
    unicode-bidi: isolate;

    white-space: nowrap;
}


.hafez-adab-text {
    flex: 1;

    min-width: 0;

    margin: 0;
    padding: 0;

    direction: rtl;

    text-align: justify;
    text-justify: inter-word;

    line-height: 2.2;
}


.hafez-adab-note {
    margin-top: 18px;
    padding: 14px 17px;

    border-radius: 10px;

    font-size: 15px;
    line-height: 2;
}


/* =========================================
   Request
   ========================================= */

.hafez-request-section {
    margin-bottom: 20px;
}


.hafez-request-button {
    font-size: 20px;
}


/* =========================================
   Loading
   ========================================= */

.hafez-loading {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 18px;

    text-align: center;

    font-size: 15px;
}


.hafez-spinner {
    width: 23px;
    height: 23px;

    border: 3px solid rgba(128, 128, 128, 0.25);
    border-top-color: currentColor;

    border-radius: 50%;

    animation: hafez-spin 0.8s linear infinite;
}


@keyframes hafez-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   Result
   ========================================= */

.hafez-result {
    display: none;

    margin-top: 30px;
}


.hafez-result-header {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 25px;

    text-align: center;
}


.hafez-result-header h2 {
    margin: 0;

    font-size: 25px;
    line-height: 1.6;
}


.hafez-result-symbol {
    font-size: 23px;
}


/* =========================================
   Boxes
   ========================================= */

.hafez-poem-box,
.hafez-interpretation-box {
    margin-bottom: 22px;

    padding: 0;

    border-radius: 16px;

    overflow: hidden;

    border: 1px solid rgba(128, 128, 128, 0.18);

    box-sizing: border-box;
}


.hafez-box-title {
    padding: 14px 20px;

    text-align: center;

    font-size: 18px;
    font-weight: 800;

    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}


.hafez-poem {
    padding: 30px 25px;

    text-align: center;

    font-family: Tahoma, "Times New Roman", serif;

    font-size: 20px;

    line-height: 2.4;
}


.hafez-interpretation {
    padding: 26px 32px;

    box-sizing: border-box;

    direction: rtl;

    font-size: 17px;

    line-height: 2.35;

    text-align: justify;

    text-justify: inter-word;

    overflow-wrap: break-word;

    word-wrap: break-word;
}


/* =========================================
   Again Button
   ========================================= */

.hafez-again-button {
    display: block;

    margin: 10px auto 0;

    padding: 12px 25px;

    border: 1px solid rgba(128, 128, 128, 0.25);

    border-radius: 10px;

    background: transparent;

    color: #333333 !important;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.8;

    text-decoration: none;

    transition: all 0.2s ease;
}

.hafez-again-button:hover {
    color: #111111 !important;
}


.hafez-again-button:hover {
    transform: translateY(-2px);
}


/* =========================================
   Error
   ========================================= */

.hafez-error {
    display: none;

    margin-top: 20px;

    padding: 14px 18px;

    border-radius: 10px;

    text-align: center;

    font-size: 15px;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767px) {

    .hafez-fall-page {
        padding: 25px 12px 50px;
    }


    .hafez-fall-header {
        margin-bottom: 22px;
    }


    .hafez-fall-icon {
        width: 52px;
        height: 52px;

        font-size: 26px;
    }


    .hafez-fall-header h1 {
        font-size: 26px;
    }


    .hafez-fall-header p {
        font-size: 14px;
        line-height: 2;
    }


    .hafez-main-button {
        min-height: 54px;

        padding: 12px 15px;

        border-radius: 12px;

        font-size: 16px;
    }


    .hafez-adab-button .arrow {
        left: 14px;
    }


.hafez-adab-content {
    padding: 18px 18px;

    box-sizing: border-box;

    font-size: 14px;

    line-height: 2.1;

    direction: rtl;

    text-align: justify;

    text-justify: inter-word;

    overflow-wrap: break-word;
}


    .hafez-adab-content h2 {
        font-size: 19px;
    }


    .hafez-request-button {
        font-size: 17px;
    }


    .hafez-result {
        margin-top: 24px;
    }


    .hafez-result-header {
        gap: 8px;
        margin-bottom: 18px;
    }


    .hafez-result-header h2 {
        font-size: 21px;
    }


    .hafez-result-symbol {
        font-size: 18px;
    }


    .hafez-poem {
        padding: 22px 14px;

        font-size: 17px;

        line-height: 2.35;
    }

    .hafez-interpretation {
        padding: 20px 18px;
        box-sizing: border-box;
        direction: rtl;
        font-size: 15px;
        line-height: 2.15;
        text-align: justify;
        text-justify: inter-word;
        overflow-wrap: break-word;
     }


    .hafez-box-title {
        padding: 12px;
        font-size: 16px;
    }


    .hafez-again-button {
        width: 100%;
    }

    .hafez-adab-content p {
      text-align: justify;
      line-height: 2.1;
      margin: 0 0 14px;
    }


   .hafez-adab-item {
      margin-bottom: 8px;
      line-height: 2.1;
   }


   .hafez-adab-number {
      flex: 0 0 27px;
      margin-left: 7px;
     font-size: 14px;
    }


   .hafez-adab-text {
      font-size: 14px;
      line-height: 2.1;
      text-align: justify;
    }


    .hafez-adab-list {
        width: 100%;

        margin: 16px 0;

        /*
         * فرورفتگی فهرست
         */
        padding-right: 20px;
        padding-left: 0;

        box-sizing: border-box;

        direction: rtl;
    }


    .hafez-adab-item {
        display: flex;

        align-items: flex-start;

        width: 100%;

        margin-bottom: 9px;
        padding: 0;

        direction: rtl;

        line-height: 2.1;
    }


    .hafez-adab-number {
        flex: 0 0 27px;

        margin-right: 0;
        margin-left: 8px;

        padding: 0;

        font-family: Tahoma, Arial, sans-serif;

        font-size: 14px;
        font-weight: 700;

        line-height: 2.1;

        text-align: center;

        direction: rtl;
        unicode-bidi: isolate;

        white-space: nowrap;
    }


    .hafez-adab-text {
        flex: 1;

        min-width: 0;

        font-size: 14px;

        line-height: 2.1;

        direction: rtl;

        text-align: justify;
        text-justify: inter-word;
    }

}