/* =====================================================
   SITEWIDE PROMOTION BANNER - GreyBox LLC
   Eye-catching promotional banner for special offers
   ===================================================== */

.promo-banner {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 50%, #ff8c2e 100%);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.5s ease-out 0.5s forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.promo-banner.hidden {
    transform: translateY(-100%);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 16px 20px;
    position: relative;
}

/* Promo Icon */
.promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.promo-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Promo Text */
.promo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff4500;
    background: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.promo-message {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-message strong {
    font-weight: 700;
}

.promo-price-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    font-weight: 500;
}

.promo-price-new {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: price-glow 2s ease-in-out infinite;
}

@keyframes price-glow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.promo-save {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ff4500;
    background: #fff;
    border-radius: 12px;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-3deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(3deg);
    }
}

/* Promo CTA Button */
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #ff4500;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.promo-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    stroke: #ff4500;
}

.promo-cta:hover svg {
    transform: translateX(4px);
    stroke: #ff4500;
}

/* Close Button */
.promo-close {
    right: 20px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.promo-close svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .promo-banner {
        top: 70px;
    }

    .promo-content {
        flex-wrap: wrap;
        padding: 14px 50px 14px 20px;
        gap: 12px;
    }

    .promo-icon {
        width: 36px;
        height: 36px;
    }

    .promo-icon svg {
        width: 20px;
        height: 20px;
    }

    .promo-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex: 1 1 100%;
    }

    .promo-message {
        font-size: 14px;
        gap: 6px;
    }

    .promo-price-new {
        font-size: 16px;
    }

    .promo-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .promo-close {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .promo-content {
        padding: 10px;
        gap: 8px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .promo-icon {
        display: none;
    }

    .promo-text {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 1;
        flex-wrap: wrap;
    }

    .promo-badge {
        font-size: 9px;
        padding: 2px 6px;
        white-space: nowrap;
    }

    .promo-message {
        font-size: 11px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .promo-message strong {
        display: none;
    }

    .promo-price-old {
        font-size: 11px;
    }

    .promo-price-new {
        font-size: 14px;
        font-weight: 700;
    }

    .promo-save {
        font-size: 10px;
        padding: 2px 6px;
    }

    .promo-cta {
        font-size: 12px;
        padding: 8px 14px;
        width: auto;
        flex-shrink: 0;
    }

    .promo-close {
        right: 8px;
        width: 28px;
        height: 28px;
    }

    .promo-close svg {
        width: 16px;
        height: 16px;
    }
}

/* Adjust body padding when banner is visible */
body.promo-active {
    padding-top: 60px;
}

@media (max-width: 991px) {
    body.promo-active {
        padding-top: 120px;
    }
}

@media (max-width: 767px) {
    body.promo-active {
        padding-top: 90px;
    }
}
