/**
 * Info Banner Styles
 * Plattformunabhängiges Informationsbanner, gesteuert über Admin-Panel
 */

.info-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: calc(100dvh - 90px);
    display: flex;
    flex-direction: column;
    color: white;
    border-radius: 16px;
    z-index: 9997;
    animation: infoBannerSlideDown 0.3s ease-out;
    padding: 20px;
}

/* Typ: Info (Standard) - Blau/Türkis */
.info-banner-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
}

/* Typ: Warnung - Orange/Gelb */
.info-banner-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}

/* Typ: Update - Lila/Pink */
.info-banner-update {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    box-shadow: 0 8px 32px rgba(167, 139, 250, 0.4);
}

.info-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    min-height: 0;
    overflow: hidden;
    flex: 1;
}

.info-banner-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.info-banner-text {
    flex: 1;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.info-banner-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.info-banner-close {
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.info-banner-close:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Slide-Down Animation */
@keyframes infoBannerSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Slide-Up Animation (beim Ausblenden) */
.info-banner-hiding {
    animation: infoBannerSlideUp 0.3s ease-in forwards;
}

@keyframes infoBannerSlideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .info-banner {
        top: 60px;
        width: calc(100% - 24px);
        padding: 16px;
    }

    .info-banner-icon {
        font-size: 36px;
    }

    .info-banner-text h3 {
        font-size: 18px;
    }

    .info-banner-text p {
        font-size: 14px;
    }

    .info-banner-close {
        width: 100%;
        padding: 10px 24px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .info-banner-info {
        background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
        box-shadow: 0 8px 32px rgba(2, 132, 199, 0.4);
    }

    .info-banner-warning {
        background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
        box-shadow: 0 8px 32px rgba(217, 119, 6, 0.4);
    }

    .info-banner-update {
        background: linear-gradient(135deg, #9f7aea 0%, #b794f4 50%, #d946ef 100%);
        box-shadow: 0 12px 48px rgba(159, 122, 234, 0.5);
    }
}
