/* artifacts.css */

#artifactsPage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
}

.artifacts-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e8eaed;
    background: white;
}

.artifacts-header h1 {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin: 0;
}

.artifacts-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.artifacts-controls input,
.artifacts-controls select {
    padding: 10px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: white;
}

.artifacts-controls input {
    flex: 1;
}

.artifacts-controls select {
    cursor: pointer;
}

.view-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    background: white;
    color: #5f6368;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-toggle-btn.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
}

#artifactsContainer {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

#artifactsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.artifact-card {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.artifact-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.artifact-preview-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    overflow: hidden;
}

.artifact-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.artifact-card-content {
    padding: 16px;
}

.artifact-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
}

.artifact-card-description {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
    margin-bottom: 10px;
}

.artifact-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.artifact-card-tags span {
    padding: 4px 10px;
    background: #f1f3f4;
    color: #5f6368;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.artifact-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.artifact-card-type {
    display: flex;
    align-items: center;
    gap: 6px;
}

.artifact-card-type .icon {
    font-size: 16px;
}

.artifact-card-type .label {
    font-size: 11px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artifact-card-date {
    font-size: 12px;
    color: #5f6368;
}

/* Artifact Detail View */
#artifactDetailView {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #f8f9fa;
}

#artifactDetailView .back-button {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    background: white;
    color: #5f6368;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    width: fit-content;
    transition: all 0.2s;
}

#artifactDetailView .back-button:hover {
    background: #f8f9fa;
}

.artifact-detail-header {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.artifact-detail-header .icon {
    font-size: 64px;
}

.artifact-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 12px 0;
}

.artifact-detail-description {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.artifact-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 16px;
}

.artifact-detail-conversation {
    font-size: 14px;
    color: #1a73e8;
    cursor: pointer;
}

.artifact-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artifact-detail-tags span {
    padding: 6px 12px;
    background: #f1f3f4;
    color: #202124;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.artifact-detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.artifact-detail-actions button {
    padding: 8px 16px;
    background: white;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.artifact-detail-actions button:hover {
    background: #f8f9fa;
}

.artifact-detail-actions .primary {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.artifact-detail-actions .primary:hover {
    background: #1765cc;
}

.artifact-detail-actions .danger {
    color: #d32f2f;
    margin-left: auto;
}

.artifact-detail-actions .danger:hover {
    background: #ffebee;
}

.artifact-detail-preview {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    text-align: center;
}
