@use "variables" as *;

.announcements__main-container {
    width: 24rem;
}

.announcements__list {
    list-style: none;
    padding: 0;
}

.announcements__container {
    display: flex;
    justify-content: flex-end;
}

.announcements__link-container {
    display: flex;
    padding: $spacing-1;
    gap: $spacing-1;
    border-radius: $border-radius-lg;
    &:hover {
        background-color: $color-palette-primary-100;
    }

    i {
        color: $color-palette-primary-500;
    }
}

.announcements__badge {
    background-color: $color-accessible-text-fuchsia;
    border-radius: 50%;
    color: $white;
    font-size: $font-size-sm;
    line-height: $font-size-sm;
    width: 0.625rem;
    height: 0.625rem;
    position: absolute;
    left: 39px;
    top: 14px;
}

.announcements__about-link {
    padding: $spacing-1;
    &:hover {
        background-color: $color-palette-primary-100;
    }
}

.announcements__list-item {
    display: flex;
    position: relative;
    flex-direction: row;
    gap: $spacing-3;
    padding: $spacing-2 $spacing-1;
    margin-bottom: $spacing-1;
    border-radius: $border-radius-md;
    &:hover {
        background-color: $color-palette-primary-100;
    }
}

.announcements__list-item--active {
    background-color: $color-palette-secondary-100;
}

.announcements__title {
    margin: 0;
    padding-bottom: $spacing-1;
    border-bottom: 1px solid $color-palette-gray-300;
    font-size: $font-size-lmd;
}

.announcements__content {
    display: flex;
    flex-direction: column;
    gap: $spacing-0;
}

.announcements__date {
    color: $color-palette-gray-800;
    font-size: $font-size-sm;
}

.announcements__image {
    height: 2.7rem;
    width: 2.7rem;
    background-color: var(--color-palette-secondary-200);
    color: var(--color-palette-secondary-500);
    border-radius: 50%;
    font-size: $font-size-lmd;
}

.announcements__label {
    font-weight: $font-weight-semi-bold;
}

.announcements__about {
    display: grid;
    flex-direction: column;
    gap: $spacing-0;
    margin: $spacing-3;
    grid-template-columns: 1fr 1fr;
}

.announcements__link {
    color: $color-palette-primary;
    &:hover {
        background-color: $color-palette-primary-100;
    }
}

.announcements__url {
    text-decoration: none;
    color: $black;
    width: 100%;
}

::ng-deep {
    .toolbar-announcements__container {
        &.p-overlaypanel {
            max-height: 80vh;
            overflow: auto;
        }
    }
}
