/**
 * Same Day Delivery Module - Badge Styles
 *
 * Premium, modern styling for delivery badges
 * 
 * @author Custom Development
 * @version 1.1.0
 */

/* =========================================
   Product Page Badge
   ========================================= */

.sameday-delivery-badge {
    margin: 20px 0;
    animation: sameday-slide-up 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    clear: both;
}

.sameday-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-left: 5px solid #00b894;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: #2d3436;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.sameday-badge-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.sameday-badge-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.15);
    border-color: rgba(0, 184, 148, 0.4);
}

.sameday-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e6f7f3;
    border-radius: 50%;
    color: #00b894;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.sameday-badge-inner:hover .sameday-icon {
    transform: scale(1.1) rotate(-5deg);
    background: #00b894;
    color: #ffffff;
}

.sameday-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.sameday-text {
    flex: 1;
    z-index: 1;
    color: #2d3436;
}

.sameday-highlight {
    color: #00b894;
    font-weight: 700;
}

/* =========================================
   Category Listing Mini Badge
   ========================================= */

.sameday-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 20px;
    color: #00b894;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.1);
    cursor: help;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.sameday-badge-mini:hover {
    transform: translateY(-2px);
    background: #00b894;
    color: #ffffff;
    border-color: #00b894;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
}

.sameday-mini-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* =========================================
   Animations
   ========================================= */

@keyframes sameday-slide-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Dark Mode Support
   ========================================= */

@media (prefers-color-scheme: dark) {
    .sameday-badge-inner {
        background: #2d3436;
        border-color: #00b894;
        color: #ffffff;
    }

    .sameday-badge-inner::before {
        background: linear-gradient(135deg, rgba(0, 184, 148, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .sameday-text {
        color: #dfe6e9;
    }

    .sameday-icon {
        background: rgba(0, 184, 148, 0.2);
    }

    .sameday-badge-mini {
        background: #2d3436;
        color: #00b894;
    }

    .sameday-badge-mini:hover {
        background: #00b894;
        color: #2d3436;
    }
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 576px) {
    .sameday-badge-inner {
        padding: 12px 18px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}