/* ═══════════════════════════════════════════════════════════
   Farada — Portfolio Styles
   Silky smooth hover with GPU acceleration
   ═══════════════════════════════════════════════════════════ */


/* ═══ 1. HERO STATS ═══ */

.fpp-hero {
    padding-bottom: 40px !important;
}

.fpp-stats {
    display: inline-flex;
    align-items: center;
    padding: 12px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .06);
}

.fpp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    min-width: 70px;
}

.fpp-stat-num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fpp-stat-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 5px;
}

.fpp-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}

@media (max-width: 640px) {
    .fpp-stats {
        padding: 10px 4px;
        overflow-x: auto;
        scrollbar-width: none;
        max-width: 100%;
    }

    .fpp-stats::-webkit-scrollbar {
        display: none;
    }

    .fpp-stat-item {
        padding: 0 14px;
        min-width: 60px;
    }

    .fpp-stat-num {
        font-size: 18px;
    }

    .fpp-stat-label {
        font-size: 10px;
    }
}


/* ═══ 2. TOOLBAR ═══ */

.fpp-toolbar-section {
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 0;
    position: sticky;
    top: 68px;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="midnight"] .fpp-toolbar-section {
    background: rgba(30, 41, 59, .85);
}

.fpp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fpp-toolbar-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 900px) {
    .fpp-toolbar-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.fpp-pills-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.fpp-pills {
    display: flex;
    gap: 8px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fpp-pills::-webkit-scrollbar {
    display: none;
}

.fpp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    color: var(--body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    will-change: transform;
}

.fpp-pill:hover {
    border-color: rgba(99, 102, 241, .35);
    transform: translate3d(0, -1px, 0);
}

.fpp-pill-active {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, .35);
}

.fpp-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fpp-pill-active .fpp-pill-dot {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.fpp-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: var(--bg);
    color: var(--muted);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.fpp-pill-active .fpp-pill-badge {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}

.fpp-view-switch {
    display: inline-flex;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (min-width: 900px) {
    .fpp-view-switch {
        align-self: center;
    }
}

.fpp-view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted);
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    transition: color 300ms ease, background 300ms ease;
}

.fpp-view-btn:hover {
    color: #6366f1;
}

.fpp-view-active {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}

.fpp-search-container {
    position: relative;
    width: 100%;
}

.fpp-search-field {
    width: 100%;
    padding: 13px 44px 13px 44px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--heading);
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    font-family: inherit;
}

.fpp-search-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

.fpp-search-field::placeholder {
    color: var(--muted);
}

.fpp-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}

.fpp-search-clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg);
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 250ms ease, color 250ms ease;
}

.fpp-search-clear:hover {
    background: #ef4444;
    color: #fff;
}


/* ═══ 3. PROJECTS SECTION ═══ */

.fpp-projects-section {
    padding: 48px 0 80px;
    background: var(--bg);
}

@media (min-width: 640px) {
    .fpp-projects-section {
        padding: 56px 0 100px;
    }
}


/* ═══ 4. GRID ═══ */

.fpp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .fpp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fpp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════
   5. PROJECT CARD — SILKY SMOOTH HOVER
   
   تکنیک‌های استفاده‌شده:
   1. wrapper (.fpp-item) بدون transition و بدون transform
   2. inner (.fpp-item-inner) با transform و transition نرم
   3. فقط transform و opacity → GPU acceleration
   4. will-change: transform → آماده‌سازی مرورگر
   5. translate3d → hardware layer
   6. cubic-bezier مخصوص iOS (Apple-style)
   ═══════════════════════════════════════════════════════════ */

/* Wrapper - فقط برای layout و enter animation */
.fpp-item {
    position: relative;
    height: auto;
    min-height: 500px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;

    /* Enter animation */
    opacity: 0;
    animation: fppFadeIn 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--fpp-delay, 0ms);
}

@keyframes fppFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Inner - این المان همه چیز رو حمل می‌کنه و hover می‌گیره */
.fpp-item-inner {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;

    /* فقط transform + shadow + border transition
       این‌ها روی GPU اجرا میشن و jank ندارن */
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* HOVER - نرم و ملایم */
.fpp-item:hover .fpp-item-inner {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, .18),
        0 8px 16px -8px rgba(0, 0, 0, .06);
    border-color: rgba(99, 102, 241, .2);
}


/* ─── Cover ─── */

.fpp-item-cover {
    position: relative;
    width: 100%;
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fpp-item-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .15) 2px, transparent 2.5px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .1) 2.5px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08) 1.5px, transparent 2px);
    background-size: 40px 40px, 55px 55px, 25px 25px;
    pointer-events: none;
    z-index: 1;
}


/* ─── Icon Box (بدون هاور جداگانه) ─── */

.fpp-item-icon-box {
    position: relative;
    z-index: 3;
    width: 84px;
    height: 84px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12),
        0 4px 8px rgba(0, 0, 0, .06);
    flex-shrink: 0;
}

[data-theme="midnight"] .fpp-item-icon-box {
    background: #1e293b;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .3),
        0 4px 8px rgba(0, 0, 0, .2);
}

