﻿.favorite-card-wrapper {
    height: 100%;
    position: relative;
}

.favorite-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

    .favorite-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.favorite-selector {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.favorite-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

    .favorite-remove-btn:hover {
        background: #ff6b6b;
        transform: scale(1.1);
    }

.favorite-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.favorite-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-card:hover .favorite-image {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 10px;
    left: 40px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-hit {
    background: #dc3545;
}

.badge-sale {
    background: #28a745;
}

.badge-top {
    background: #ffc107;
    color: #000;
}

.badge-new {
    background: #17a2b8;
}

.badge-default {
    background: #6c757d;
}

.article-new-badge {
    position: absolute;
    top: 10px;
    right: 40px;
    background: #17a2b8;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.favorite-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.favorite-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .favorite-title:hover {
        color: #007bff;
    }

.favorite-location {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

    .favorite-location i {
        margin-right: 4px;
    }

.favorite-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.tag {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

.favorite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.favorite-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.favorite-meta {
    display: flex;
    gap: 8px;
}

.favorite-added-info {
    border-top: 1px solid #f1f3f4;
    padding-top: 8px;
    margin-top: auto;
}

.empty-favorites {
    padding: 3rem 1rem;
}

/* Selection state */
.favorite-card.selected {
    border: 2px solid #007bff;
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-image-container {
        height: 160px;
    }

    .favorite-content {
        padding: 12px;
    }

    .favorite-title {
        font-size: 0.9rem;
    }

    .favorite-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .favorite-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .favorite-card {
        border-radius: 8px;
    }

    .favorite-image-container {
        height: 140px;
    }
}

/* Modal backdrop */
.modal.fade.show {
    background-color: rgba(0,0,0,0.5);
}
