/* ============================================================
   Resume_v7 — رزومه «داشبورد کاشی‌ای»
   Centered top identity header + dashboard tile grid.
   Emerald (#10b981) + slate, light theme, rounded tiles.
   All classes prefixed resume7- to avoid Bootstrap collision.
   ============================================================ */

.resume7-root {
    --r7-emerald: #10b981;
    --r7-emerald-d: #047857;
    --r7-emerald-l: #d1fae5;
    --r7-slate: #334155;
    --r7-slate-2: #64748b;
    --r7-ink: #0f172a;
    --r7-bg: #f1f5f9;
    --r7-tile: #ffffff;
    --r7-border: #e2e8f0;

    direction: rtl;
    text-align: right;
    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    color: var(--r7-ink);
    background:
        radial-gradient(900px 460px at 50% -120px, rgba(16,185,129,.14), transparent 70%),
        var(--r7-bg);
    padding: 30px 22px 70px;
    line-height: 1.85;
}

/* ===== Centered identity header ===== */
.resume7-header {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resume7-id-photo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--r7-emerald), var(--r7-emerald-d));
    box-shadow: 0 18px 40px rgba(16,185,129,.28);
}

.resume7-id-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    display: block;
}

.resume7-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 18px 0 4px;
    color: var(--r7-ink);
}

.resume7-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--r7-emerald-d);
}

.resume7-years {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--r7-slate);
    background: var(--r7-emerald-l);
    padding: 5px 14px;
    border-radius: 50px;
}
.resume7-years i { color: var(--r7-emerald-d); }

.resume7-chips {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.resume7-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--r7-tile);
    border: 1px solid var(--r7-border);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--r7-slate);
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.resume7-chip i { color: var(--r7-emerald); }
a.resume7-chip:hover {
    border-color: var(--r7-emerald);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16,185,129,.16);
}

.resume7-dl {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--r7-emerald), var(--r7-emerald-d));
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 12px 28px rgba(16,185,129,.34);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.resume7-dl:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16,185,129,.42); }

/* ===== Dashboard tile grid ===== */
.resume7-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(10px, auto);
    grid-auto-flow: dense;
    gap: 18px;
}

.resume7-tile {
    background: var(--r7-tile);
    border: 1px solid var(--r7-border);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
    position: relative;
    overflow: hidden;
}
.resume7-tile::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--r7-emerald), transparent);
}

/* tile spans — varying sizes for dashboard feel */
.resume7-tile--summary { grid-column: span 4; }
.resume7-tile--skills  { grid-column: span 2; grid-row: span 2; }
.resume7-tile--exp     { grid-column: span 4; }
.resume7-tile--edu     { grid-column: span 3; }
.resume7-tile--lang    { grid-column: span 3; }
.resume7-tile--cert    { grid-column: span 3; }
.resume7-tile--proj    { grid-column: span 4; }
.resume7-tile--int     { grid-column: span 2; }

/* tile header */
.resume7-thead {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.resume7-tico {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--r7-emerald-l);
    color: var(--r7-emerald-d);
    font-size: 1rem;
}
.resume7-ttitle {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0;
    color: var(--r7-ink);
}

/* summary */
.resume7-summary {
    color: var(--r7-slate);
    font-size: .95rem;
}
.resume7-summary p { margin: 0 0 8px; }

/* skill meters */
.resume7-meters { display: flex; flex-direction: column; gap: 15px; }
.resume7-meter-lbl {
    display: flex;
    justify-content: space-between;
    font-size: .86rem;
    font-weight: 700;
    color: var(--r7-slate);
    margin-bottom: 6px;
}
.resume7-bar {
    height: 9px;
    background: #eef2f6;
    border-radius: 50px;
    overflow: hidden;
}
.resume7-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--r7-emerald), var(--r7-emerald-d));
}

/* experience timeline */
.resume7-tl { display: flex; flex-direction: column; gap: 16px; }
.resume7-tl-item {
    border-right: 3px solid var(--r7-emerald-l);
    padding-right: 15px;
    position: relative;
}
.resume7-tl-item::before {
    content: "";
    position: absolute;
    right: -7px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--r7-emerald);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--r7-emerald-l);
}
.resume7-tl-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}
.resume7-tl-role { font-weight: 800; font-size: 1rem; color: var(--r7-ink); }
.resume7-tl-date {
    font-size: .76rem;
    font-weight: 700;
    color: var(--r7-emerald-d);
    background: var(--r7-emerald-l);
    padding: 2px 10px;
    border-radius: 50px;
}
.resume7-tl-org { font-size: .85rem; font-weight: 600; color: var(--r7-slate-2); margin-top: 3px; }
.resume7-tl-desc { font-size: .9rem; color: var(--r7-slate); margin: 7px 0 0; }