.fpp-item-icon-box i {
    font-size: 38px;
    line-height: 1;
}


/* ─── Badges ─── */

.fpp-item-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 4;
    pointer-events: none;
    gap: 8px;
}

.fpp-badge-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0f172a;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
}

.fpp-badge-category i {
    font-size: 10px;
    color: #6366f1;
}

.fpp-badge-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    color: #fff;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
}

.fpp-badge-state-demo {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fpp-badge-state-private {
    background: linear-gradient(135deg, #64748b, #475569);
}

.fpp-badge-state i {
    font-size: 8px;
}

.fpp-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
    animation: fppPulse 2s infinite;
}

@keyframes fppPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* ─── Body ─── */

.fpp-item-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}


/* ─── Head ─── */

.fpp-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px 0;
}

.fpp-item-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.4;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.fpp-item-year {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6366f1;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    padding: 5px 10px;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 8px;
    font-weight: 700;
    flex-shrink: 0;
    height: fit-content;
    margin: 3px 0 0 0;
    line-height: 1;
}

.fpp-item-year i {
    font-size: 9px;
}


/* ─── Description ─── */

.fpp-item-desc {
    font-size: 13px;
    line-height: 1.75;
    color: var(--body);
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}


/* ─── Meta ─── */

.fpp-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .04), rgba(168, 85, 247, .04));
    border: 1px solid rgba(99, 102, 241, .08);
    border-radius: 12px;
    font-size: 11.5px;
    margin: 0 0 14px 0;
    min-height: 44px;
}

.fpp-meta-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.fpp-meta-cell i {
    font-size: 11px;
    color: #6366f1;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.fpp-meta-cell strong {
    color: var(--heading);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.fpp-meta-divider {
    width: 1px;
    height: 18px;
    background: rgba(99, 102, 241, .15);
    flex-shrink: 0;
}


/* ─── Tags ─── */

.fpp-item-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    margin: 0 0 14px 0;
    min-height: 28px;
    align-items: center;
}

.fpp-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--body);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.fpp-item-tag i {
    font-size: 8px;
    color: #6366f1;
}


/* ─── Footer ─── */

.fpp-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 0 0;
    border-top: 1px solid var(--border-soft);
    gap: 10px;
    margin: auto 0 0 0;
    min-height: 46px;
}

.fpp-item-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: #6366f1;
    letter-spacing: -0.01em;
}

.fpp-view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(99, 102, 241, .1);
    color: #6366f1;
}

.fpp-view-icon i {
    font-size: 10px;
}

.fpp-item-links {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.fpp-item-link {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.fpp-item-link:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}


/* ═══ 6. LIST VIEW ═══ */

.fpp-grid.fpp-list-view {
    grid-template-columns: 1fr;
    gap: 18px;
}

.fpp-grid.fpp-list-view .fpp-item {
    min-height: 240px;
}

.fpp-grid.fpp-list-view .fpp-item-inner {
    flex-direction: row;
    min-height: 240px;
}

.fpp-grid.fpp-list-view .fpp-item-cover {
    width: 300px;
    height: auto;
    min-height: 240px;
    max-height: none;
    flex-shrink: 0;
}

.fpp-grid.fpp-list-view .fpp-item-desc {
    -webkit-line-clamp: 3;
    min-height: 68px;
}

.fpp-grid.fpp-list-view .fpp-item-tags {
    flex-wrap: wrap;
    min-height: auto;
}

@media (max-width: 767px) {

    .fpp-grid.fpp-list-view .fpp-item,
    .fpp-grid.fpp-list-view .fpp-item-inner {
        min-height: 500px;
    }

    .fpp-grid.fpp-list-view .fpp-item-inner {
        flex-direction: column;
    }

    .fpp-grid.fpp-list-view .fpp-item-cover {
        width: 100%;
        height: 210px;
        max-height: 210px;
    }

    .fpp-grid.fpp-list-view .fpp-item-desc {
        -webkit-line-clamp: 2;
        min-height: 45px;
    }

    .fpp-grid.fpp-list-view .fpp-item-tags {
        flex-wrap: nowrap;
        min-height: 28px;
    }
}


/* ═══ 7. EMPTY STATE ═══ */

.fpp-empty {
    text-align: center;
    padding: 80px 20px;
}

.fpp-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(168, 85, 247, .1));
    border: 1px solid rgba(99, 102, 241, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.fpp-empty-icon i {
    font-size: 40px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fpp-empty h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 10px;
}

.fpp-empty p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 26px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
}

.fpp-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease;
    font-family: inherit;
    will-change: transform;
}

.fpp-empty-btn:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .4);
}


/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pd-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    padding: 5px 12px;
    background: rgba(99, 102, 241, .08);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, .15);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pd-year,
.pd-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.pd-status {
    color: #10b981;
}

.pd-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--heading);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .pd-title {
        font-size: 34px;
    }
}

@media (min-width: 1024px) {
    .pd-title {
        font-size: 40px;
    }
}

.pd-summary {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--body);
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .pd-summary {
        font-size: 16px;
    }
}

