@import url('/templates/_shared/fonts/fonts.css');

/* =====================================================================
   BusinessCard_v3 — «استودیو پرتره» / Full-bleed portrait + frosted sheet
   Cinematic, image-forward. Neutral film palette + warm amber accent.
   ===================================================================== */

.bc3-root {
    --bc3-ink: #1a1714;
    --bc3-paper: #f4f1ec;
    --bc3-sheet: rgba(28, 24, 21, 0.62);
    --bc3-sheet-solid: #1c1815;
    --bc3-line: rgba(255, 255, 255, 0.12);
    --bc3-text: #f3ede4;
    --bc3-muted: rgba(243, 237, 228, 0.62);
    --bc3-accent: #d9a066;       /* warm film amber */
    --bc3-accent-2: #c98850;
    --bc3-radius: 26px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--bc3-text);
    direction: rtl;
    background: #0e0c0b;
    -webkit-font-smoothing: antialiased;
}

.bc3-root * { box-sizing: border-box; }

/* device frame — locks the card to a tall portrait canvas */
.bc3-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    height: clamp(620px, 92vh, 920px);
    overflow: hidden;
    border-radius: var(--bc3-radius);
    background: #0e0c0b;
    box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04);
}

/* ===== Stage : full-bleed portrait ===== */
.bc3-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bc3-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.04);
    transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s ease;
    filter: saturate(.92) contrast(1.04);
}

.bc3-stage-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14,12,11,.34) 0%, rgba(14,12,11,0) 26%, rgba(14,12,11,0) 48%, rgba(14,12,11,.82) 100%);
    pointer-events: none;
}

/* subtle film grain via repeating gradients (no external asset) */
.bc3-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    mix-blend-mode: overlay;
    background-image:
        repeating-radial-gradient(rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(115deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
    background-size: 4px 4px, 6px 6px;
}

/* floating top bar */
.bc3-topbar {
    position: absolute;
    top: 16px; left: 18px; right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
    pointer-events: none;
}

.bc3-mono {
    font-family: 'Space Mono', 'Vazirmatn', monospace;
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    padding: .35em .8em;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0,0,0,.18);
}

