/**
 * Service Page Notifications Banner
 * Banner thông báo ở đầu các trang dịch vụ (VPS, Hosting, Email, Proxy)
 * Khi có nhiều thông báo cùng vị trí -> hiển thị dạng slide tự chuyển.
 */

.svc-notif {
    position: relative;
    margin: 0 auto 1.25rem auto;
    max-width: 1200px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.svc-notif-global-wrap {
    width: 100%;
    padding: 1rem 1rem 0 1rem;
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
}

.svc-notif-global-wrap .svc-notif {
    margin-bottom: 0;
}

.svc-notif-global-wrap .svc-notif.svc-notif--hidden {
    display: none !important;
}

.svc-notif--hidden {
    display: none !important;
}

.svc-notif__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.svc-notif__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.svc-notif__slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 3.25rem 0.85rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    color: #e2e8f0;
    font-size: 0.9375rem;
    line-height: 1.45;
    min-height: 56px;
}

.svc-notif__slide--has-link {
    cursor: pointer;
    transition: filter 0.2s ease;
}

.svc-notif__slide--has-link:hover {
    filter: brightness(1.08);
}

.svc-notif__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.svc-notif__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.svc-notif__title {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.9375rem;
    line-height: 1.3;
    margin: 0;
}

.svc-notif__message {
    color: rgba(226, 232, 240, 0.9);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
}

.svc-notif__message a {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.svc-notif__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease, color 0.2s ease;
}

.svc-notif__close:hover {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.svc-notif__dots {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    display: none;
    gap: 5px;
    z-index: 3;
}

.svc-notif--multi .svc-notif__dots { display: inline-flex; }

.svc-notif__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.svc-notif__dot--active {
    width: 16px;
    background: rgba(255, 255, 255, 0.95);
}

.svc-notif--info {
    /* background: linear-gradient(135deg, rgba(8, 47, 73, 0.85), rgba(6, 78, 109, 0.85)); */
    border-color: rgba(56, 189, 248, 0.45);
    /* box-shadow: 0 6px 24px rgba(56, 189, 248, 0.15); */
    max-width: 700px;
}
.svc-notif--info .svc-notif__title { color: #e0f2fe; }
.svc-notif--info .svc-notif__icon { color: #67e8f9; }

.svc-notif--success {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.85), rgba(4, 120, 87, 0.85));
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 6px 24px rgba(52, 211, 153, 0.15);
}
.svc-notif--success .svc-notif__title { color: #d1fae5; }
.svc-notif--success .svc-notif__icon { color: #6ee7b7; }

.svc-notif--warning {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.85), rgba(146, 64, 14, 0.85));
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
}
.svc-notif--warning .svc-notif__title { color: #fef3c7; }
.svc-notif--warning .svc-notif__icon { color: #fcd34d; }

.svc-notif--danger {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.85), rgba(153, 27, 27, 0.85));
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 6px 24px rgba(248, 113, 113, 0.15);
}
.svc-notif--danger .svc-notif__title { color: #fee2e2; }
.svc-notif--danger .svc-notif__icon { color: #fca5a5; }

@media (max-width: 640px) {
    .svc-notif {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    .svc-notif__slide {
        padding: 0.75rem 2.75rem 0.75rem 2.5rem;
        font-size: 0.875rem;
        min-height: 54px;
    }
    .svc-notif__icon { left: 0.65rem; width: 18px; height: 18px; }
    .svc-notif__icon svg { width: 18px; height: 18px; }
    .svc-notif__title { font-size: 0.875rem; }
    .svc-notif__message { font-size: 0.8125rem; }
    .svc-notif__close { width: 28px; height: 28px; right: 0.5rem; }
}