.pd-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.qi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.qi-label {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.qi-item strong {
    font-size: 13px;
    color: var(--heading);
    font-weight: 800;
}

.pd-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .pd-btns {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.pd-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 300ms ease, box-shadow 300ms ease;
    cursor: pointer;
    font-family: inherit;
    border: none;
    will-change: transform;
}

.pd-action-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.pd-action-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(99, 102, 241, .3);
}

.pd-action-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--heading);
}

.pd-action-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, .04);
    transform: translate3d(0, -2px, 0);
}

.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 1024px) {
    .pd-hero-grid {
        grid-template-columns: 3fr 2fr;
        gap: 48px;
    }
}

.pd-hero-cover {
    position: relative;
    aspect-ratio: 4/3;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.pd-cover-glow {
    position: absolute;
    inset: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(168, 85, 247, .25));
    border-radius: 16px;
    filter: blur(50px);
}

.pd-cover-box {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, .12);
    overflow: hidden;
}

.pd-cover-box i {
    font-size: 90px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pd-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .pd-content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

.pd-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pd-block-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pd-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pd-block-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--heading);
}

.pd-block-body {
    padding-right: 56px;
}

@media (max-width: 640px) {
    .pd-block-body {
        padding-right: 0;
    }
}

.pd-block-body p {
    font-size: 14px;
    line-height: 2;
    color: var(--body);
}

.pd-solution-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-solution-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--body);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 10px;
}

.pd-solution-list li i {
    color: #10b981;
    font-size: 10px;
    margin-top: 7px;
    flex-shrink: 0;
}

.pd-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-right: 56px;
}

@media (max-width: 640px) {
    .pd-features-grid {
        padding-right: 0;
    }
}

@media (min-width: 640px) {
    .pd-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pd-feat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 300ms ease, transform 300ms ease;
    will-change: transform;
}

.pd-feat-card:hover {
    border-color: rgba(99, 102, 241, .2);
    transform: translate3d(0, -2px, 0);
}

.pd-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, .08);
    color: #6366f1;
    font-size: 14px;
    margin-bottom: 10px;
}

.pd-feat-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 4px;
}

.pd-feat-card p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--body);
}

.pd-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-right: 56px;
}

@media (max-width: 640px) {
    .pd-gallery {
        padding-right: 0;
    }
}

@media (min-width: 640px) {
    .pd-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 16/10;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 300ms ease, transform 300ms ease;
    will-change: transform;
}

.gallery-item:hover {
    border-color: rgba(99, 102, 241, .3);
    transform: scale(1.02);
}

.gallery-item i {
    font-size: 40px;
    opacity: .3;
    transition: opacity 300ms ease;
}

.gallery-item:hover i {
    opacity: .5;
}

.pd-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-right: 56px;
}

@media (max-width: 640px) {
    .pd-results {
        padding-right: 0;
    }
}

@media (min-width: 640px) {
    .pd-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    text-align: center;
    padding: 22px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .05), rgba(168, 85, 247, .05));
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 12px;
}

.result-value {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.result-label {
    font-size: 12px;
    color: var(--body);
    font-weight: 600;
}

.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .pd-sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.pd-side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.pd-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--heading);
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.pd-side-title i {
    color: #6366f1;
    font-size: 13px;
}

.pd-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.pd-info-item .lbl {
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-info-item .lbl i {
    color: #6366f1;
    font-size: 11px;
}

.pd-info-item .val {
    color: var(--heading);
    font-weight: 700;
    text-align: left;
}

.pd-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--body);
    transition: border-color 300ms ease, transform 300ms ease;
    will-change: transform;
}

.pd-tech-tag:hover {
    border-color: rgba(99, 102, 241, .2);
    transform: translate3d(0, -1px, 0);
}

.pd-share-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.share-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms ease;
    will-change: transform;
}

.share-btn:hover {
    background: var(--sc);
    color: #fff;
    border-color: var(--sc);
    transform: translate3d(0, -2px, 0);
}

.pd-related {
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    background: #1e293b;
    border-radius: 14px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 100px;
    opacity: .5;
}

/* ═══════════════════════════════════════════════════════════
   Mobile: Hide View Toggle (فقط دسکتاپ و تبلت)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .fpp-view-switch {
        display: none !important;
    }

    /* Force Grid View روی موبایل */
    .fpp-grid.fpp-list-view {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .fpp-grid.fpp-list-view .fpp-item,
    .fpp-grid.fpp-list-view .fpp-item-inner {
        min-height: 500px !important;
        flex-direction: column !important;
    }

    .fpp-grid.fpp-list-view .fpp-item-cover {
        width: 100% !important;
        height: 210px !important;
        min-height: 210px !important;
        max-height: 210px !important;
    }

    .fpp-grid.fpp-list-view .fpp-item-desc {
        -webkit-line-clamp: 2 !important;
        min-height: 45px !important;
    }

    .fpp-grid.fpp-list-view .fpp-item-tags {
        flex-wrap: nowrap !important;
        min-height: 28px !important;
    }
}