/*
 * =============================================
 * UNTERNEHMERMARKT - ICON STYLES
 * CSS für SVG-Icons
 * =============================================
 */

/* =============================================
   INLINE ICONS (in Text)
   ============================================= */
.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
}

.inline-icon svg {
    width: 100%;
    height: 100%;
}

/* =============================================
   SVG ICON BASE
   ============================================= */
.svg-icon,
[data-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.svg-icon svg,
[data-icon] svg {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* =============================================
   ICON SIZES
   ============================================= */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-3xl { width: 48px; height: 48px; }

/* =============================================
   ICON COLORS
   ============================================= */
.icon-primary { color: var(--color-primary, #2563eb); }
.icon-secondary { color: var(--color-slate-500, #64748b); }
.icon-success { color: var(--color-success, #3b82f6); }
.icon-warning { color: var(--color-warning, #f59e0b); }
.icon-error { color: var(--color-error, #ef4444); }
.icon-info { color: var(--color-info, #0ea5e9); }
.icon-white { color: white; }
.icon-dark { color: var(--color-slate-800, #1e293b); }
.icon-muted { color: var(--color-slate-400, #94a3b8); }

/* =============================================
   ICON CONTAINERS / BADGES
   ============================================= */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg, 8px);
    flex-shrink: 0;
}

.icon-box-sm {
    width: 32px;
    height: 32px;
}

.icon-box-md {
    width: 40px;
    height: 40px;
}

.icon-box-lg {
    width: 48px;
    height: 48px;
}

.icon-box-xl {
    width: 56px;
    height: 56px;
}

/* Icon Box Colors */
.icon-box-primary {
    background: var(--color-primary-100, #dbeafe);
    color: var(--color-primary-600, #2563eb);
}

.icon-box-success {
    background: var(--color-success-100, #dbeafe);
    color: var(--color-success-600, #1d4ed8);
}

.icon-box-warning {
    background: var(--color-warning-100, #fef3c7);
    color: var(--color-warning-600, #d97706);
}

.icon-box-error {
    background: var(--color-error-100, #fecaca);
    color: var(--color-error-600, #dc2626);
}

.icon-box-info {
    background: var(--color-info-100, #e0f2fe);
    color: var(--color-info-600, #0284c7);
}

.icon-box-dark {
    background: var(--color-slate-800, #1e293b);
    color: white;
}

/* Round Icon Boxes */
.icon-box-round {
    border-radius: 50%;
}

/* =============================================
   ICON IN BUTTONS
   ============================================= */
.btn .svg-icon,
.btn [data-icon] {
    margin-right: 8px;
    flex-shrink: 0;
}

.btn-icon-only {
    padding: 10px;
    width: auto;
    min-width: 40px;
}

.btn-icon-only .svg-icon,
.btn-icon-only [data-icon] {
    margin: 0;
}

/* =============================================
   ICON WITH TEXT
   ============================================= */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-text-sm {
    gap: 6px;
}

.icon-text-lg {
    gap: 12px;
}

/* =============================================
   FEATURE ICONS (größere Icons für Features)
   ============================================= */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary-100, #dbeafe), var(--color-primary-200, #bfdbfe));
    color: var(--color-primary-600, #2563eb);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon-lg {
    width: 80px;
    height: 80px;
}

.feature-icon-lg svg {
    width: 40px;
    height: 40px;
}

/* =============================================
   CHECKMARK LISTS
   ============================================= */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.check-list li::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--color-success-100, #dbeafe);
    color: var(--color-success-600, #1d4ed8);
}

.check-list li .svg-icon,
.check-list li [data-icon] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-success, #3b82f6);
}

/* Alternative: Check mit Icon */
.check-list-icons li::before {
    content: none;
}

/* =============================================
   ANIMATED ICONS
   ============================================= */
.icon-spin {
    animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-pulse {
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.icon-bounce {
    animation: icon-bounce 1s ease infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* =============================================
   ICON HOVER EFFECTS
   ============================================= */
.icon-hover-scale:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.icon-hover-rotate:hover svg {
    transform: rotate(15deg);
    transition: transform 0.2s ease;
}

/* =============================================
   RESPONSIVE ICON ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .icon-xl { width: 28px; height: 28px; }
    .icon-2xl { width: 32px; height: 32px; }
    .icon-3xl { width: 40px; height: 40px; }
}
