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

/* ====================================================================
   BusinessCard_v8 — Corporate ID-Badge / Lanyard
   Hanging employee ID card: lanyard strap + clip, glossy badge body,
   company color stripe, photo, credential rows, decorative barcode,
   badge-shaped Save-Contact action. Corporate navy + steel.
   ==================================================================== */

.bc8-root {
    --navy: #0d1b2a;
    --navy-2: #14253b;
    --steel: #415a77;
    --steel-2: #5a7799;
    --ink: #1b263b;
    --line: #d7dee8;
    --paper: #ffffff;
    --paper-2: #f4f7fb;
    --muted: #6b7a90;
    --accent: #2f6fed;
    --accent-2: #1d4ed8;
    --strap: #16263c;

    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    color: var(--ink);
    background:
        radial-gradient(1100px 540px at 50% -8%, rgba(47,111,237,.16), transparent 60%),
        linear-gradient(170deg, #eef2f8 0%, #dbe3ef 48%, #c8d3e3 100%);
    min-height: 100vh;
    padding: 0 16px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.bc8-root *,
.bc8-root *::before,
.bc8-root *::after { box-sizing: border-box; }

/* ===================== Lanyard ===================== */
.bc8-lanyard {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 84px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.bc8-strap {
    position: absolute;
    top: 0;
    width: 26px;
    height: 78px;
    background:
        repeating-linear-gradient(180deg, var(--navy) 0 11px, var(--navy-2) 11px 22px),
        linear-gradient(90deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 4px 10px rgba(13,27,42,.25);
}

.bc8-strap-l {
    right: calc(50% - 4px);
    transform-origin: top right;
    transform: rotate(15deg);
    border-radius: 4px 4px 0 0;
}

.bc8-strap-r {
    left: calc(50% - 4px);
    transform-origin: top left;
    transform: rotate(-15deg);
    border-radius: 4px 4px 0 0;
}

/* metal clip joining the two strap ends */
.bc8-clip {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(180deg, #e9edf3 0%, #aab4c2 48%, #7f8b9c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85),
        inset 0 -2px 4px rgba(0,0,0,.25),
        0 4px 8px rgba(13,27,42,.28);
    z-index: 4;
}

.bc8-clip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #cdd5df, #8b97a8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 4px rgba(0,0,0,.25);
}

/* ===================== Sway wrapper ===================== */
.bc8-sway {
    transform-origin: top center;
    animation: bc8-sway 5.5s ease-in-out infinite;
    margin-top: -6px;
}

@keyframes bc8-sway {
    0%, 100% { transform: rotate(-1.6deg); }
    50%      { transform: rotate(1.6deg); }
}

/* ===================== Badge body ===================== */
.bc8-badge {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow:
        0 28px 60px rgba(13,27,42,.30),
        0 6px 18px rgba(13,27,42,.18),
        inset 0 1px 0 rgba(255,255,255,.9);
    overflow: hidden;
    isolation: isolate;
}

/* glossy sheen sweeping across the laminated surface */
.bc8-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 60%);
    transform: translateX(-30%);
    pointer-events: none;
    z-index: 6;
    animation: bc8-gloss 6.5s ease-in-out infinite;
}

@keyframes bc8-gloss {
    0%, 70%, 100% { transform: translateX(-120%); opacity: 0; }
    78% { opacity: .9; }
    88% { transform: translateX(120%); opacity: 0; }
}

/* punch hole at the top */
.bc8-hole {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 14px;
    border-radius: 50px;
    background: #0d1b2a;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.7);
    z-index: 7;
}

/* ===================== Company bar ===================== */
.bc8-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 40px 22px 16px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--steel) 130%);
    color: #fff;
}

.bc8-bar-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), #6aa0ff);
    box-shadow: 0 0 0 4px rgba(47,111,237,.22);
    flex: 0 0 auto;
}

.bc8-bar-co {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: .2px;
}

.bc8-bar-tag {
    margin-inline-start: auto;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bcd0f0;
    border: 1px solid rgba(188,208,240,.4);
    border-radius: 50px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* ===================== Accent band ===================== */
.bc8-band {
    position: relative;
    height: 86px;
    overflow: hidden;
}

.bc8-band-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.85) brightness(.85);
}

.bc8-band-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,.35), rgba(13,27,42,.7));
}

/* ===================== Identity ===================== */
.bc8-id {
    position: relative;
    padding: 0 24px 22px;
    text-align: center;
}

.bc8-photo-wrap {
    width: 124px;
    height: 124px;
    margin: -62px auto 14px;
    border-radius: 16px;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent), var(--navy));
    box-shadow: 0 14px 30px rgba(13,27,42,.32);
    position: relative;
    z-index: 5;
}

