/**
 * DESI Enterprise Portal - Footer Styles
 * 
 * Floating Enterprise Footer - Premium Card Design
 * 
 * @package Themes\Designstuuv\Assets\CSS
 * @version 2.0 - Premium Card Level
 * 
 * Design: Floating Card mit abgerundeten Ecken, Schatten und Premium-Look
 */

/* ═══════════════════════════════════════════════════════════════════════
   ENTERPRISE FOOTER - FLOATING CARD BASE
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer {
    background: transparent;
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.enterprise-footer__container {
    max-width: 1440px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(35, 54, 69, 0.05);
    padding: 48px 40px 32px 40px;
    position: relative;
    overflow: hidden;
    
    /* Subtile Top-Border in Designstuuv-Rosa */
    border-top: 3px solid #e5b7ba;
    
    /* Optional: Wasserzeichen-Icon im Hintergrund */
    /* Kann aktiviert werden, wenn Icon-Asset verfügbar ist */
}

/* Wasserzeichen-Icon (optional, wenn Asset verfügbar) */
.enterprise-footer__container::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background-image: url('/public/assets/logo-icon.svg'); /* Pfad anpassen */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER GRID - RESPONSIVE LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.enterprise-footer__heading {
    font-family: 'Cabrito Didone', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #233645;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════════════
   SYSTEM STATUS SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enterprise-footer__status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.enterprise-footer__status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.enterprise-footer__status-dot--operational {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    
    /* CSS Pulse Animation */
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
                    0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
                    0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.enterprise-footer__status-dot--maintenance {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    animation: pulse-orange 2s ease-in-out infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15),
                    0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15),
                    0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.enterprise-footer__status-dot--error {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15),
                    0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15),
                    0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.enterprise-footer__status-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.enterprise-footer__text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   API STATUS BADGES (Chips)
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__api-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.enterprise-footer__api-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 12px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.enterprise-footer__api-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.enterprise-footer__api-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.enterprise-footer__api-badge--error {
    background: #fee2e2;
    color: #991b1b;
}

.enterprise-footer__api-badge-icon {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION LISTS
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__nav {
    margin: 0;
}

.enterprise-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enterprise-footer__item {
    margin: 0;
    padding: 0;
}

.enterprise-footer__link {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    line-height: 1.5;
}

.enterprise-footer__link:hover,
.enterprise-footer__link:focus {
    color: #e5b7ba;
    transform: translateX(5px);
    outline: none;
}

.enterprise-footer__link:focus-visible {
    outline: 2px solid #e5b7ba;
    outline-offset: 4px;
    border-radius: 4px;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   BOTTOM BAR - BRANDING & COPYRIGHT
   ═══════════════════════════════════════════════════════════════════════ */

.enterprise-footer__bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.enterprise-footer__bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.enterprise-footer__branding {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.enterprise-footer__branding-link {
    color: #233645;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.enterprise-footer__branding-link:hover,
.enterprise-footer__branding-link:focus {
    color: #e5b7ba;
    outline: none;
}

.enterprise-footer__branding-link strong {
    font-weight: 600;
    color: inherit;
}

.enterprise-footer__copyright {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.enterprise-footer__version {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - TABLET (768px - 1024px)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .enterprise-footer {
        padding: 0 16px;
        margin-top: 40px;
        margin-bottom: 32px;
    }
    
    .enterprise-footer__container {
        padding: 40px 32px 28px 32px;
        border-radius: 20px;
    }
    
    .enterprise-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE (< 768px)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .enterprise-footer {
        padding: 0 12px;
        margin-top: 32px;
        margin-bottom: 24px;
    }
    
    .enterprise-footer__container {
        padding: 32px 24px 24px 24px;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .enterprise-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .enterprise-footer__section {
        text-align: center;
    }
    
    .enterprise-footer__status-indicator {
        justify-content: center;
    }
    
    .enterprise-footer__api-badges {
        justify-content: center;
    }
    
    .enterprise-footer__bottom-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .enterprise-footer__branding,
    .enterprise-footer__copyright,
    .enterprise-footer__version {
        font-size: 11px;
    }
    
    /* Wasserzeichen auf Mobile ausblenden */
    .enterprise-footer__container::before {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .enterprise-footer__link {
        transition: none;
    }
    
    .enterprise-footer__branding-link {
        transition: none;
    }
    
    .enterprise-footer__status-dot--operational,
    .enterprise-footer__status-dot--maintenance,
    .enterprise-footer__status-dot--error {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .enterprise-footer__container {
        border: 2px solid #233645;
    }
    
    .enterprise-footer__link {
        text-decoration: underline;
    }
    
    .enterprise-footer__link:hover,
    .enterprise-footer__link:focus {
        text-decoration-thickness: 2px;
    }
}

/* Print Styles */
@media print {
    .enterprise-footer {
        background: white;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .enterprise-footer__container {
        box-shadow: none;
        border-top: 2px solid #000;
    }
    
    .enterprise-footer__link {
        color: #000;
        text-decoration: underline;
    }
    
    .enterprise-footer__status-dot--operational,
    .enterprise-footer__status-dot--maintenance,
    .enterprise-footer__status-dot--error {
        animation: none;
    }
    
    .enterprise-footer__container::before {
        display: none;
    }
}
