/* ============================================
   EMITRUST PROJECT DETAIL — css/project-detail.css
   Brand: teal #06AAC5, ink #0D0D0D
   ============================================ */

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #E8E8E5;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #9A9A9A;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover { color: #06AAC5; }

.breadcrumb-nav i { font-size: 0.65rem; color: #E8E8E5; }

.breadcrumb-nav span {
    color: #0D0D0D;
    font-weight: 600;
}

/* ============================================
   PROJECT HEADER
   ============================================ */
.project-header-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #E8E8E5;
}

.badge-faculty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.badge-faculty i { font-size: 0.875rem; }

.project-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #0D0D0D;
    line-height: 1.3;
    margin-bottom: 1.75rem;
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.stat-item {
    background: #F5F5F3;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #E8E8E5;
    transition: border-color 0.2s;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0D0D0D;
}

.stat-item:hover { border-color: #06AAC5; }
.stat-item i { font-size: 1rem; }

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1px;
    background: #E8E8E5;
    border: 1px solid #E8E8E5;
}

.info-box {
    background: white;
    padding: 1.25rem 1rem;
    text-align: center;
}

.info-label {
    font-size: 0.65rem;
    color: #9A9A9A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.info-value {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0D0D0D;
    line-height: 1.3;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content { padding: 3rem 0; }

/* Content boxes */
.content-box {
    background: white;
    border: 1px solid #E8E8E5;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8E8E5;
}

.content-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.content-box-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #0D0D0D;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-chapter { margin-bottom: 1.5rem; }

.chapter-header {
    background: #F5F5F3;
    padding: 0.875rem 1.25rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #0D0D0D;
    margin-bottom: 0;
    border-left: 3px solid #06AAC5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #E8E8E5;
    border-top: none;
}

.toc-list li {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F5F5F3;
    transition: background 0.15s;
    gap: 1rem;
}

.toc-list li:last-child { border-bottom: none; }
.toc-list li:hover { background: #F5F5F3; }

.section-num {
    font-weight: 700;
    font-size: 0.78rem;
    color: #06AAC5;
    margin-right: 0.625rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-text {
    flex: 1;
    font-size: 0.85rem;
    color: #5A5A5A;
}

.page-num {
    font-size: 0.75rem;
    color: #9A9A9A;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   ABSTRACT
   ============================================ */
.abstract-content {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #5A5A5A;
    text-align: justify;
}

/* ============================================
   SHARE BOX
   ============================================ */
.share-box {
    background: #F5F5F3;
    padding: 1.5rem;
    border: 1px solid #E8E8E5;
    margin-top: 1.5rem;
}

.share-box h5 {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0D0D0D;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.share-buttons { display: flex; gap: 0.75rem; }

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: white; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #0D0D0D; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Price card */
.price-card {
    background: white;
    border: 1px solid #E8E8E5;
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.price-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #F5F5F3;
    border: 1px solid #E8E8E5;
}

.price-amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: #0D0D0D;
}

.price-label {
    font-size: 0.75rem;
    color: #9A9A9A;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sidebar buttons */
.btn-purchase {
    width: 100%;
    padding: 0.875rem;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0D0D0D;
    letter-spacing: 0.04em;
}

.btn-purchase:hover { opacity: 0.85; }

.btn-purchase.btn-purchased { background: #15803d; }
.btn-purchase.btn-pending   { background: #b45309; }
.btn-purchase.btn-danger    { background: #b91c1c; }
.btn-purchase.btn-teal      { background: #06AAC5; }

.btn-preview {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E8E8E5;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    background: white;
    color: #0D0D0D;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-preview:hover {
    border-color: #06AAC5;
    background: #F5F5F3;
}

/* Benefits list */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #F5F5F3;
    font-size: 0.82rem;
    color: #5A5A5A;
}

.benefits-list li:last-child { border-bottom: none; }
.benefits-list i { font-size: 1rem; color: #06AAC5; }

/* Alert boxes */
.alert-login {
    background: #fef9ec;
    border: 1px solid #fde68a;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b45309;
    text-align: center;
}

.alert-login a { color: #b45309; font-weight: 700; }

.alert-owned {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #15803d;
    text-align: center;
}

.alert-pending {
    background: #fef9ec;
    border: 1px solid #fde68a;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: #b45309;
}

.alert-pending strong { font-weight: 700; }
.alert-pending code {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.3rem;
    font-size: 0.78rem;
}

/* Related projects */
.related-item {
    background: #F5F5F3;
    border: 1px solid #E8E8E5;
    padding: 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, background 0.2s;
}

.related-item:hover {
    border-color: #06AAC5;
    background: white;
}

.related-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0D0D0D;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9A9A9A;
}

.related-price {
    font-weight: 700;
    color: #06AAC5;
}

.sidebar-heading {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0D0D0D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #E8E8E5;
}

/* Flash alerts (top of page) */
.flash-alert {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
}

.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.flash-warning { background: #fef9ec; border: 1px solid #fde68a; color: #b45309; }
.flash-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .sidebar-sticky { position: relative; top: 0; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .project-header-section { padding: 2rem 0; }
    .main-content { padding: 2rem 0; }
    .stats-row { flex-direction: column; }
    .stat-item { justify-content: center; }
    .content-box { padding: 1.25rem; }
    .price-card { padding: 1.25rem; }
    .price-amount { font-size: 2.25rem; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
    .share-btn { width: 36px; height: 36px; font-size: 0.875rem; }
}