/**
 * Copyright © 2026 Stimmt. All rights reserved.
 *
 * Product Attachments - Frontend Styles
 * Most styling is handled via Tailwind classes in the template.
 * This file provides icon-specific styling and print overrides.
 */

/* File type icon color coding */
.attachment-icon.icon-pdf {
    background-color: #fef2f2;
}
.attachment-icon.icon-pdf span {
    color: #dc2626;
}

.attachment-icon.icon-doc {
    background-color: #eff6ff;
}
.attachment-icon.icon-doc span {
    color: #2563eb;
}

.attachment-icon.icon-xls {
    background-color: #f0fdf4;
}
.attachment-icon.icon-xls span {
    color: #16a34a;
}

.attachment-icon.icon-zip {
    background-color: #fefce8;
}
.attachment-icon.icon-zip span {
    color: #ca8a04;
}

.attachment-icon.icon-image {
    background-color: #fdf4ff;
}
.attachment-icon.icon-image span {
    color: #9333ea;
}

/* Hover overrides for icon backgrounds */
.attachment-link:hover .attachment-icon.icon-pdf {
    background-color: #fee2e2;
}
.attachment-link:hover .attachment-icon.icon-doc {
    background-color: #dbeafe;
}
.attachment-link:hover .attachment-icon.icon-xls {
    background-color: #dcfce7;
}
.attachment-link:hover .attachment-icon.icon-zip {
    background-color: #fef9c3;
}
.attachment-link:hover .attachment-icon.icon-image {
    background-color: #fae8ff;
}

/* Print: show URLs, hide download icons */
@media print {
    .attachment-download {
        display: none;
    }
    .attachment-link::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #6b7280;
    }
}
