/* --- Document Cards Grid --- */

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.document-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
}

.document-card:hover {
    border-color: var(--secondary-gold);
    box-shadow: 0 20px 40px rgba(0, 49, 80, 0.05);
    transform: translateY(-5px);
}

.doc-type-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.doc-type-pdf {
    color: #ef4444;
}

.doc-type-docx {
    color: #3b82f6;
}

.doc-type-pptx {
    color: #f97316;
}

.doc-type-xlsx {
    color: #16a34a;
}

.doc-type-txt {
    color: #64748b;
}

.doc-type-archive {
    color: #7c3aed;
}

.doc-type-image {
    color: #ec4899;
}

.doc-type-file {
    color: #94a3b8;
}

.doc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.doc-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.doc-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    text-transform: uppercase;
}

.doc-badge.date {
    background: hsl(200, 95%, 95%);
    color: hsl(200, 95%, 30%);
}

/* --- Tag Badges --- */

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.doc-tags-icon {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-right: 2px;
}

.doc-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    background: hsl(43, 100%, 95%);
    color: hsl(43, 80%, 35%);
    border: 1px solid hsl(43, 80%, 85%);
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.doc-tag:hover {
    background: hsl(43, 80%, 88%);
    border-color: hsl(43, 80%, 70%);
}

.doc-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action-primary,
.btn-action-outline {
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 100%;
}

a.btn-action-primary {
    background: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

a.btn-action-primary:hover {
    background: var(--secondary-gold);
    border-color: var(--secondary-gold);
    color: var(--primary-blue);
}

a.btn-action-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid #e2e8f0;
}

a.btn-action-outline:hover {
    border-color: var(--primary-blue);
    background: #f8fafc;
}
