/* ============================================
   URGENCY BAR (MARQUEE) & PLACEMENT BADGE CSS
   ============================================ */

/* 1. TOP SCROLLING MARQUEE */
.urgency-marquee-container {
    background: linear-gradient(90deg, #d32f2f, #f44336, #d32f2f);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.urgency-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.urgency-marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
}

.marquee-icon {
    margin: 0 8px;
    font-size: 1.1rem;
    animation: pulse-icon 1.5s infinite alternate;
}

.marquee-btn {
    background: #ffc107;
    color: #333;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 10px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s, background 0.2s;
}

.marquee-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Translates -50% because we duplicate the content to make it seamless */
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}

@media (max-width: 768px) {
    .urgency-marquee-content {
        font-size: 0.85rem;
        animation-duration: 20s;
    }

    .marquee-item {
        padding: 0 15px;
    }

    .marquee-btn {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
}

/* 2. STICKY PLACEMENT GUARANTEE BADGE */
.placement-badge-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1005;
    /* Above content, below open modals */
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.placement-badge {
    background: linear-gradient(135deg, #FFD700, #FDB931, #E5A91A);
    color: #4A3300;
    padding: 15px 12px 15px 20px;
    border-radius: 30px 0 0 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2), inset 2px 2px 5px rgba(255, 255, 255, 0.6);
    border: 2px solid #FFF8DC;
    border-right: none;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.placement-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

.badge-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: gentle-bounce 2s infinite;
}

.badge-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.badge-title {
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.badge-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.2px;
}

.placement-badge-container:hover {
    transform: translateY(-50%) scale(1.05) translateX(-5px);
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Mobile version - make it smaller and icon only initially */
@media (max-width: 768px) {
    .placement-badge-container {
        top: auto;
        bottom: 20px;
        transform: translateY(0);
    }

    .placement-badge {
        padding: 10px 10px 10px 15px;
        border-radius: 25px 0 0 25px;
        gap: 8px;
    }

    .badge-icon {
        font-size: 1.8rem;
    }

    .badge-text {
        display: none;
        /* Hide text on small screens to save space */
    }

    .placement-badge-container:hover .badge-text {
        display: flex;
        /* Show on touch/hover */
    }

    .placement-badge-container:hover {
        transform: scale(1.05) translateX(-2px);
    }

    .badge-title {
        font-size: 0.9rem;
    }

    .badge-subtitle {
        font-size: 0.65rem;
    }
}

/* COUNTDOWN TIMER STYLES */
.marquee-timer {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 10px;
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 1px;
}

.timer-pulse {
    animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
    from {
        color: #FFD700;
    }

    to {
        color: #ffeb3b;
        text-shadow: 0 0 5px #ffeb3b;
    }
}