/* Advert Date Badge Styles */

/* Shine Effect Animation */
@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(300%) skewX(-15deg);
        opacity: 0;
    }
}

/* Boosted Advert Card Date Badge (Homepage Featured Ads) */
.advert-date-badge-boosted {
    background: linear-gradient(135deg, rgba(255, 43, 88, 0.9) 0%, rgba(255, 77, 109, 0.9) 100%);
    background-size: 200% auto;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.advert-date-badge-boosted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
    animation-timing-function: ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.advert-date-badge-boosted i {
    font-size: 12px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.advert-date-badge-boosted span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    z-index: 1;
}

/* Advert List Date Badge (Job Advert List Pages) */
.advert-date-badge-list {
    background: linear-gradient(135deg, rgba(255, 43, 88, 0.9) 0%, rgba(255, 77, 109, 0.9) 100%);
    background-size: 200% auto;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.advert-date-badge-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
    animation-timing-function: ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.advert-date-badge-list i {
    font-size: 12px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.advert-date-badge-list span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    z-index: 1;
}

/* Advert Detail Date Badge (Job Advert Detail Page) */
.advert-date-badge-detail {
    background: linear-gradient(135deg, #ff2b58 0%, #ff4d6d 100%);
    background-size: 200% auto;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 43, 88, 0.2);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.advert-date-badge-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
    animation-timing-function: ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.advert-date-badge-detail i {
    font-size: 14px;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.advert-date-badge-detail span {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    z-index: 1;
}

/* Override project-info span color for detail badge */
.project-single-area .project-info ul li span .advert-date-badge-detail span {
    color: #ffffff !important;
}

