/* شرکت‌های پارک: لیست و جزئیات — ظاهر مشابه صفحات شرکت‌های مراکز رشد، بدون وابستگی به Tailwind */

.pc {
    direction: rtl;
    text-align: right;
    --pc-pri: #0d8c6d;
    --pc-pri-d: #096650;
    --pc-soft: #e6f5f1;
    --pc-card: #fff;
    --pc-bd: #e2e8f0;
    --pc-tx: #0f172a;
    --pc-mut: #64748b;
    --pc-fnt: #94a3b8;
    --pc-hov: #f8fafc;
}

.dark .pc,
[data-theme="dark"] .pc {
    --pc-soft: #082c22;
    --pc-card: #1e293b;
    --pc-bd: #334155;
    --pc-tx: #f1f5f9;
    --pc-mut: #94a3b8;
    --pc-hov: rgba(51, 65, 85, .4);
}

.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc a { text-decoration: none; }

/* ================= لیست: کارت‌ها ================= */
.pc-col { margin-bottom: 24px; }

.pc-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    height: 100%; padding: 20px; color: inherit;
    background: var(--pc-card); border: 1px solid var(--pc-bd); border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .3s, box-shadow .3s;
}
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }

.pc-logo {
    width: 80px; height: 80px; margin-bottom: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background: var(--pc-hov); border: 1px solid var(--pc-bd);
}
.pc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pc-logo.pc-ph { background: var(--pc-soft); border-color: transparent; }
.pc-logo.pc-ph span { font-size: 26px; font-weight: 800; color: var(--pc-pri); }

.pc-chip {
    display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--pc-soft); color: var(--pc-pri); font-size: 11px; font-weight: 500;
}

.pc-name { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--pc-tx); transition: color .2s; }
.pc-card:hover .pc-name { color: var(--pc-pri); }

.pc-field { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 12px; color: var(--pc-mut); }

.pc-desc {
    margin: 0 0 16px; font-size: 12px; line-height: 1.9; color: var(--pc-mut);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pc-foot {
    margin-top: auto; width: 100%; padding-top: 12px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--pc-bd); font-size: 11px;
}
.pc-year { color: var(--pc-fnt); }
.pc-more { display: inline-flex; align-items: center; gap: 4px; color: var(--pc-pri); font-weight: 600; }

/* خالی بودن لیست */
.pc-empty {
    padding: 64px 16px; text-align: center; font-size: 14px; color: var(--pc-fnt);
    background: var(--pc-card); border: 1px solid var(--pc-bd); border-radius: 16px;
}
.pc-empty i { display: block; margin-bottom: 8px; font-size: 48px; opacity: .6; }

/* صفحه‌بندی */
.pc-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.pc-pager-info { font-size: 14px; color: var(--pc-mut); }
.pc-pager-nav { display: flex; gap: 6px; }
.pc-pg {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--pc-bd); background: var(--pc-card);
    color: var(--pc-mut); font-size: 14px; font-weight: 700; transition: border-color .2s, color .2s;
}
.pc-pg:hover { border-color: var(--pc-pri); color: var(--pc-pri); }
.pc-pg.active { background: var(--pc-pri); border-color: var(--pc-pri); color: #fff; }

/* ================= جزئیات ================= */
.pc-hero { position: relative; overflow: hidden; background: #111d2b; padding: 52px 36px 48px; }
.pc-hero::before {
    content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, #0d8c6d, transparent);
}
.pc-deco {
    position: absolute; left: -20px; top: -28px; direction: ltr;
    font-size: 280px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .025);
    pointer-events: none; user-select: none;
}
.pc-hero-in {
    position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.pc-hero-main { flex: 1; min-width: 0; }

.pc-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 5px 14px; border-radius: 999px;
    background: rgba(13, 140, 109, .2); border: 1px solid rgba(13, 140, 109, .4);
    color: #5eead4; font-size: 11px; font-weight: 700;
}
.pc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5eead4; animation: pc-pulse 2s infinite; }
@keyframes pc-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pc-badge::before { animation: none; } }

.pc-h1 { max-width: 620px; margin: 0 0 16px; font-size: 38px; font-weight: 900; line-height: 1.4; color: #fff; }
.pc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.pc-meta strong { font-weight: 600; color: rgba(255, 255, 255, .8); }
.pc-meta i { margin-inline-end: 6px; }
.pc-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .15); }

.pc-hero-logo {
    flex: 0 0 96px; width: 96px; height: 96px; overflow: hidden; direction: ltr;
    display: flex; align-items: center; justify-content: center;
    border-radius: 24px; background: rgba(13, 140, 109, .15); border: 2px solid rgba(13, 140, 109, .35);
    color: #5eead4; font-size: 20px; font-weight: 900;
}
.pc-hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.pc-crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 36px;
    background: var(--pc-card); border-bottom: 1px solid var(--pc-bd); font-size: 12px; color: var(--pc-fnt);
}
.pc-crumb a { color: inherit; }
.pc-crumb a:hover { color: var(--pc-pri); }
.pc-cur { color: var(--pc-pri); font-weight: 600; }

