/* ============================================================
   Home Campaign Notification Toast
   File: public/assets/css/home-campaign-notification.css?v=1.2
   ============================================================ */

/* ── Wrapper — fixed bottom-right ── */
#hcn-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 360px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(99, 102, 241, 0.10);
    cursor: pointer;
    overflow: hidden;

    /* hidden by default — slides up from below */
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition: box-shadow 0.2s ease;
}

#hcn-toast.hcn-visible {
    pointer-events: auto;
    animation: hcnSlideIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

#hcn-toast.hcn-hiding {
    pointer-events: none;
    animation: hcnSlideOut 0.3s ease forwards;
}

@keyframes hcnSlideIn {
    from { transform: translateY(calc(100% + 40px)); opacity: 0; }
    to   { transform: translateY(0);                  opacity: 1; }
}

@keyframes hcnSlideOut {
    from { transform: translateY(0);                  opacity: 1; }
    to   { transform: translateY(calc(100% + 40px)); opacity: 0; }
}

#hcn-toast:hover {
    box-shadow:
        0 28px 70px rgba(99, 102, 241, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.18);
    transform: translateY(-3px);
}

/* ── Gradient header band ── */
#hcn-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 14px 16px 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* small "Featured" pill */
#hcn-pill {
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 2px 8px;
}

/* ── Logo ── */
#hcn-logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px; /* push below the pill */
}

#hcn-logo-wrap img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

/* ── Header text (name + tagline inside header) ── */
#hcn-header-text {
    flex: 1;
    min-width: 0;
    margin-top: 18px;
}

#hcn-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hcn-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Body ── */
#hcn-body {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#hcn-desc {
    flex: 1;
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── CTA button ── */
#hcn-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgb(254, 161, 34);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(254,161,34,0.40);
    transition: box-shadow 0.2s, transform 0.2s;
}

#hcn-toast:hover #hcn-cta {
    box-shadow: 0 6px 20px rgba(254,161,34,0.55);
    transform: scale(1.04);
}

#hcn-cta svg {
    width: 13px;
    height: 13px;
}

/* ── Close ── */
#hcn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
    z-index: 2;
}

#hcn-close:hover {
    background: rgba(255,255,255,0.35);
}

#hcn-close svg {
    width: 10px;
    height: 10px;
    color: #ffffff;
    display: block;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    #hcn-toast {
        width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}