/* ═══════════════════════════════════════
   Farada — small additions for real data
   The original styles were built for icon placeholders; these rules let
   uploaded screenshots sit in the same boxes. Nothing here restyles the original.
   ═══════════════════════════════════════ */

/* Card cover without a screenshot: show the category icon like the original placeholders */
.fpp-item-cover-icon {
    font-size: 56px;
    opacity: .3;
}

/* Detail hero cover with a real screenshot */
.pd-cover-box.pd-cover-has-image {
    overflow: hidden;
    padding: 0;
}

.pd-cover-box .pd-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery thumbnails */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item:focus-visible,
.fpp-item:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
}

/* Lightbox with an image instead of an icon */
.lightbox-content:has(img) {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    display: block;
}

/* Team member photo inside the original avatar tile */
.fab-team-avatar {
    overflow: hidden;
}

.fab-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Server-side form messages in the original contact form style */
.fct-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.9;
}

.fct-alert i {
    margin-top: 4px;
}

.fct-alert strong {
    display: block;
}

.fct-alert-success {
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .25);
    color: #059669;
}

.fct-alert-error {
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .22);
    color: #dc2626;
}

.fct-alert-error.validation-summary-valid {
    display: none;
}

.fct-alert-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fct-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ef4444;
}

.fct-error:empty {
    display: none;
}

.fct-input.input-validation-error,
.fct-textarea.input-validation-error,
.fct-select.input-validation-error {
    border-color: rgba(239, 68, 68, .6);
}

.fct-select {
    appearance: none;
    cursor: pointer;
}

/* Legal / long text pages */
.fa-legal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    color: var(--body);
    font-size: 14px;
    line-height: 2.1;
}

.fa-legal h2 {
    color: var(--heading);
    font-size: 17px;
    font-weight: 800;
    margin: 26px 0 8px;
}

.fa-legal h2:first-child {
    margin-top: 0;
}

.fa-legal ul {
    list-style: disc;
    padding-right: 20px;
}

.fa-legal a {
    color: #6366f1;
    font-weight: 600;
}

.fa-legal-note {
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
}

/* Centered status pages (thanks / errors) */
.fa-status-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 18px 40px rgba(99, 102, 241, .28);
}

.fa-status-icon.is-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 18px 40px rgba(16, 185, 129, .28);
}

.fa-status-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 10px;
}

.fa-tracking {
    display: inline-block;
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--heading);
    background: var(--surface);
    border: 1.5px dashed rgba(99, 102, 241, .4);
    border-radius: 12px;
    padding: 10px 22px;
    margin: 8px 0 14px;
    user-select: all;
}

.fa-status-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

/* Persian category names: the original labels use Latin-style letter spacing, which breaks Persian letter joining */
.fa-label {
    letter-spacing: 0;
    text-transform: none;
    font-family: inherit;
}

/* ── Blog: real cover images and author photos ── */
.fbg-item-cover .fbg-cover-img,
.fbg-featured-cover .fbg-cover-img,
.fbg-article-cover .fbg-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fbg-item-cover .fbg-item-badges,
.fbg-featured-cover > span {
    position: relative;
    z-index: 2;
}

.fbg-article-cover.fbg-cover-has-image {
    background: var(--surface2);
}

.fa-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.fbg-author-avatar,
.fbg-author-bio-avatar,
.fbg-side-author-avatar {
    overflow: hidden;
}

.fbg-article-content img {
    cursor: zoom-in;
}

.fbg-article-cat,
.fbg-article-tag {
    text-decoration: none;
}

.fa-reply-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(99, 102, 241, .07);
    color: var(--body);
    font-size: 13px;
}

.fa-reply-note[hidden] {
    display: none;
}

.fa-reply-note button {
    margin-inline-start: auto;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    background: none;
    border: 0;
    cursor: pointer;
}

.fbg-item-title a {
    color: inherit;
    text-decoration: none;
}
