/* ========== УЛУЧШЕНИЯ ДЛЯ КАРТОЧЕК АВТО ========== */
/* Этот файл только улучшает внешний вид, не ломая верстку */
/* Подключать ПОСЛЕ glass-main.css */

/* Делаем карточки более выразительными */
.card {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
}

/* Увеличиваем тень при наведении */
.card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 45px rgba(0, 100, 0, 0.5), 0 0 0 2px rgba(46, 204, 113, 0.4) inset !important;
    border-color: rgba(46, 204, 113, 0.7) !important;
}

/* Эффект свечения по краям */
.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2ecc71, transparent, #2ecc71, transparent);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.5;
}

/* Улучшаем изображение */
.card-img-top {
    transition: transform 0.6s ease !important;
    border-bottom: 2px solid rgba(46, 204, 113, 0.3) !important;
}

.card:hover .card-img-top {
    transform: scale(1.08) !important;
}

/* Делаем цену более заметной */
.card-body b {
    font-size: 1.4rem !important;
    background: rgba(46, 204, 113, 0.25) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(46, 204, 113, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    padding: 0.6rem 1.5rem !important;
    margin: 1rem 0 !important;
}

/* Название авто с градиентом */
.card-body h5 a {
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    background: linear-gradient(135deg, #ffffff, #a0ffc0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.5) !important;
    transition: all 0.3s ease !important;
}

.card-body h5 a:hover {
    text-shadow: 0 0 25px rgba(46, 204, 113, 0.9) !important;
    transform: scale(1.05) !important;
    display: inline-block !important;
}

/* Кнопка "Подробности" */
.btn-outline-dark {
    background: rgba(20, 50, 30, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(46, 204, 113, 0.5) !important;
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 2rem !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.btn-outline-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-outline-dark:hover::after {
    left: 100%;
}

.btn-outline-dark:hover {
    background: rgba(46, 204, 113, 0.3) !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.5) !important;
    transform: translateY(-3px) !important;
}

/* Анимация появления карточек */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }
.card:nth-child(6) { animation-delay: 0.5s; }
.card:nth-child(7) { animation-delay: 0.6s; }
.card:nth-child(8) { animation-delay: 0.7s; }

/* Для мобильных устройств */
@media (max-width: 768px) {
    .card {
        animation: cardFadeIn 0.4s ease-out forwards;
    }
    
    .card-body h5 a {
        font-size: 1.2rem !important;
    }
    
    .card-body b {
        font-size: 1.2rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    .btn-outline-dark {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.8rem !important;
    }
}