/* education */
.resume7-edu-list { display: flex; flex-direction: column; gap: 14px; }
.resume7-edu-item {
    background: #f8fafc;
    border: 1px solid var(--r7-border);
    border-radius: 13px;
    padding: 13px 15px;
}
.resume7-edu-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    align-items: baseline;
}
.resume7-edu-degree { font-weight: 800; font-size: .95rem; color: var(--r7-ink); }
.resume7-edu-date { font-size: .76rem; font-weight: 700; color: var(--r7-slate-2); }
.resume7-edu-inst { font-size: .85rem; font-weight: 600; color: var(--r7-emerald-d); margin-top: 3px; }
.resume7-edu-desc { font-size: .85rem; color: var(--r7-slate); margin: 6px 0 0; }

/* languages */
.resume7-langs { display: flex; flex-direction: column; gap: 11px; }
.resume7-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--r7-border);
    border-radius: 11px;
    padding: 10px 14px;
}
.resume7-lang-name { font-weight: 700; font-size: .92rem; color: var(--r7-ink); }
.resume7-lang-level {
    font-size: .78rem;
    font-weight: 700;
    color: var(--r7-emerald-d);
    background: var(--r7-emerald-l);
    padding: 3px 12px;
    border-radius: 50px;
}

/* certifications */
.resume7-certs { display: flex; flex-direction: column; gap: 12px; }
.resume7-cert { display: flex; align-items: center; gap: 12px; }
.resume7-cert-ico {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--r7-emerald-l);
    color: var(--r7-emerald-d);
}
.resume7-cert-name { font-weight: 700; font-size: .92rem; color: var(--r7-ink); }
.resume7-cert-meta { font-size: .8rem; color: var(--r7-slate-2); }

/* projects */
.resume7-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 13px;
}
.resume7-proj-card {
    background: #f8fafc;
    border: 1px solid var(--r7-border);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color .2s, transform .2s;
}
.resume7-proj-card:hover { border-color: var(--r7-emerald); transform: translateY(-2px); }
.resume7-proj-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.resume7-proj-name { font-weight: 800; font-size: .95rem; color: var(--r7-ink); }
.resume7-proj-link {
    color: var(--r7-emerald-d);
    text-decoration: none;
    font-size: .85rem;
}
.resume7-proj-link:hover { color: var(--r7-emerald); }
.resume7-proj-desc { font-size: .85rem; color: var(--r7-slate); margin: 7px 0 0; }

/* interests tags */
.resume7-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.resume7-tag {
    background: var(--r7-emerald-l);
    color: var(--r7-emerald-d);
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

/* floating action button */
.resume7-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--r7-emerald), var(--r7-emerald-d));
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 50px;
    box-shadow: 0 12px 28px rgba(16,185,129,.4);
    cursor: pointer;
}
.resume7-fab:hover { color: #fff; transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .resume7-tile--summary,
    .resume7-tile--exp,
    .resume7-tile--proj { grid-column: span 6; }
    .resume7-tile--skills { grid-column: span 6; grid-row: auto; }
    .resume7-tile--edu,
    .resume7-tile--lang,
    .resume7-tile--cert,
    .resume7-tile--int { grid-column: span 3; }
}

@media (max-width: 600px) {
    .resume7-root { padding: 22px 14px 60px; }
    .resume7-grid { grid-template-columns: 1fr; gap: 14px; }
    .resume7-tile { grid-column: 1 / -1 !important; grid-row: auto !important; }
    .resume7-name { font-size: 1.6rem; }
}

/* ===== Print (A4) ===== */
@media print {
    .resume7-fab,
    .resume7-dl { display: none !important; }
    .resume7-root {
        background: #fff !important;
        padding: 0 !important;
    }
    .resume7-tile {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .resume7-grid { gap: 10px; }
    .resume7-chip { border-color: #cbd5e1 !important; }
}

.resume7-root {overflow-wrap:anywhere;}
.resume7-grid > *, .resume7-proj-grid > *, .resume7-cert-body {min-width:0;}
.resume7-meter-lbl {gap:8px;flex-wrap:wrap;}
.resume7-demo-note {max-width:1000px;margin:0 auto 18px;color:#475569;}
.resume7-dl {font-family:inherit;cursor:pointer;border:0;}
.resume7-dl:focus-visible {outline:3px solid #065f46;outline-offset:4px;}
.resume7-proj-grid {grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));}
@media print {
 @page {size:A4;margin:12mm;}
 body:has(.resume7-root) > :not(.page-card-shell):not(script):not(style):not(link) {display:none!important;}
 body:has(.resume7-root) .page-card-shell {display:block;border:0;}
 .resume7-demo-note {display:none;}
 .resume7-grid, .resume7-proj-grid {display:block;}
 .resume7-tile {break-inside:auto;page-break-inside:auto;margin-bottom:4mm;padding:4mm;}
 .resume7-root [data-row-index] {break-inside:avoid;}
 .resume7-thead {break-after:avoid;}
 .resume7-root p {font-size:10pt;line-height:1.6;orphans:3;widows:3;}
 .resume7-proj-card {margin-bottom:3mm;}
 .resume7-id-photo {width:25mm;height:25mm;}
 .resume7-header {padding:4mm;margin-bottom:4mm;}
}
