/* ═══════════════════════════════════════════════════════════
   صفحه جزئیات نمونه کار - پیشوند pfd-
   ═══════════════════════════════════════════════════════════ */

/* ═══ Hero ═══ */
.pfd-hero {
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, var(--rw-primary) 0%, var(--rw-secondary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pfd-hero::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.pfd-hero::after {
    content: "";
    position: absolute;
    bottom: -120px; left: -80px;
    width: 280px; height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.pfd-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.pfd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
}
.pfd-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.pfd-breadcrumb a:hover { color: #fff; }
.pfd-breadcrumb i { font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.pfd-breadcrumb span { color: #fff; font-weight: 700; }

.pfd-hero-content {
    position: relative;
}

.pfd-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}
.pfd-cat-badge i { font-size: 11px; }

.pfd-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 36px;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pfd-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
    margin: 0 0 24px;
    max-width: 700px;
}

.pfd-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.pfd-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.pfd-meta-item i { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.pfd-meta-item strong { color: #fff; }

.pfd-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: var(--rw-primary);
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-right: auto;
}
.pfd-meta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.pfd-meta-link i { font-size: 13px; }

/* ═══ Container ═══ */
.pfd-container {
    max-width: 1100px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* ═══ Main Image ═══ */
.pfd-image-wrapper {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}
.pfd-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

/* ═══ Content Wrapper ═══ */
.pfd-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 40px;
}

/* ═══ Main Column ═══ */
.pfd-main {
    min-width: 0;
}

.pfd-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pfd-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 20px;
    color: #1E3A8A;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.pfd-section-title i {
    font-size: 20px;
    color: var(--rw-primary);
    line-height: 1;
}

.pfd-section-body {
    padding-top: 6px;
}

.pfd-project-desc {
    font-size: 14px;
    color: #374151;
    line-height: 2.1;
    margin: 0;
    white-space: pre-wrap;
    text-align: justify;
}

/* ═══ Sidebar ═══ */
.pfd-sidebar {
    min-width: 0;
}

.pfd-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.pfd-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 17px;
    color: #1E3A8A;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.pfd-info-title i { font-size: 16px; color: var(--rw-primary); }

.pfd-info-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.pfd-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
}
.pfd-info-list li:last-child { border-bottom: none; }

.pfd-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-weight: 700;
}
.pfd-info-label i { font-size: 12px; color: #9CA3AF; }

.pfd-info-value {
    color: #1E3A8A;
    font-weight: 700;
    text-align: left;
    word-break: break-word;
}

.pfd-info-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rw-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    transition: gap 0.2s;
}
.pfd-info-link:hover { gap: 8px; }
.pfd-info-link i { font-size: 11px; }

.pfd-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.pfd-visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}
.pfd-visit-btn i { font-size: 13px; }

/* ═══ Related Projects ═══ */
.pfd-related {
    margin-bottom: 40px;
}

.pfd-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pfd-related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 22px;
    color: #1E3A8A;
    margin: 0;
}
.pfd-related-title i { font-size: 20px; color: var(--rw-primary); }

.pfd-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rw-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.2s;
}
.pfd-related-link:hover { gap: 10px; }

.pfd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.pfd-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.pfd-related-card:hover {
    transform: translateY(-5px);
    border-color: var(--rw-primary);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.pfd-related-thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pfd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.pfd-related-card:hover .pfd-related-thumb img { transform: scale(1.08); }
.pfd-related-thumb i { font-size: 40px; color: rgba(255, 255, 255, 0.5); }
.pfd-related-thumb-empty { background: linear-gradient(135deg, #E5E7EB, #D1D5DB); }
.pfd-related-thumb-empty i { color: rgba(107, 114, 128, 0.5); }

.pfd-related-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rw-primary);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.pfd-related-body {
    padding: 16px 18px;
}
.pfd-related-body h4 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 15px;
    color: #1E3A8A;
    margin: 0 0 8px;
    line-height: 1.4;
}
.pfd-related-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rw-primary);
    font-size: 11px;
    font-weight: 700;
    transition: gap 0.2s;
}
.pfd-related-card:hover .pfd-related-more { gap: 10px; }

/* ═══ Back Button ═══ */
.pfd-back {
    text-align: center;
    padding-top: 20px;
}
.pfd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: var(--rw-primary);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.pfd-back-btn:hover {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
    .pfd-content-wrapper {
        grid-template-columns: 1fr;
    }
    .pfd-info-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .pfd-hero { padding: 40px 16px 30px; }
    .pfd-title { font-size: 24px; }
    .pfd-subtitle { font-size: 13px; }
    .pfd-container { margin-top: -30px; padding: 0 14px; }
    .pfd-image-wrapper { border-radius: 16px; }
    .pfd-section { padding: 22px 18px; }
    .pfd-section-title { font-size: 17px; }
    .pfd-project-desc { font-size: 13px; line-height: 2; }
    .pfd-related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pfd-related-thumb { height: 120px; }
    .pfd-related-body { padding: 12px 14px; }
    .pfd-related-body h4 { font-size: 13px; }
    .pfd-meta-link { width: 100%; justify-content: center; }
}