/**
 * Sponsored Service Badges - Frontend Public Styles
 * Phase 8.1 - Frontend Labels Implementation
 *
 * @package Batumi_Theme
 * @since 1.0.0
 */

/* Sponsored Badge on Service Cards */
.sponsored-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    z-index: 10;
    letter-spacing: 0.5px;
    animation: sponsoredPulse 3s ease-in-out infinite;
}

@keyframes sponsoredPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

/* Promoted Service Card Styling */
.service-card-promoted {
    border: 2px solid #667eea !important;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15) !important;
    position: relative;
}

.service-card-promoted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
}

/* Ensure image wrapper is positioned for badge */
.service-card-image-wrapper {
    position: relative;
}

/* Hover effect for promoted cards */
.service-card-promoted:hover {
    border-color: #5568d3 !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Priority-based visual hierarchy (optional) */
.service-card-promoted[data-priority="3"] {
    border-width: 3px;
}

.service-card-promoted[data-priority="2"] {
    border-width: 2px;
}

.service-card-promoted[data-priority="1"] {
    border-width: 2px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .sponsored-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }

    .service-card-promoted {
        border-width: 2px !important;
    }

    .service-card-promoted::before {
        height: 3px;
    }
}

@media screen and (max-width: 480px) {
    .sponsored-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Accessibility - ensure badge is readable */
@media (prefers-reduced-motion: reduce) {
    .sponsored-badge {
        animation: none;
    }

    .service-card-promoted:hover {
        transform: none;
    }
}

/* Print styles - maintain sponsored indicator */
@media print {
    .sponsored-badge {
        background: #667eea;
        box-shadow: none;
        animation: none;
    }

    .service-card-promoted {
        border: 2px solid #667eea !important;
        box-shadow: none !important;
    }
}
