.image-container {
    height: 200px;
    background: #f8f9fa;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
}

.card-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover .card-image-main {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #6c757d;
}

.image-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.image-info-overlay {
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.image-info-overlay h6 {
    font-size: 1rem;
    line-height: 1.2;
}

.image-info-overlay small {
    font-size: 0.8rem;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: #9e9e9e;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3;
    border: none;
    cursor: pointer;
}

.favorite-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: #ff4757;
    color: #ff4757;
    background: rgba(255,255,255,0.95);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border-color: #ff4757;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.favorite-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

.favorite-btn.active i {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .image-container {
        height: 180px;
    }

    .image-info-overlay {
        padding: 1rem !important;
    }

    .image-info-overlay h6 {
        font-size: 0.9rem;
    }

    .image-info-overlay small {
        font-size: 0.75rem;
    }

}

@media (max-width: 576px) {
    .image-container {
        height: 160px;
    }

    .image-gradient-overlay {
        height: 60%;
    }

    .image-info-overlay {
        padding: 0.75rem !important;
    }

    .image-info-overlay h6 {
        font-size: 0.85rem;
    }

    .image-info-overlay small {
        font-size: 0.7rem;
    }
}

/* Анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    animation: fadeInUp 0.5s ease;
}
