/* ================================
   Bashkia Kruje - Documents Plugin
   ================================ */

.bk-docs-wrapper {
    max-width: 100%;
    margin: 20px 0;
}

/* === List Layout === */
.bk-docs-list .bk-doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.bk-docs-list .bk-doc-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === Grid Layout === */
.bk-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bk-docs-grid .bk-doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.bk-docs-grid .bk-doc-item:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bk-docs-grid .bk-doc-icon {
    margin-bottom: 12px;
}

.bk-docs-grid .bk-doc-info {
    margin-bottom: 12px;
}

.bk-docs-grid .bk-doc-download {
    margin-left: 0;
}

/* === Document Icon === */
.bk-doc-icon {
    flex-shrink: 0;
}

.bk-doc-ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #6b7280;
    letter-spacing: 0.5px;
}

.bk-doc-ext[data-ext="pdf"] {
    background: #dc2626;
}

.bk-doc-ext[data-ext="doc"],
.bk-doc-ext[data-ext="docx"] {
    background: #2563eb;
}

.bk-doc-ext[data-ext="xls"],
.bk-doc-ext[data-ext="xlsx"] {
    background: #16a34a;
}

.bk-doc-ext[data-ext="ppt"],
.bk-doc-ext[data-ext="pptx"] {
    background: #ea580c;
}

.bk-doc-ext[data-ext="zip"],
.bk-doc-ext[data-ext="rar"] {
    background: #7c3aed;
}

.bk-doc-ext[data-ext="jpg"],
.bk-doc-ext[data-ext="jpeg"],
.bk-doc-ext[data-ext="png"],
.bk-doc-ext[data-ext="gif"] {
    background: #0891b2;
}

/* === Document Info === */
.bk-doc-info {
    flex: 1;
    min-width: 0;
}

.bk-doc-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}

.bk-doc-title:hover {
    color: #2271b1;
    text-decoration: underline;
}

.bk-doc-date {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

/* === Download Button === */
.bk-doc-download {
    flex-shrink: 0;
    margin-left: auto;
}

.bk-doc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.bk-doc-download-btn:hover {
    background: #2271b1;
    color: #fff;
}

.bk-doc-download-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* === Empty State === */
.bk-docs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-style: italic;
}

/* === Responsive === */
@media (max-width: 600px) {
    .bk-docs-grid {
        grid-template-columns: 1fr;
    }

    .bk-docs-list .bk-doc-item {
        padding: 12px;
        gap: 10px;
    }
}