.bc8-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    display: block;
}

.bc8-name {
    font-size: 1.52rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--navy);
    letter-spacing: -.2px;
}

.bc8-title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--steel);
    margin-bottom: 4px;
}

.bc8-tagline {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto 14px;
}

/* credential rows */
.bc8-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 14px auto 0;
    max-width: 320px;
    text-align: right;
}

.bc8-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 11px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

a.bc8-row:hover {
    transform: translateX(-3px);
    border-color: var(--accent);
    background: #fff;
}

.bc8-row i {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--steel));
    color: #fff;
    font-size: .82rem;
}

.bc8-row span[dir="ltr"],
.bc8-row > span { letter-spacing: .2px; }

.bc8-bio {
    margin: 16px auto 0;
    max-width: 340px;
    font-size: .85rem;
    line-height: 1.95;
    color: #4a586b;
    text-align: justify;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.bc8-bio p { margin: 0 0 .6em; }

/* ===================== Sections ===================== */
.bc8-section {
    padding: 6px 24px 18px;
}

.bc8-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 13px;
}

.bc8-section-title i {
    color: var(--accent);
    font-size: .9rem;
}

.bc8-section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* highlights */
.bc8-highlights {
    display: grid;
    gap: 10px;
}

.bc8-hcard {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    background: linear-gradient(180deg, #fff, var(--paper-2));
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(13,27,42,.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.bc8-hcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(13,27,42,.12);
}

.bc8-hicon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(47,111,237,.32);
}

.bc8-htxt { display: flex; flex-direction: column; gap: 3px; }
.bc8-htxt strong { font-size: .94rem; color: var(--navy); font-weight: 800; }
.bc8-htxt span { font-size: .8rem; color: var(--muted); line-height: 1.7; }

/* links */
.bc8-links {
    display: grid;
    gap: 9px;
    padding: 0 24px 6px;
}

.bc8-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.bc8-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(120deg, var(--navy), var(--steel));
    box-shadow: 0 12px 24px rgba(13,27,42,.3);
    color: #fff;
}

.bc8-link-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.12);
    font-size: .9rem;
    flex: 0 0 auto;
}

.bc8-link-title { flex: 1; }
.bc8-link-arrow { opacity: .55; font-size: .8rem; }

/* gallery */
.bc8-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bc8-gitem {
    position: relative;
    margin: 0;
    border-radius: 13px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(13,27,42,.08);
}

.bc8-gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bc8-gitem:hover img { transform: scale(1.08); }

.bc8-gitem figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 11px 8px;
    font-size: .73rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(0deg, rgba(13,27,42,.85), transparent);
}

/* socials */
.bc8-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    padding: 16px 24px 8px;
}

.bc8-social {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.bc8-social:hover {
    transform: translateY(-4px) rotate(-4deg);
    background: linear-gradient(135deg, var(--accent), var(--navy));
    color: #fff;
    box-shadow: 0 12px 22px rgba(47,111,237,.34);
}

/* ===================== Barcode strip ===================== */
.bc8-barcode {
    margin: 14px 24px 4px;
    padding: 12px 14px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

.bc8-barcode svg {
    width: 100%;
    height: 44px;
    display: block;
}

.bc8-barcode-id {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--steel);
    font-family: 'Vazirmatn', Tahoma, monospace;
}

/* ===================== Actions ===================== */
.bc8-actions {
    display: flex;
    gap: 10px;
    padding: 14px 24px 4px;
}

.bc8-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 14px;
    border-radius: 13px;
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    font-family: inherit;
}

.bc8-action-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(47,111,237,.36);
}

.bc8-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(47,111,237,.46);
}

.bc8-action--done {
    background: linear-gradient(120deg, #10b981, #047857) !important;
    box-shadow: 0 12px 26px rgba(16,185,129,.4) !important;
}

.bc8-action-ghost {
    color: var(--navy);
    background: var(--paper-2);
    border: 1.5px solid var(--line);
}

.bc8-action-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--navy);
    color: var(--navy);
}

/* ===================== Footer ===================== */
.bc8-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px 22px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
}

.bc8-foot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--steel);
    opacity: .55;
}

/* ===================== Responsive ===================== */
@media (max-width: 380px) {
    .bc8-name { font-size: 1.34rem; }
    .bc8-bar { padding-inline: 18px; }
    .bc8-id { padding-inline: 18px; }
    .bc8-actions { flex-direction: column; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .bc8-sway, .bc8-badge::before { animation: none; }
}
