/* =============================================
   Work Detail — تفاصيل العمل
   ============================================= */

.work-detail-container {
    padding: 1.5rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Title ── */
.work-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* ── Summary Box ── */
.work-summary-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.work-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.work-summary-item i {
    color: #D97706;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.work-summary-item span {
    font-size: 0.75rem;
    color: #94a3b8;
}
.work-summary-item strong {
    font-size: 0.88rem;
    color: #334155;
}

/* ── Gallery ── */
.work-gallery-section {
    margin-bottom: 2rem;
}
.work-gallery-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

/* Before/After */
.work-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ba-side {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.ba-side img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.ba-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}
.ba-before { background: #EF4444; }
.ba-after { background: #10B981; }
.ba-side figcaption {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Gallery Grid */
.work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.work-gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.work-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
    cursor: pointer;
}
.work-gallery-item:hover img { transform: scale(1.03); }
.work-gallery-item figcaption {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ── Content Blocks ── */
.work-content-sections { margin-bottom: 1.5rem; }
.work-content-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.work-content-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.work-content-block p {
    color: #475569;
    line-height: 1.8;
    font-size: 0.92rem;
}
.work-result {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

/* ── Timeline Steps ── */
.work-steps-section {
    margin-bottom: 2rem;
}
.work-steps-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.work-timeline {
    position: relative;
    padding-right: 30px;
}
.work-timeline::before {
    content: '';
    position: absolute;
    right: 13px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #D97706 0%, #FDE68A 100%);
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
    padding-right: 30px;
}
.timeline-dot {
    position: absolute;
    right: -30px;
    top: 2px;
    width: 28px;
    height: 28px;
    background: #D97706;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px #FEF3C7;
}
.timeline-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}
.timeline-content p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── Video ── */
.work-video-section {
    margin-bottom: 2rem;
}
.work-video-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.work-video-player {
    margin-bottom: 1.5rem;
}
.work-video-player h3 {
    font-size: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.3rem;
}
.work-video-player p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.7;
}
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-transcript {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 0.75rem;
}
.video-transcript summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
}
.video-transcript p {
    padding: 0 1rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ── FAQ ── */
.work-faq-section { margin-bottom: 2rem; }
.work-faq-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.work-faq-section .work-faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.work-faq-section .work-faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    list-style: none;
}
.work-faq-section .work-faq-item summary::-webkit-details-marker { display: none; }
.work-faq-section .work-faq-item summary::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: left;
    color: #D97706;
    font-size: 0.75rem;
    transition: transform 0.3s;
}
.work-faq-section .work-faq-item[open] summary::before { transform: rotate(180deg); }
.work-faq-section .work-faq-item p {
    padding: 0 1.25rem 1rem;
    color: #64748b;
    line-height: 1.8;
    font-size: 0.88rem;
}

/* ── Related Product ── */
.work-related-product { margin-bottom: 2rem; }
.work-related-product h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.related-product-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: box-shadow 0.3s;
}
.related-product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.related-product-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}
.related-product-card h3 {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.related-product-card .price {
    color: #0077C8;
    font-weight: 700;
    font-size: 0.95rem;
}
.related-product-card del { color: #94a3b8; font-weight: 400; margin-left: 0.5rem; }

/* ── CTA ── */
.work-cta-section {
    background: linear-gradient(135deg, #082A4A 0%, #0077C8 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}
.work-cta-section h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.work-cta-section p { opacity: 0.8; margin-bottom: 1.25rem; }
.work-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cta-primary { background: #D97706; color: white; }
.cta-whatsapp { background: #25D366; color: white; }
.cta-outline { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }

/* ── Similar Works ── */
.work-similar-section { margin-bottom: 2rem; }
.work-similar-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.similar-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.similar-work-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.3s;
}
.similar-work-card:hover { transform: translateY(-3px); }
.similar-work-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.similar-work-card div { padding: 0.75rem; }
.similar-work-card h3 {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.5;
}
.similar-work-card span {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .work-detail-title { font-size: 1.2rem; }
    .work-summary-box { grid-template-columns: repeat(2, 1fr); }
    .work-before-after { grid-template-columns: 1fr; }
    .ba-side img { height: 200px; }
    .work-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .similar-works-grid { grid-template-columns: 1fr; }
    .work-cta-buttons { flex-direction: column; }
    .cta-btn { justify-content: center; }
}
@media (max-width: 480px) {
    .work-summary-box { grid-template-columns: 1fr; }
    .work-gallery-grid { grid-template-columns: 1fr; }
}
