/* Brand Library Frontend Styling */

.brand-library-frontend {
    margin: 30px 0;
}

.brand-library-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-library-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-library-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.brand-library-image-wrapper {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex: 1;
}

.brand-library-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.brand-library-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    font-weight: 500;
}

.brand-library-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.brand-library-meta span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    color: #666;
    font-weight: 600;
}

.brand-library-meta .size-badge {
    background: #d5f4e6;
    color: #1e4620;
}

.brand-library-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.brand-library-download-btn,
.brand-library-copy-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #2271b1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.brand-library-download-btn:hover,
.brand-library-copy-btn:hover {
    background: #135e96;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-library-download-btn:active,
.brand-library-copy-btn:active {
    transform: translateY(0);
}

.brand-library-copy-btn {
    background: #50575e;
}

.brand-library-copy-btn:hover {
    background: #3c434a;
}

.brand-library-copy-btn.copied {
    background: #00a32a;
}

.brand-library-copy-btn.copied:hover {
    background: #008a20;
}

.download-icon,
.copy-icon {
    font-size: 16px;
    line-height: 1;
}

.brand-library-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brand-library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brand-library-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brand-library-actions {
        flex-direction: column;
    }
    
    .brand-library-download-btn,
    .brand-library-copy-btn {
        width: 100%;
    }
}

/* Print stijlen */
@media print {
    .brand-library-actions {
        display: none;
    }
    
    .brand-library-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.brand-library-download-btn:focus,
.brand-library-copy-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Dark mode support (optioneel) */
@media (prefers-color-scheme: dark) {
    .brand-library-item {
        background: #1e1e1e;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .brand-library-item:hover {
        border-color: #555;
    }
    
    .brand-library-image-wrapper {
        background: #2a2a2a;
    }
    
    .brand-library-description {
        color: #e0e0e0;
    }
    
    .brand-library-meta span {
        background: #333;
        color: #ccc;
    }
    
    .brand-library-empty {
        background: #2a2a2a;
        color: #999;
    }
}

/* Animaties */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-library-item {
    animation: fadeIn 0.4s ease;
}

.brand-library-item:nth-child(1) { animation-delay: 0.05s; }
.brand-library-item:nth-child(2) { animation-delay: 0.1s; }
.brand-library-item:nth-child(3) { animation-delay: 0.15s; }
.brand-library-item:nth-child(4) { animation-delay: 0.2s; }
.brand-library-item:nth-child(5) { animation-delay: 0.25s; }
.brand-library-item:nth-child(6) { animation-delay: 0.3s; }

/* Notificatie voor gekopieerde URL */
.brand-library-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00a32a;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
