/* =============================================
   Fale Hafez – Public FAL_PAGE Shortcode Styles
   Unique prefix: fh-falpage-
   =============================================
   Fale Hafez – HAFEZ_RANDOM Shortcode Styles
   Unique prefix: fh-random-
   ============================================= */

/* =============================================
   HAFEZ_RANDOM – poem container + فال جدید btn
   ============================================= */

.fh-random-wrapper {
    font-family: 'Vazirmatn', 'Tahoma', 'B Nazanin', Arial, sans-serif;
    direction: rtl;
    text-align: center;
    margin: 24px auto;
    max-width: 700px;
    padding: 0 16px;
}

/* Decorative frame */
.fh-random-frame {
    background: linear-gradient(160deg, #fffdf5 0%, #fff 100%);
    border: 1px solid #d4a017;
    border-radius: 14px;
    padding: 30px 36px 24px;
    box-shadow:
        0 4px 24px rgba(180,130,40,.12),
        inset 0 0 0 4px rgba(212,160,23,.08);
    position: relative;
    margin-bottom: 20px;
}

/* Corner ornament badges */
.fh-random-frame::before,
.fh-random-frame::after {
    content: '✦';
    position: absolute;
    color: #d4a017;
    font-size: 1rem;
    opacity: .5;
}
.fh-random-frame::before { top: 8px;  right: 12px; }
.fh-random-frame::after  { bottom: 8px; left: 12px; }

/* Ornament row (top & bottom) */
.fh-random-ornament-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.fh-random-ornament-row-bottom {
    margin-bottom: 0;
    margin-top: 18px;
}
.fh-random-ornament {
    color: #d4a017;
    font-size: 1rem;
    flex-shrink: 0;
}
.fh-random-ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a01780, transparent);
    max-width: 160px;
}

/* Poem content */
.fh-random-poem-area {
    color: #1e1e1e;
    font-size: 1.12rem;
    line-height: 2.1;
    text-align: center;
    transition: opacity .3s ease;
    min-height: 60px;
}

.fh-random-poem-area p,
.fh-random-poem-area div {
    margin: 0 0 4px;
}

/* Fade transitions */
.fh-random-poem-fade {
    opacity: 0;
    transition: opacity .25s ease;
}
.fh-random-poem-fadein {
    animation: fhRandomFadeIn .45s ease forwards;
}
@keyframes fhRandomFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Error message */
.fh-random-error {
    color: #c0392b;
    font-size: 0.88rem;
    margin-top: 10px;
}

/* ---- فال جدید button ---- */
.fh-random-actions {
    text-align: center;
}

.fh-random-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #b5451b 0%, #d4a017 60%, #b5451b 100%);
    color: #fff;
    font-family: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(181,69,27,.30);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.fh-random-new-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,.18);
    transform: skewX(-20deg);
    transition: left .4s ease;
    pointer-events: none;
}

.fh-random-new-btn:hover::before { left: 110%; }

.fh-random-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(181,69,27,.40);
    filter: brightness(1.07);
}

.fh-random-new-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(181,69,27,.25);
}

.fh-random-new-btn:disabled {
    opacity: .75;
    cursor: wait;
}

/* spinning refresh icon */
.fh-random-btn-icon {
    font-size: 1.15rem;
    display: inline-block;
    line-height: 1;
}

.fh-random-spin {
    animation: fhRandomSpin .8s linear infinite;
}

@keyframes fhRandomSpin {
    to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .fh-random-frame {
        padding: 20px 16px 18px;
    }
    .fh-random-poem-area {
        font-size: 1rem;
    }
    .fh-random-new-btn {
        width: 100%;
        font-size: 0.97rem;
    }
}

.fh-falpage-wrapper {
    font-family: 'Vazirmatn', 'Tahoma', 'B Nazanin', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 24px auto;
    max-width: 820px;
    padding: 0 16px;
}

.fh-falpage-container {
    background: #fff;
    border: 1px solid #e4d5b3;
    border-radius: 12px;
    padding: 36px 40px 32px;
    box-shadow: 0 4px 24px rgba(180, 130, 40, 0.10);
    position: relative;
    overflow: hidden;
}

/* subtle top-edge colour bar */
.fh-falpage-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b5451b 0%, #d4a017 50%, #b5451b 100%);
    border-radius: 12px 12px 0 0;
}

/* ---- Title area ---- */
.fh-falpage-title-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fh-falpage-title {
    color: #c0392b;
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 0.01em;
}

.fh-falpage-ornament {
    color: #d4a017;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ---- Subtitle ---- */
.fh-falpage-subtitle {
    text-align: center;
    color: #7a6a50;
    font-size: 0.95rem;
    margin: 4px 0 0;
}

/* ---- Divider ---- */
.fh-falpage-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d4a017 30%, #d4a017 70%, transparent 100%);
    margin: 18px 0;
    border: none;
}

/* ---- Body ---- */
.fh-falpage-body {
    margin-bottom: 10px;
}

.fh-falpage-text {
    color: #2c2c2c;
    font-size: 1.05rem;
    line-height: 2;
    text-align: justify;
    margin: 0;
}

.fh-falpage-text strong {
    color: #333;
    font-weight: 700;
    font-style: italic;
}

/* ---- CTA Button ---- */
.fh-falpage-cta-area {
    text-align: center;
    margin-top: 28px;
}

.fh-falpage-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #e8c84a 0%, #c8961a 40%, #e8c84a 100%);
    color: #3b2000;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    border: 2px solid #a07010;
    box-shadow: 0 3px 12px rgba(180, 130, 20, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    min-width: 260px;
}

.fh-falpage-cta-link::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.22);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
    pointer-events: none;
}

.fh-falpage-cta-link:hover::before {
    left: 110%;
}

.fh-falpage-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 130, 20, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.05);
    color: #2a1500;
    text-decoration: none;
}

.fh-falpage-cta-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(180, 130, 20, 0.3);
}

/* decorative Hafez silhouette shape inside button */
.fh-falpage-cta-deco {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    border: 2px solid rgba(180,120,0,0.4);
    flex-shrink: 0;
    position: relative;
}

.fh-falpage-cta-deco::after {
    content: '☯';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 16px;
    color: rgba(80,40,0,0.6);
    line-height: 1;
}

.fh-falpage-cta-text {
    position: relative;
    z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .fh-falpage-container {
        padding: 24px 18px 22px;
    }
    .fh-falpage-title {
        font-size: 1.2rem;
    }
    .fh-falpage-text {
        font-size: 0.97rem;
    }
    .fh-falpage-cta-link {
        min-width: 0;
        width: 100%;
        font-size: 0.98rem;
        padding: 12px 16px;
    }
}
