/* ==========================================================================
   Site-wide promo widgets: gift-box toast + fixed bottom promo bar
   Loaded on every page via template/header.blade.php.
   Prefix: .hdp- to avoid collisions.
   ========================================================================== */

/* ---------------- Gift toast (bottom-left, floating) ---------------- */
.hdp-gift-btn {
    position: fixed; left: 18px; bottom: 84px; z-index: 9997;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #f2cf6e, #c9971f);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(201,151,31,0.55);
    cursor: pointer; border: 2px solid #fff;
    animation: hdp-pulse 2.2s ease-in-out infinite;
}
.hdp-gift-btn i { font-size: 26px; color: #2a1c05; }
.hdp-gift-btn .hdp-gift-dot {
    position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%;
    background: #e2432f; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
    border: 2px solid #fff;
}
@keyframes hdp-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(201,151,31,0.55), 0 0 0 0 rgba(201,151,31,0.5); }
    50% { box-shadow: 0 8px 22px rgba(201,151,31,0.55), 0 0 0 12px rgba(201,151,31,0); }
}

.hdp-toast {
    position: fixed; right: 22px; bottom: 90px; z-index: 9998; width: 320px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 12px; box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    border: 1px solid rgba(201,151,31,0.25); overflow: hidden;
    transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.3,1.2), opacity .3s ease;
    pointer-events: none;
}
.hdp-toast.hdp-show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.hdp-toast-head {
    background: linear-gradient(135deg, #17171b, #34343d); color: #fff; padding: 14px 16px;
    display: flex; align-items: center; gap: 10px; position: relative;
}
.hdp-toast-head i { color: #f2cf6e; font-size: 20px; }
.hdp-toast-head b { font-size: 14px; }
.hdp-toast-close {
    position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,0.12); border: none; color: #fff;
    width: 22px; height: 22px; border-radius: 50%; font-size: 12px; line-height: 22px; text-align: center;
    cursor: pointer; padding: 0;
}
.hdp-toast-body { padding: 16px; }
.hdp-toast-body p { font-size: 13.5px; color: #5c4a38; margin: 0 0 12px; line-height: 1.6; }
.hdp-toast-body .hdp-toast-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: linear-gradient(135deg, #f2cf6e, #c9971f); color: #2a1c05; font-weight: 700; font-size: 13.5px;
    padding: 10px; border-radius: 8px; text-decoration: none;
}
.hdp-toast-body .hdp-toast-cta:hover { color: #2a1c05; text-decoration: none; opacity: .92; }

/* ---------------- Fixed bottom promo bar ---------------- */
.hdp-bottombar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9996;
    background: linear-gradient(90deg, #17171b, #232329 55%, #17171b);
    border-top: 2px solid #c9971f; color: #fff; padding: 10px 20px;
    display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
    transform: translateY(0); transition: transform .3s ease;
}
.hdp-bottombar.hdp-hidden { transform: translateY(100%); }
.hdp-bottombar-msg { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hdp-bottombar-msg i { color: #f2cf6e; font-size: 18px; }
.hdp-bottombar-msg b { color: #f2cf6e; }
.hdp-bottombar-actions { display: flex; align-items: center; gap: 10px; }
.hdp-bottombar-actions a {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-decoration: none;
    padding: 8px 18px; border-radius: 50px;
}
.hdp-bottombar-actions .hdp-bar-gold { background: linear-gradient(135deg, #f2cf6e, #c9971f); color: #2a1c05; }
.hdp-bottombar-actions .hdp-bar-gold:hover { color: #2a1c05; opacity: .9; }
.hdp-bottombar-actions .hdp-bar-call { background: #b0281f; color: #fff; }
.hdp-bottombar-actions .hdp-bar-call:hover { color: #fff; opacity: .9; }
.hdp-bottombar-close {
    background: none; border: none; color: rgba(255,255,255,0.6); font-size: 16px; cursor: pointer; padding: 4px 6px;
}
.hdp-bottombar-close:hover { color: #fff; }

body.hdp-has-bottombar { padding-bottom: 46px; }

@media (max-width: 767px) {
    .hdp-gift-btn { width: 50px; height: 50px; left: 12px; bottom: 78px; }
    .hdp-gift-btn i { font-size: 21px; }
    .hdp-toast { right: 10px; bottom: 78px; width: calc(100vw - 20px); }
    .hdp-bottombar { padding: 8px 12px; gap: 10px; }
    .hdp-bottombar-msg { font-size: 12.5px; }
    .hdp-bottombar-msg span.hdp-msg-full { display: none; }
    .hdp-bottombar-actions a { padding: 7px 12px; font-size: 12px; }
    body.hdp-has-bottombar { padding-bottom: 54px; }
}
@media (max-width: 480px) {
    .hdp-bottombar-msg { display: none; }
}
