/* Стили для виджета homepage_bonuses */
.section-bonuses {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-bonuses .list-bonuses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.section-bonuses .list-bonuses-item {
    background: #fff;
    border: 1px solid #e5edf3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-bonuses .list-bonuses-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-bonuses .list-bonuses-item-image {
    position: relative;
    overflow: hidden;
}

.section-bonuses .list-bonuses-item-image img {
    width: 100%;
    height: 157px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-bonuses .list-bonuses-item:hover .list-bonuses-item-image img {
    transform: scale(1.05);
}

.section-bonuses .list-bonuses-item-image-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.section-bonuses .list-bonuses-item-introtext {
    padding: 15px 20px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-bonuses .list-bonuses-item-introtext svg {
    width: 16px;
    height: 16px;
    color: #ffc107;
}

.section-bonuses .list-bonuses-item-pagetitle {
    padding: 0 20px 15px;
}

.section-bonuses .list-bonuses-item-pagetitle a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.section-bonuses .list-bonuses-item-pagetitle a:hover {
    color: #276aa5;
}

.section-bonuses .list-bonuses-item-btns {
    padding: 0 20px 20px;
}

.section-bonuses .list-bonuses-item-btns .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.section-bonuses .list-bonuses-item-btns .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 106, 165, 0.3);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .section-bonuses .list-bonuses {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-bonuses {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .section-bonuses .list-bonuses-item-introtext {
        padding: 12px 15px 8px;
        font-size: 15px;
    }
    
    .section-bonuses .list-bonuses-item-pagetitle {
        padding: 0 15px 12px;
    }
    
    .section-bonuses .list-bonuses-item-btns {
        padding: 0 15px 15px;
    }
}

/* Стили для sidebar_bonuses виджета - точная копия со скриншота */

/* Основной контейнер */
.sidebar-bonuses {
    background: transparent;
    padding: 0;
}

/* Заголовок "Топовые бонусы" */
.sidebar-bonuses-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    text-align: left;
    padding: 0;
    border: none;
}

/* Контейнер списка */
.sidebar-bonuses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Карточка бонуса */
.sidebar-bonuses-list-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px;
    position: relative;
}

/* Карточка бонуса с фоновой картинкой */
.sidebar-bonuses-list-item.has-background {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

/* Исправление для полной заливки фона */
.sidebar-bonuses-list-item.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Убираем фон с самого элемента, так как используем ::before */
.sidebar-bonuses-list-item.has-background {
    background: transparent !important;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-content {
    flex: none;
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-title {
    color: #b4d0e8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-price {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 20px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-description {
    color: rgba(183, 203, 217, 0.95);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
}

/* Улучшенный hover для карточек с фоном */
.sidebar-bonuses-list-item.has-background:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}

/* Кнопка на фоновых карточках */
.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-btns {
    margin: 10px 0 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-btns .btn {
    background: #0062cc;
    color: #ffffff;
    border: 1px solid #0062cc;
    font-weight: 600;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 5px;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0,98,204,0.3);
    transition: all 0.3s ease;
}

.sidebar-bonuses-list-item.has-background .sidebar-bonuses-list-item-btns .btn:hover {
    background: #004fa3;
    color: #ffffff;
    border-color: #004fa3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,98,204,0.5);
}

.sidebar-bonuses-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Логотип букмекера */
.sidebar-bonuses-list-item-logo {
    width: 50px;
    height: 40px;
    overflow: hidden;
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-bonuses-list-item-logo img {
    width: auto;
    height: auto;
    max-width: 50px;
    max-height: 40px;
    object-fit: contain;
}

/* Контент (название, сумма, описание) */
.sidebar-bonuses-list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
    padding-right: 8px;
}

/* Название букмекера/бонуса */
.sidebar-bonuses-list-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Сумма бонуса */
.sidebar-bonuses-list-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Описание бонуса */
.sidebar-bonuses-list-item-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.2;
    font-weight: 400;
}

/* Контейнер кнопки */
.sidebar-bonuses-list-item-btns {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Кнопка "Получить бонус" */
.sidebar-bonuses-list-item-btns .btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    background: #29496d;
    border: none;
    color: white;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: auto;
}

.sidebar-bonuses-list-item-btns .btn:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

.sidebar-bonuses-list-item-btns .btn:active {
    transform: translateY(1px);
}