.pc-wrap {
    max-width: 1080px; margin: 32px auto 64px; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 280px; gap: 24px;
}
.pc-main, .pc-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pc-side { gap: 16px; }

.pc-box { background: var(--pc-card); border: 1px solid var(--pc-bd); border-radius: 16px; overflow: hidden; }
.pc-bh { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--pc-bd); }
.pc-bh h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--pc-tx); }
.pc-ic {
    width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--pc-soft); color: var(--pc-pri); font-size: 16px;
}
.pc-bd { padding: 24px; }
.pc-txt { margin: 0; font-size: 14px; line-height: 2.1; color: var(--pc-mut); white-space: pre-line; }

.pc-about { font-size: 14px; line-height: 2.1; color: var(--pc-mut); direction: rtl; text-align: right; }
.pc-about p { margin: 0 0 1rem; }
.pc-about ul { list-style: disc; padding-inline-start: 1.5rem; margin: 0 0 1rem; }
.pc-about ol { list-style: decimal; padding-inline-start: 1.5rem; margin: 0 0 1rem; }
.pc-about img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1rem auto; }
.pc-about a { color: #0d9488; text-decoration: underline; }
.pc-about h2, .pc-about h3, .pc-about h4 { font-weight: 800; margin: 1.4rem 0 .7rem; color: var(--pc-tx); }

.pc-li {
    display: flex; align-items: center; gap: 14px; padding: 16px 24px;
    border-bottom: 1px solid var(--pc-bd); transition: background .2s;
}
.pc-li:last-child { border-bottom: 0; }
.pc-li:hover { background: var(--pc-hov); }
.pc-num {
    width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--pc-soft); color: var(--pc-pri); font-size: 12px; font-weight: 900;
}
.pc-li-t { font-size: 13.5px; line-height: 1.8; color: var(--pc-tx); }
.pc-li-soft { font-size: 13px; color: var(--pc-mut); }
.pc-star { flex-shrink: 0; color: #c49b3c; font-size: 15px; }

.pc-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.pc-gal a {
    display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
    border: 1px solid var(--pc-bd); background: var(--pc-hov);
}
.pc-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pc-gal a:hover img { transform: scale(1.05); }

/* ستون کناری */
.pc-ceo { display: flex; align-items: center; gap: 14px; padding: 20px; }
.pc-ceo-av {
    width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; background: var(--pc-soft); border: 1px solid rgba(13, 140, 109, .2);
    color: var(--pc-pri); font-size: 26px;
}
.pc-ceo small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: var(--pc-fnt); }
.pc-ceo b { font-size: 15px; font-weight: 900; color: var(--pc-tx); }

.pc-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--pc-bd); }
.pc-row:last-child { border-bottom: 0; }
.pc-row small { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--pc-fnt); }
.pc-row > span { font-size: 13px; font-weight: 600; color: var(--pc-tx); }
.pc-row .pc-addr { font-size: 12px; font-weight: 500; line-height: 1.9; }
.pc-row .pc-tag {
    align-self: flex-start; padding: 4px 12px; border-radius: 999px;
    background: var(--pc-soft); color: var(--pc-pri-d); font-size: 12px; font-weight: 700;
}
.dark .pc-row .pc-tag, [data-theme="dark"] .pc-row .pc-tag { color: #5eead4; }

.pc-ct {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    border-bottom: 1px solid var(--pc-bd); font-size: 13px; color: var(--pc-mut); transition: background .2s;
}
a.pc-ct:hover { background: var(--pc-hov); }
.pc-ct-ic {
    width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--pc-soft); color: var(--pc-pri); font-size: 14px;
}
.pc-link { color: var(--pc-pri); font-weight: 600; }

.pc-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px;
    padding: 10px 16px; border-radius: 12px; background: var(--pc-pri);
    color: #fff !important; font-size: 13px; font-weight: 700; transition: background .2s;
}
.pc-btn:hover { background: var(--pc-pri-d); }

/* نمایش بزرگ تصویر */
.pc-lb {
    display: none; position: fixed; inset: 0; z-index: 9999; padding: 16px; cursor: zoom-out;
    align-items: center; justify-content: center; background: rgba(0, 0, 0, .85);
}
.pc-lb.open { display: flex; }
.pc-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 25px 50px rgba(0, 0, 0, .5); }

@media (max-width: 767px) {
    .pc-hero { padding: 36px 20px 32px; }
    .pc-h1 { font-size: 24px; }
    .pc-hero-logo { display: none; }
    .pc-crumb { padding: 10px 20px; }
    .pc-wrap { grid-template-columns: 1fr; margin-top: 20px; padding: 0 16px; }
    .pc-gal { grid-template-columns: repeat(2, 1fr); }
}
