/* AnnouncementPopupBundle - Styles */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

.announcement-modal,
.announcement-modal * {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

@keyframes apFadeIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: #ffffff;
}

.announcement-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.announcement-container.ap-visible {
    animation: apFadeIn 0.5s ease forwards;
}

.announcement-header {
    padding: 25px 30px 20px;
    text-align: center;
    border-bottom: none;
}

.announcement-logo {
    height: auto;
    width: 230px;
    margin-bottom: 10px;
}

.announcement-body {
    padding: 0 30px 0;
    overflow-y: visible;
    flex: 1;
}

.announcement-modal:not(.is-single) .announcement-body {
    padding-bottom: 10px;
}

.announcement-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-category {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 25px;
    transition: border-color 0.2s;
}

.announcement-single {
    border: none !important;
    text-align: center;
}

.announcement-single .announcement-image {
    margin-bottom: 15px;
}

.announcement-single .announcement-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.announcement-single .announcement-category-footer {
    text-align: center;
}

.announcement-type-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #e5e7eb;
    color: #374151;
}

.announcement-category-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.announcement-category-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.announcement-category-footer {
    margin-top: 14px;
    text-align: right;
}

@media (max-width: 480px) {
    .announcement-category-footer {
        text-align: center;
    }
}

.announcement-single .announcement-category-footer {
    margin-top: 14px;
}

/* Farben je Typ */
.announcement-type-news        { border-color: #3b82f6; }
.announcement-type-news        .announcement-type-label { background: #dbeafe; color: #1d4ed8; }
.announcement-type-news        .btn-link { color: #3b82f6; border-color: #3b82f6; }
.announcement-type-news        .btn-link:hover { background: #3b82f6; color: white; }

.announcement-type-advertising { border-color: #F5A623; }
.announcement-type-advertising .announcement-type-label { background: #fef3c7; color: #92400e; }
.announcement-type-advertising .btn-link { color: #F5A623; border-color: #F5A623; }
.announcement-type-advertising .btn-link:hover { background: #F5A623; color: white; }

.announcement-type-warning     { border-color: #f59e0b; }
.announcement-type-warning     .announcement-type-label { background: #fef3c7; color: #b45309; }
.announcement-type-warning     .btn-link { color: #f59e0b; border-color: #f59e0b; }
.announcement-type-warning     .btn-link:hover { background: #f59e0b; color: white; }

.announcement-type-emergency   { border-color: #ef4444; }
.announcement-type-emergency   .announcement-type-label { background: #fee2e2; color: #b91c1c; }
.announcement-type-emergency   .btn-link { color: #ef4444; border-color: #ef4444; }
.announcement-type-emergency   .btn-link:hover { background: #ef4444; color: white; }

.announcement-type-event       { border-color: #10b981; }
.announcement-type-event       .announcement-type-label { background: #d1fae5; color: #065f46; }
.announcement-type-event       .btn-link { color: #10b981; border-color: #10b981; }
.announcement-type-event       .btn-link:hover { background: #10b981; color: white; }

.announcement-type-info        { border-color: #6b7280; }
.announcement-type-info        .announcement-type-label { background: #f3f4f6; color: #374151; }
.announcement-type-info        .btn-link { color: #6b7280; border-color: #6b7280; }
.announcement-type-info        .btn-link:hover { background: #6b7280; color: white; }

/* Footer */
.announcement-footer {
    padding: 10px 30px 20px;
    text-align: center;
}

.announcement-footer::before {
    content: none;
}

.is-single .announcement-footer::before {
    content: '';
    display: block;
    width: 90px;
    height: 1px;
    background: #e5e7eb;
    margin: -14px auto 20px;
}

.btn-confirm {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 10px 32px;
    border: none;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-confirm:hover {
    background: #059669;
}

.btn-link {
    display: inline-block;
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    padding: 6px 24px;
    font-size: 15px;
    border-radius: 6px;
}

.btn-link:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
}
