/*
 * Ad Card Enhancements
 * - Safety notes for buyers
 * - Report link styling
 */

/* Buyer Safety Note */
.buyer-safety-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.buyer-safety-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.buyer-safety-note i {
    font-size: 0.875rem;
}

.safety-tip {
    white-space: nowrap;
}

/* Alternative color schemes for safety notes */
.buyer-safety-note.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.buyer-safety-note.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.buyer-safety-note.info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Report Link */
.ad-report-link {
    margin-right: auto;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.report-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.report-btn i {
    font-size: 0.875rem;
}

/* RTL Support */
[dir="rtl"] .ad-report-link {
    margin-right: 0;
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .buyer-safety-note {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .report-btn {
        font-size: 0.7rem;
    }

    .report-btn span {
        display: none;
    }

    .report-btn i {
        margin: 0;
    }
}

/* Enhanced Footer Layout */
.ad-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Tooltip for truncated safety notes */
.buyer-safety-note[data-tooltip] {
    position: relative;
    cursor: help;
}

.buyer-safety-note[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: normal;
    max-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
    z-index: 1000;
}

.buyer-safety-note[data-tooltip]:hover::after {
    opacity: 1;
}

/* Get Quote Box Styling */
.ad-quote-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.ad-quote-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 147, 251, 0.4);
}

.quote-icon {
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.quote-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-get-quote {
    background: white;
    color: #f5576c;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-get-quote:hover {
    background: #fff;
    color: #d63950;
    transform: translateX(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-get-quote i {
    font-size: 0.875rem;
}

/* Rating Badge Styling */
.ad-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 0.75rem;
    color: white;
}

.rating-value {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.rating-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

/* Mobile Responsive for new features */
@media (max-width: 768px) {
    .ad-quote-box {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .quote-icon {
        font-size: 1.5rem;
    }

    .quote-text {
        font-size: 0.875rem;
    }

    .btn-get-quote {
        align-self: center;
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .ad-rating-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .rating-stars i {
        font-size: 0.65rem;
    }

    .rating-value {
        font-size: 0.75rem;
    }

    .rating-count {
        font-size: 0.65rem;
    }
}

/* Wishlist & Cart Active States */
.ad-wishlist-btn.active,
.wishlist-btn-card.active {
    color: #ff4757 !important;
}

.ad-wishlist-btn.active i,
.wishlist-btn-card.active i {
    color: #ff4757 !important;
}

.ad-cart-btn.active,
.cart-btn-card.active {
    color: #4b315e !important;
    background: rgba(75, 49, 94, 0.1);
}

.ad-cart-btn.active i,
.cart-btn-card.active i {
    color: #4b315e !important;
}

/* Print styles */
@media print {
    .buyer-safety-note,
    .ad-report-link,
    .ad-quote-box {
        display: none;
    }
}
