/**
 * Status Badge Styles
 * 
 * @package Speisekarten_Manager
 */

/* ==================== CSS Reset für Page Builder Isolation ==================== */
.skm-status-badge,
.skm-status-badge *,
.skm-status-badge *::before,
.skm-status-badge *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

.skm-status-badge {
    all: initial;
    display: inline-flex !important;
    box-sizing: border-box !important;
}

/* ==================== Base Badge Styles (Default = Gradient mit Schatten) ==================== */
.skm-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    cursor: default !important;
    white-space: nowrap !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
}

/* Icon */
.skm-status-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.skm-status-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

/* Text */
.skm-status-text {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Time Info */
.skm-status-time {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ==================== Status: Open (Geöffnet) ==================== */
.skm-status-open {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: #fff !important;
}

.skm-status-open .skm-status-icon {
    color: #fff !important;
}

.skm-status-open:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
}

/* ==================== Status: Closed (Geschlossen) ==================== */
.skm-status-closed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #fff !important;
}

.skm-status-closed .skm-status-icon {
    color: #fff !important;
}

.skm-status-closed:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* ==================== Style: Minimal ==================== */
.skm-badge-minimal {
    padding: 6px 12px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    border: 2px solid currentColor !important;
}

.skm-badge-minimal.skm-status-open {
    background: rgba(39, 174, 96, 0.1) !important;
    color: #27ae60 !important;
    border-color: #27ae60 !important;
}

.skm-badge-minimal.skm-status-closed {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}

.skm-badge-minimal:hover {
    transform: none !important;
    opacity: 0.85 !important;
}

/* ==================== Style: Pill (Einfarbig, rund) ==================== */
.skm-badge-pill {
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.skm-badge-pill .skm-status-icon {
    width: 10px !important;
    height: 10px !important;
}

.skm-badge-pill .skm-status-icon svg {
    width: 10px !important;
    height: 10px !important;
}

/* Pill - Einfarbig statt Gradient */
.skm-badge-pill.skm-status-open {
    background: #2ecc71 !important; /* Einfarbig grün */
    color: #fff !important;
}

.skm-badge-pill.skm-status-closed {
    background: #e74c3c !important; /* Einfarbig rot */
    color: #fff !important;
}

.skm-badge-pill:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* ==================== Style: Compact (Minimalistisch für Menü/Header) ==================== */
.skm-badge-compact {
    padding: 5px 10px !important;
    gap: 6px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    border: 1.5px solid currentColor !important;
    background: transparent !important;
}

.skm-badge-compact .skm-status-icon {
    width: 6px !important;
    height: 6px !important;
}

/* Compact - Nur Punkt statt Icon */
.skm-badge-compact .skm-status-icon svg {
    display: none !important;
}

.skm-badge-compact .skm-status-icon::before {
    content: '' !important;
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: currentColor !important;
}

.skm-badge-compact .skm-status-text {
    font-size: 12px !important;
    font-weight: 600 !important;
}

.skm-badge-compact .skm-status-time {
    display: none !important; /* Zeit ausblenden bei compact */
}

/* Compact - Geöffnet (Transparent mit grünem Border) */
.skm-badge-compact.skm-status-open {
    background: transparent !important;
    color: #27ae60 !important;
    border-color: #27ae60 !important;
}

/* Compact - Geschlossen (Transparent mit rotem Border) */
.skm-badge-compact.skm-status-closed {
    background: transparent !important;
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}

.skm-badge-compact:hover {
    opacity: 0.8 !important;
    transform: none !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    .skm-status-badge {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
    
    .skm-status-time {
        font-size: 11px !important;
    }
    
    .skm-badge-minimal {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ==================== Animation ==================== */
@keyframes skm-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.skm-status-open .skm-status-icon svg circle {
    animation: skm-pulse 2s ease-in-out infinite !important;
}
