/* ============================================================
   CSS TRANG CHI TIẾT DỰ ÁN - GipHub.vn
   ============================================================ */

/* Breadcrumb Bar */
.breadcrumb-bar {
    background: var(--gray-50, #f9fafb);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    padding: 0.75rem 0;
    margin-top: 72px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500, #6b7280);
}
.breadcrumb a {
    color: var(--primary-600, #2563eb);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary-800, #1e40af); }
.breadcrumb span { color: var(--gray-400, #9ca3af); }

/* ============================================================
   PROJECT HERO
   ============================================================ */
.project-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(37,99,235,0.25) 0%, transparent 60%);
    pointer-events: none;
}
.project-hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}
.project-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.project-hero-text { flex: 1; }
.project-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.project-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.15;
}
.project-hero-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.75rem;
    max-width: 600px;
}
.project-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* ============================================================
   PROJECT STATS BAR
   ============================================================ */
.project-stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.project-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.project-stat-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem 2rem;
    flex: 1;
    min-width: 160px;
    border-right: 1px solid var(--gray-100, #f3f4f6);
}
.project-stat-item:last-child { border-right: none; }
.project-stat-item i { font-size: 1.75rem; flex-shrink: 0; }
.project-stat-item div { display: flex; flex-direction: column; }
.project-stat-item strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    line-height: 1;
}
.project-stat-item span {
    font-size: 0.8rem;
    color: var(--gray-500, #6b7280);
    margin-top: 0.2rem;
}

/* ============================================================
   PROJECT DETAIL SECTION
   ============================================================ */
.project-detail-section {
    padding: 4rem 0 5rem;
    background: var(--gray-50, #f9fafb);
}
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

/* Project Blocks */
.project-block {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100, #f3f4f6);
}
.project-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.project-block h2 i { color: var(--primary-600, #2563eb); }
.project-block > p {
    color: var(--gray-600, #4b5563);
    line-height: 1.8;
    font-size: 1rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: 0.75rem;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-700, #374151);
    font-size: 0.975rem;
    line-height: 1.5;
}
.feature-list li i { margin-top: 0.15rem; flex-shrink: 0; font-size: 1rem; }

/* Target Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.target-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50, #f9fafb);
    border-radius: 12px;
    border: 1px solid var(--gray-100, #f3f4f6);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
}
.target-item i { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.project-sidebar { position: sticky; top: 90px; }
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100, #f3f4f6);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-card h3 i { color: var(--primary-600, #2563eb); }

/* Info List */
.project-info-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.project-info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.project-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.project-info-list li i { width: 18px; text-align: center; flex-shrink: 0; }
.info-label { color: var(--gray-500, #6b7280); flex: 1; }
.info-value { font-weight: 600; color: var(--gray-800, #1f2937); }

/* Related Projects */
.related-projects { display: flex; flex-direction: column; gap: 0.6rem; }
.related-project-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-700, #374151);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.related-project-item:hover { background: var(--gray-50, #f9fafb); color: var(--primary-600, #2563eb); }
.related-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* btn-block */
.btn-block { display: block; width: 100%; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
    .project-sidebar { position: static; }
}
@media (max-width: 768px) {
    .project-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .project-hero-actions { justify-content: center; }
    .project-hero-text p { margin-left: auto; margin-right: auto; }
    .project-stats-grid { flex-direction: column; }
    .project-stat-item { border-right: none; border-bottom: 1px solid var(--gray-100, #f3f4f6); justify-content: center; }
    .project-stat-item:last-child { border-bottom: none; }
    .target-grid { grid-template-columns: 1fr; }
    .breadcrumb-bar { margin-top: 60px; }
}
@media (max-width: 480px) {
    .project-hero { padding: 2.5rem 0 2rem; }
    .project-block { padding: 1.5rem; }
    .sidebar-card { padding: 1.25rem; }
}
