/* ============================================================
   document_detail.css — Premium Document Detail Page Styles
   ============================================================ */

/* ── Stat pills (top of content area) ───────────────────── */
.detail-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: #f1f5ff;
    border: 1px solid #dde4f7;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.detail-stat-pill:hover {
    background: #e4eaff;
    transform: translateY(-1px);
}

/* ── Section cards (unified panel style) ────────────────── */
.detail-section-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(67,97,238,0.05);
    transition: box-shadow 0.25s;
}
.detail-section-card:hover {
    box-shadow: 0 6px 24px rgba(67,97,238,0.09);
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e8edf5;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
}
.detail-section-header i { font-size: 0.95rem; }

/* ── Tag pills ───────────────────────────────────────────── */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5ff;
    border: 1px solid #c7d4fb;
    color: #4361ee;
    transition: all 0.2s;
}
.tag-pill:hover {
    background: #4361ee;
    color: #fff;
    border-color: #4361ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67,97,238,0.25);
}

/* ── Content preview ─────────────────────────────────────── */
.preview-body {
    position: relative;
    max-height: 340px;
    overflow: hidden;
    padding: 1.1rem 1.2rem;
}
.preview-fade-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}
.content-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #374151;
}

/* ── Info rows (key-value pairs) ─────────────────────────── */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    gap: 0.5rem;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}
.info-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

/* ── Video wrapper ───────────────────────────────────────── */
.video-preview-wrapper {
    margin-bottom: 1.5rem;
}
.video-placeholder {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── btn-premium-outline (nav footer) ───────────────────── */
.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 2px solid #c7d4fb;
    background: #fff;
    color: #4361ee;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-premium-outline:hover {
    background: #4361ee;
    border-color: #4361ee;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.28);
}

/* ── Related document cards inside section ───────────────── */
.detail-section-card .premium-card {
    border-radius: 12px;
    border: 1px solid #e8edf5;
    transition: all 0.22s;
    background: #fafbff;
}
.detail-section-card .premium-card:hover {
    border-color: #b0c0f8;
    box-shadow: 0 4px 18px rgba(67,97,238,0.12);
    transform: translateY(-3px);
}

/* ── Removed legacy rules (kept minimal) ────────────────── */
.file-badge {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
}

.document-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 2rem;
}

/* ── SHA-256 hash block ──────────────────────────────────── */
.detail-section-card code {
    font-size: 0.72rem;
    word-break: break-all;
    white-space: pre-wrap;
    color: #475569;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .detail-stat-pill { font-size: 0.75rem; padding: 0.3rem 0.65rem; }
    .detail-section-header { font-size: 0.85rem; padding: 0.7rem 0.9rem; }
    .preview-body { max-height: 240px; padding: 0.8rem; }
    .document-navigation { flex-direction: column; gap: 1rem; text-align: center; }
}