.bc3-frameno {
    font-family: 'Space Mono', monospace;
    font-size: .62rem;
    letter-spacing: .12em;
    color: var(--bc3-accent);
    display: inline-flex;
    align-items: center;
    gap: .4em;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* swipe affordance */
.bc3-swipe {
    position: absolute;
    bottom: calc(var(--bc3-sheet-h, 46%) + 14px);
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
    cursor: pointer;
    transition: opacity .4s ease;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.bc3-swipe-grip {
    width: 38px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.7);
    animation: bc3-bob 1.8s ease-in-out infinite;
}

.bc3-swipe-hint {
    font-size: .68rem;
    color: rgba(255,255,255,.82);
    letter-spacing: .04em;
}

@keyframes bc3-bob {
    0%,100% { transform: translateY(0); opacity: .65; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* ===== Frosted bottom sheet ===== */
.bc3-sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: var(--bc3-sheet-h, 46%);
    z-index: 6;
    padding: 6px 20px 26px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    background: var(--bc3-sheet);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border-top: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 -18px 50px rgba(0,0,0,.4);
    transition: height .55s cubic-bezier(.2,.8,.2,1);
    scrollbar-width: none;
}
.bc3-sheet::-webkit-scrollbar { width: 0; height: 0; }

/* expanded state */
.bc3-frame.bc3-expanded { --bc3-sheet-h: 90%; }
.bc3-frame.bc3-expanded .bc3-portrait { transform: scale(1.1); filter: saturate(.8) contrast(1.05) brightness(.82); }
.bc3-frame.bc3-expanded .bc3-swipe { opacity: 0; pointer-events: none; }

.bc3-handle {
    width: 46px; height: 5px;
    border-radius: 5px;
    background: rgba(255,255,255,.34);
    margin: 6px auto 16px;
    cursor: pointer;
    flex: none;
}

/* identity head */
.bc3-id {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bc3-id-photo {
    flex: none;
    width: 64px; height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.22);
    box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.bc3-id-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bc3-id-text { min-width: 0; }

.bc3-name {
    margin: 0;
    font-size: 1.46rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
}

.bc3-role {
    margin-top: 3px;
    font-size: .86rem;
    color: var(--bc3-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.bc3-role-sep { color: var(--bc3-accent); }
.bc3-org { color: var(--bc3-accent); font-weight: 700; }

.bc3-tagline {
    margin: 16px 0 0;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.7;
    color: #f7f2ea;
}

.bc3-bio {
    margin: 8px 0 0;
    font-size: .86rem;
    line-height: 1.95;
    color: var(--bc3-muted);
}
.bc3-bio p { margin: 0 0 .5em; }

/* meta chips */
.bc3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bc3-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .5em .9em;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bc3-text);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.bc3-chip i { color: var(--bc3-accent); font-size: .82rem; }
.bc3-chip:hover { background: rgba(255,255,255,.16); border-color: rgba(217,160,102,.5); transform: translateY(-1px); color: #fff; }

/* CTAs */
.bc3-cta {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bc3-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: .92em 1em;
    border-radius: 16px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    font-family: inherit;
}

.bc3-btn-primary {
    color: #1a130c;
    background: linear-gradient(135deg, var(--bc3-accent), var(--bc3-accent-2));
    box-shadow: 0 12px 28px rgba(201,136,80,.42);
}
.bc3-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201,136,80,.5); }

.bc3-btn-ghost {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
}
.bc3-btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* highlights */
.bc3-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.bc3-hl {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    transition: background .2s ease, border-color .2s ease;
}
.bc3-hl:hover { background: rgba(255,255,255,.09); border-color: rgba(217,160,102,.4); }

.bc3-hl-ico {
    flex: none;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bc3-accent);
    background: rgba(217,160,102,.13);
    border: 1px solid rgba(217,160,102,.28);
    font-size: 1rem;
}

.bc3-hl-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bc3-hl-title { font-weight: 700; font-size: .9rem; color: #fff; }
.bc3-hl-text { font-size: .78rem; line-height: 1.7; color: var(--bc3-muted); }

/* section heads */
.bc3-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 13px;
}
.bc3-section-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.bc3-section-title i { color: var(--bc3-accent); }
.bc3-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.18), transparent);
}

/* gallery film strip — horizontal scroll */
.bc3-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bc3-strip::-webkit-scrollbar { height: 0; }

.bc3-frame-shot {
    flex: none;
    width: 150px;
    margin: 0;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    background: #000;
}
.bc3-frame-shot img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.bc3-frame-shot:hover img { transform: scale(1.06); }
.bc3-frame-shot figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 10px 8px;
    font-size: .72rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
}

/* links — horizontal scroll strip */
.bc3-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.bc3-links::-webkit-scrollbar { height: 0; }

.bc3-link {
    flex: none;
    min-width: 200px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--bc3-text);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.bc3-link:hover { background: rgba(255,255,255,.12); border-color: rgba(217,160,102,.45); transform: translateY(-2px); color: #fff; }

.bc3-link-ico {
    flex: none;
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--bc3-accent);
    background: rgba(217,160,102,.14);
    font-size: .92rem;
}
.bc3-link-title { flex: 1; font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc3-link-arrow { color: var(--bc3-muted); font-size: .72rem; }

/* socials */
.bc3-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 26px;
    justify-content: center;
}

.bc3-social {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--bc3-text);
    font-size: 1.05rem;
    text-decoration: none;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.bc3-social:hover {
    transform: translateY(-3px);
    color: #1a130c;
    background: linear-gradient(135deg, var(--bc3-accent), var(--bc3-accent-2));
    border-color: transparent;
}

/* footer */
.bc3-foot {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: .76rem;
    color: var(--bc3-muted);
    text-align: center;
}
.bc3-foot-dot { color: var(--bc3-accent); }
.bc3-foot .bc3-mono { border: none; background: none; padding: 0; backdrop-filter: none; font-size: .6rem; }

/* desktop niceties */
@media (min-width: 520px) {
    .bc3-frame { margin: 22px auto; }
}
