/* Documents Plugin - Frontend Styles */

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.document-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.document-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.document-thumbnail {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16/9;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.document-item:hover .document-thumbnail img {
    transform: scale(1.05);
}

.document-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.document-title {
    margin: 0 0 10px 0;
    font-size: 20px !important;
    line-height: 1.4;
    gap: 10px;
    display: flex;
    align-items: center;
}


.document-title .dashicons {
    font-size: 25px;
    margin-top: -2px;
}

.document-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.document-title a:hover {
    color: #d63638;
}

.document-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.document-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.document-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.document-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.document-size {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
}

.document-size .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.document-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 16px;
    background: #f78216;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.document-download-btn:hover {
    background: #b32d2e;
    color: #fff;
}

.document-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.documents-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .document-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .document-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .document-item {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .document-title a {
        color: #fff;
    }
    
    .document-excerpt {
        color: #ccc;
    }
    
    .document-category {
        background: #333;
        color: #ccc;
    }
    
    .document-meta {
        border-top-color: #333;
    }
}
