/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Навигация */
.navbar {
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

/* Хлебные крошки */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Карточки */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Рейтинг */
.rating {
    margin: 15px 0;
}

.stars {
    margin-bottom: 8px;
}

.stars i {
    font-size: 18px;
    margin: 0 2px;
}

.rating-text {
    font-size: 14px;
    color: #6c757d;
}

/* Бейджи скидок */
.discount-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.discount-text {
    font-size: 18px;
    font-weight: bold;
}

.discount-badge i {
    font-size: 24px;
}

/* Карточки предложений */
.offer-card {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-left-color: #20c997;
    transform: translateX(5px);
}

.offer-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.offer-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.offer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.offer-stats small {
    font-size: 0.8rem;
}

/* Кнопки */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-show-code {
    min-width: 140px;
    padding: 8px 16px;
}

.btn-show-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Фильтры */
.btn-group .btn {
    border-radius: 6px;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Похожие предложения */
.social-links a {
    font-size: 20px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .discount-badge {
        width: 60px;
        height: 60px;
    }
    
    .discount-text {
        font-size: 14px;
    }
    
    .discount-badge i {
        font-size: 18px;
    }
    
    .offer-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-show-code {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 6px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .offer-card .row {
        text-align: center;
    }
    
    .offer-card .col-md-2,
    .offer-card .col-md-7,
    .offer-card .col-md-3 {
        margin-bottom: 1rem;
    }
}

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

.offer-card {
    animation: fadeInUp 0.6s ease forwards;
}

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }
.offer-card:nth-child(5) { animation-delay: 0.5s; }

/* Дополнительные стили */
.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Стили для кнопки "Показать еще" */
.btn-outline-primary.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Стили для списка популярных магазинов */
.list-group-item {
    border: none;
    padding: 0.5rem 0;
    color: #6c757d;
    transition: color 0.3s ease;
}

.list-group-item:hover {
    color: #007bff;
    background: transparent;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
}

/* Стили для ссылок */
a {
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Стили для футера */
footer {
    border-top: 1px solid #e9ecef;
}

footer h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #6c757d;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #007bff;
}
