/* Foxco File Gallery — frontend styles */

.ffg-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Grid layout ── */
.ffg-grid {
    display: grid;
    gap: 16px;
    flex-direction: unset;
}
.ffg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ffg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ffg-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ── */
.ffg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: box-shadow .2s, border-color .2s;
}
.ffg-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border-color: #d1d5db;
}

/* Grid cards stack vertically */
.ffg-grid .ffg-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.ffg-grid .ffg-actions {
    width: 100%;
    flex-wrap: wrap;
}

/* ── Icon ── */
.ffg-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ffg-icon svg, .ffg-icon i {
    width: 100%;
    height: 100%;
}

/* Type-specific icon colors */
.ffg-type-pdf  .ffg-icon { color: #dc2626; }
.ffg-type-word .ffg-icon { color: #2563eb; }
.ffg-type-excel .ffg-icon { color: #16a34a; }
.ffg-type-zip  .ffg-icon { color: #d97706; }

/* ── Info ── */
.ffg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ffg-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ffg-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

/* ── Actions ── */
.ffg-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ffg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
    cursor: pointer;
}
.ffg-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}
.ffg-btn-open     { background-color: #2563eb; }
.ffg-btn-download { background-color: #16a34a; }

.ffg-no-file {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ffg-cols-3,
    .ffg-cols-4 { grid-template-columns: repeat(2, 1fr); }

    .ffg-list .ffg-item {
        flex-wrap: wrap;
    }
    .ffg-list .ffg-actions {
        width: 100%;
        margin-top: 4px;
    }
}
@media (max-width: 480px) {
    .ffg-cols-2,
    .ffg-cols-3,
    .ffg-cols-4 { grid-template-columns: 1fr; }
}
