/* ============================================
   MERCURY NOTIFICATIONS — TIKAI TEV
   Slide-in casino offers panel (right side)
   Matches hero section palette
   ============================================ */

/* ========== Icon — own stacking context above absolute siblings (search/hamburger) ========== */
.mercury-notification-icon-wrapper {
    position: relative;
    z-index: 50;
    display: inline-flex;
    align-items: center;
}
#mercury-notification-icon {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ========== Icon badge ========== */
#mercury-notification-icon .notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e84393, #c4397c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(232,67,147,0.5);
    animation: mercPulse 2s infinite;
    pointer-events: none;
}
@keyframes mercPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* ========== Wrapper — fully inert until active ========== */
.mercury-notification-panel-wrapper {
    pointer-events: none;
}
.mercury-notification-panel-wrapper * { box-sizing: border-box; }

/* ========== Overlay ========== */
.notification-overlay {
    position: fixed;
    inset: 0;
    background: rgb(10 2 25 / 34%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 999998;
}
.notification-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ========== Sidebar — off-screen & inert until active ========== */
.notification-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: linear-gradient(165deg, #1a0533 0%, #2d0d4e 35%, #421b6e 100%);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    color: #fff;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}
.notification-sidebar.active {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}
/* Decorative pattern overlay (same as hero) */
.notification-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
/* Pink glow */
.notification-sidebar::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(232,67,147,0.25), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ========== Header ========== */
.notification-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(0,0,0,0.15), transparent);
}
.notification-header > span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-left: 16px;
}
.notification-header > span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #e84393, #c4397c);
    border-radius: 2px;
}
.close-notifications {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    padding: 0;
}
.close-notifications:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: rotate(90deg);
}
.close-notifications svg {
    width: 18px;
    height: 18px;
}

/* ========== Content area ========== */
.notification-content {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.notification-content::-webkit-scrollbar {
    width: 6px;
}
.notification-content::-webkit-scrollbar-track {
    background: transparent;
}
.notification-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.notification-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== Casino card ========== */
.notification-content .casino-item {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    transition: all 0.25s;
    overflow: hidden;
    animation: mercSlideInItem 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.notification-content .casino-item:nth-child(1) { animation-delay: 0.05s; }
.notification-content .casino-item:nth-child(2) { animation-delay: 0.10s; }
.notification-content .casino-item:nth-child(3) { animation-delay: 0.15s; }
.notification-content .casino-item:nth-child(4) { animation-delay: 0.20s; }
.notification-content .casino-item:nth-child(5) { animation-delay: 0.25s; }
.notification-content .casino-item:nth-child(6) { animation-delay: 0.30s; }
.notification-content .casino-item:nth-child(n+7) { animation-delay: 0.35s; }
@keyframes mercSlideInItem {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notification-content .casino-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(196,229,56,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* NEW badge */
.notification-content .new-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e84393, #c4397c);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    letter-spacing: 0.08em;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(232,67,147,0.4);
}

/* Logo */
.notification-content .casino-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notification-content .casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info block */
.notification-content .casino-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
        margin: 7px;
}
.notification-content .casino-info > span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notification-content .casino-info > p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #ffd32a;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA button */
.notification-content .bonus-button {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #c4e538;
    color: #1a0533 !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.01em;
}
.notification-content .bonus-button:hover {
    background: #b5d632;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196,229,56,0.45);
    color: #1a0533 !important;
}
.notification-content .bonus-button i {
    color: #1a0533;
    font-size: 14px;
}

/* Empty state */
.notification-content:empty::before {
    content: 'Šobrīd nav aktīvu piedāvājumu.';
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 60px 20px;
    font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .notification-sidebar {
        width: 100vw;
    }
    .notification-header {
        padding: 18px 18px 14px;
    }
    .notification-content {
        padding: 14px 14px 20px;
    }
    .notification-content .casino-item {
        padding: 14px;
    }
    .notification-content .casino-logo {
        width: 52px;
        height: 52px;
    }
}
