/* ── File Hub – Frontend Styles ── */

.fh-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    font-family: inherit;
}

.fh-file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: box-shadow .2s, transform .2s;
}

.fh-file-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    transform: translateY(-1px);
}

/* ── Left icon ─────────────────── */
.fh-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.fh-file-item--pdf   .fh-file-icon { background: #fde8e8; color: #c0392b; }
.fh-file-item--image .fh-file-icon { background: #e8f4fd; color: #1a6fa1; }
.fh-file-item--video .fh-file-icon { background: #e8faf0; color: #1a6640; }
.fh-file-item--other .fh-file-icon { background: #f3f4f6; color: #4b5563; }

.fh-file-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* ── Middle info ───────────────── */
.fh-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fh-file-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fh-file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fh-file-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 2px 8px;
    border-radius: 20px;
}

.fh-file-item--pdf   .fh-file-type { background: #fde8e8; color: #c0392b; }
.fh-file-item--image .fh-file-type { background: #e8f4fd; color: #1a6fa1; }
.fh-file-item--video .fh-file-type { background: #e8faf0; color: #1a6640; }
.fh-file-item--other .fh-file-type { background: #f3f4f6; color: #4b5563; }

.fh-file-size {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Download button ───────────── */
.fh-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #2271b1;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, box-shadow .15s;
    border: none;
    cursor: pointer;
}

.fh-download-btn:hover,
.fh-download-btn:focus {
    background: #135e96;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(34, 113, 177, .35);
    text-decoration: none !important;
}

.fh-download-btn svg {
    flex-shrink: 0;
}

/* ── Empty state ───────────────── */
.fh-no-files {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 24px 0;
}

/* ── Responsive ────────────────── */
@media ( max-width: 600px ) {
    .fh-file-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    .fh-file-info { width: calc( 100% - 60px ); }
    .fh-download-btn { width: 100%; justify-content: center; }
}
