/**
 * Document Grid Block Styles
 *
 * @package Bucksalc
 */

.bucksalc-document-grid {
    margin-bottom: 2rem;
}

.bucksalc-document-badge {
    margin-bottom: 0.5rem;
}

/* Meta info (file type and size) */
.bucksalc-document-grid .bucksalc-card__meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* ===========================
   Document File Type Icons
   =========================== */
.bucksalc-card__media--icon {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.bucksalc-card__media--icon .document-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Document icon styling */
.document-icon__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 100px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bucksalc-card:hover .document-icon__wrapper {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Folded corner effect */
.document-icon__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.05) 50%);
    border-bottom-left-radius: 6px;
}

/* File extension label */
.document-icon__ext {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Color variants for different file types */
.document-icon--pdf .document-icon__ext {
    background: #dc2626;
}

.document-icon--word .document-icon__ext {
    background: #2563eb;
}

.document-icon--excel .document-icon__ext {
    background: #16a34a;
}

.document-icon--powerpoint .document-icon__ext {
    background: #ea580c;
}

.document-icon--archive .document-icon__ext {
    background: #854d0e;
}

.document-icon--image .document-icon__ext {
    background: #7c3aed;
}

.document-icon--video .document-icon__ext {
    background: #be185d;
}

.document-icon--audio .document-icon__ext {
    background: #0891b2;
}

.document-icon--text .document-icon__ext {
    background: #6b7280;
}

.document-icon--file .document-icon__ext {
    background: #6b7280;
}

/* Responsive icon sizing */
@media (max-width: 768px) {
    .document-icon__wrapper {
        width: 60px;
        height: 75px;
    }

    .document-icon__ext {
        font-size: 12px;
        padding: 3px 8px;
        margin-top: 10px;
    }
}
