/**
 * Sponsored Content Styling
 * Visual differentiation for sponsored listings in search results
 */

/* Sponsored Card Styling */
.sponsored-card {
    position: relative;
    border: 2px solid #FFD700 !important;
    background: linear-gradient(135deg, #FFFEF0 0%, #FFFFF8 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
    transition: all 0.3s ease;
}

.sponsored-card:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-2px);
}

/* Sponsored Badge */
.sponsored-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 12px 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.sponsored-badge i {
    margin-right: 4px;
}

/* Sponsored Logo */
.sponsored-logo {
    max-height: 50px;
    object-fit: contain;
}

/* Light Mode Styling */
body:not(.dark-mode) .sponsored-card {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, #FFFEF0 0%, #FFFFF8 100%);
}

body:not(.dark-mode) .sponsored-card .card-body {
    background: transparent;
}

body:not(.dark-mode) .sponsored-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

/* Dark Mode Styling */
body.dark-mode .sponsored-card {
    border-color: #FFD700 !important;
    background: linear-gradient(135deg, #1a1a0a 0%, #2a2a1a 100%);
}

body.dark-mode .sponsored-card .card-body {
    background: transparent;
}

body.dark-mode .sponsored-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

body.dark-mode .sponsored-card .card-title a {
    color: #FFD700 !important;
}

body.dark-mode .sponsored-card .card-text {
    color: #e0e0e0;
}

body.dark-mode .sponsored-card .text-muted {
    color: #b0b0b0 !important;
}

body.dark-mode .sponsored-card .col-md-4 {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Button Styling for Sponsored Content */
.sponsored-card .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sponsored-card .btn-primary:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

/* Accessibility - High Contrast Focus States */
.sponsored-card:focus-within {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.sponsored-badge:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Animation for Sponsored Badge */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

.sponsored-badge {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sponsored-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
    
    .sponsored-logo {
        max-height: 40px;
    }
}

/* Print Styling - Clearly Mark Sponsored Content */
@media print {
    .sponsored-card {
        border: 3px solid #000 !important;
        background: #f9f9f9 !important;
    }
    
    .sponsored-badge {
        background: #000 !important;
        color: #fff !important;
    }
    
    .sponsored-badge::after {
        content: " - Paid Advertisement";
        font-weight: normal;
    }
}
