/* CSS file for push notification — Oktagon 84 × Glassmorphism */

/* ===== Search Bar ===== */
.user-search {
    display: block;
    margin: 8px 0;
    position: relative;
}

.user-search > input {
    display: block;
    width: 100%;
    margin: auto;
    border-radius: 14px;
    height: 46px;
    font-size: 16px;
    padding: 10px 60px 10px 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.35);
    color: #fff;
    font-family: "Lato", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-search > input:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.user-search > input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.user-search > #search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffcc00;
    top: 3px;
    right: 3px;
    position: absolute;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-size: 1.1em;
    font-weight: 700;
    height: 40px;
    transition: all 0.25s ease;
}

.user-search > #search-btn:hover {
    background-color: #e6b800;
}

.user-search > #search-btn:active {
    color: #000;
    background-color: #d4a800;
    transform: scale(0.96);
}

/* ===== Notification Backdrop ===== */
.notification-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    animation: fadeInBackdrop 0.35s ease-out;
    padding: 20px;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Notification Card — Glassmorphism ===== */
.notification-box {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    padding: 0;
    background: linear-gradient(165deg, rgba(245, 240, 220, 0.88) 0%, rgba(235, 235, 240, 0.9) 40%, rgba(230, 230, 235, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    color: #1a1a1a;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(255, 204, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 0 1px rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    text-align: center;
    overflow: hidden;
    font-family: "Lato", sans-serif;
    animation: slideUpCard 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-box > hr {
    margin: 0;
    border-color: rgba(0, 0, 0, 0.06);
}

/* ===== Close Button ===== */
.notification-box .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    color: #000;
    background: #ffcc00;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    height: 32px;
    width: 32px;
    line-height: 1;
    border-radius: 50%;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.notification-box .close-btn:hover {
    background: #ffe066;
    transform: scale(1.08);
    box-shadow: 0 3px 14px rgba(255, 204, 0, 0.5);
}

.notification-box .close-btn:active {
    transform: scale(0.92);
    background: #e6b800;
}

/* ===== Notification Header — OKTAGON 84 Brand ===== */
.notification-header {
    display: flex;
    align-items: center;
    padding: 16px 50px 14px 18px;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.notification-header .app-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);*/
}

.notification-header .app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-header .header-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.notification-header .header-text .app-name {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    /*color: #8a7008;*/
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.notification-header .header-text .app-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ===== Legacy notification-title support ===== */
.notification-title {
    display: none;
}

/* ===== Notification Body ===== */
.notification-body {
    display: flex;
    flex-direction: column;
    font-size: 1em;
    margin: 0;
    padding: 0;
    position: relative;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.notification-body .img-container {
    display: block;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.img-container > img {
    display: block;
    width: 100%;
    border-radius: 0;
    border: none;
    object-fit: cover;
}

/* ===== Splash Overlay ===== */
.notification-body .splash {
    display: none;
}

/* ===== Text Container ===== */
.notification-body .text-container {
    display: block;
    width: 100%;
    margin: 0;
    background: linear-gradient(180deg, 
        rgba(232, 232, 236, 0) 0%, 
        rgba(232, 232, 236, 0.85) 30%, 
        rgba(232, 232, 236, 0.98) 100%);
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 40px 20px 26px;
    margin-top: -50px;
    z-index: 20;
    height: auto;
}

.text-container > .text-box {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(0, 0, 0, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    transform: none;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-family: "Lato", sans-serif;
    text-align: left;
    height: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.text-container > .text-box a {
    color: #b8960a;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 150, 10, 0.3);
    transition: border-color 0.2s ease;
}

.text-container > .text-box a:hover {
    border-bottom-color: #b8960a;
}

/* ===== Sponsor Badge — Red Bull ===== */
.notification-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px 18px;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.notification-sponsor .sponsor-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(0, 0, 0, 0.35);
    font-family: "Lato", sans-serif;
    line-height: 1;
}

.notification-sponsor .sponsor-logo {
    height: 18px;
    width: auto;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    filter: none;
}

.notification-sponsor:hover .sponsor-logo {
    opacity: 0.6;
}

/* ===== Animations ===== */
.blinking {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 20px rgba(255, 204, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        opacity: 0.5;
        text-shadow:
            0 0 40px rgba(255, 204, 0, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* ===== Responsive ===== */
@media (max-width: 420px) {
    .notification-container {
        padding: 10px;
        align-items: center;
    }

    .notification-box {
        border-radius: 24px;
        max-height: 88vh;
        margin: auto;
    }

    .notification-header {
        padding: 14px 46px 12px 14px;
    }

    .notification-header .app-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .notification-header .header-text .app-name {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .text-container > .text-box {
        font-size: 14px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .notification-box .close-btn {
        height: 30px;
        width: 30px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }

    .notification-sponsor .sponsor-logo {
        height: 15px;
    }
}

@media (min-width: 768px) {
    .notification-box {
        max-width: 420px;
    }
}