/* =====================================================
   NOTICE / ANNOUNCEMENT BAR
===================================================== */

.notice-bar {
    position: fixed;

    left: 50%;
    bottom: 22px;

    width: min(1000px, calc(100% - 32px));

    transform: translate(-50%, 140px);

    z-index: 99990;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.45s cubic-bezier(.2, .8, .2, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =====================================================
   SHOW
===================================================== */

.notice-bar.show {
    transform: translate(-50%, 0);

    opacity: 1;

    visibility: visible;
}


/* =====================================================
   CONTENT
===================================================== */

.notice-bar-content {
    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        18px
        52px
        18px
        20px;
}


/* =====================================================
   ICON
===================================================== */

.notice-icon {
    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #fff3cd;

    color: #d89b00;

    font-size: 21px;
}


/* =====================================================
   INFORMATION
===================================================== */

.notice-info {
    flex: 1;

    min-width: 0;
}


/* =====================================================
   HEADING
===================================================== */

.notice-heading {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 4px;
}


.notice-label {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #d08c00;
}


.notice-pinned {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 3px 7px;

    border-radius: 20px;

    background: #f3f3f3;

    color: #666;

    font-size: 9px;

    font-weight: 600;
}


/* =====================================================
   TITLE
===================================================== */

.notice-title {
    margin: 0;

    color: #18202a;

    font-family: 'Poppins', sans-serif;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =====================================================
   META
===================================================== */

.notice-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 6px;

    color: #777;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;
}


.notice-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}


.notice-meta i {
    color: #9381ff;
}


/* =====================================================
   VIEW BUTTON
===================================================== */

.notice-view-btn {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding:
        10px
        17px;

    border-radius: 11px;

    background: #9381ff;

    color: #ffffff;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.notice-view-btn:hover {
    background: #7d6ae8;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =====================================================
   CLOSE
===================================================== */

.notice-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #f3f3f3;

    color: #666;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.notice-close:hover {
    background: #222;

    color: #ffffff;

    transform: rotate(90deg);
}


/* =====================================================
   15 SECOND PROGRESS
===================================================== */

.notice-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background: #9381ff;

    transform-origin: left;

    transform: scaleX(1);
}


.notice-bar.show .notice-progress {
    animation:
        noticeCountdown 15s linear forwards;
}


@keyframes noticeCountdown {

    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .notice-bar {
        bottom: 12px;

        width:
            calc(100% - 20px);

        border-radius: 16px;
    }


    .notice-bar-content {
        align-items: flex-start;

        gap: 11px;

        padding:
            15px
            42px
            15px
            14px;
    }


    .notice-icon {
        width: 40px;
        height: 40px;

        border-radius: 11px;

        font-size: 17px;
    }


    .notice-heading {
        gap: 6px;
    }


    .notice-label {
        font-size: 8px;

        letter-spacing: .7px;
    }


    .notice-pinned {
        font-size: 8px;

        padding: 2px 5px;
    }


    .notice-title {
        font-size: 14px;

        white-space: normal;

        line-height: 1.3;
    }


    .notice-meta {
        display: block;

        margin-top: 5px;

        font-size: 9px;

        line-height: 1.7;
    }


    .notice-meta span {
        display: flex;
    }


    .notice-view-btn {
        position: absolute;

        right: 13px;
        bottom: 14px;

        min-height: 32px;

        padding:
            7px
            10px;

        font-size: 9px;

        border-radius: 8px;
    }


    .notice-close {
        top: 8px;
        right: 8px;

        width: 27px;
        height: 27px;

        font-size: 12px;
    }

}