/* Подключаем шрифт Rubik */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

/* Offers Grid - Карточки букмекеров */

.seogen-offers-error {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
    font-size: 16px;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Основной контейнер */
.seogen-offers-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 60px auto;
    padding: 0;
    max-width: 1200px;
}

/* ========== DESKTOP ВЕРСИЯ ========== */

.offer-card-desktop {
    display: none; /* По умолчанию скрыт, показываем только на desktop */
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    border: 1px solid #E3F2FD;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    width: 100%;
    max-width: 1100px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.offer-card-desktop:hover {
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.25);
    transform: translateY(-2px);
}

.offer-card-left-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.offer-logo-desktop {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: #212121;
    min-width: 120px;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

.offer-logo-desktop img {
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.offer-text-desktop {
    font-size: 21px;
    color: #424242;
    line-height: 1.5;
    font-weight: 600;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

.offer-btn-desktop {
    background-color: #E53935;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s;
    margin-left: 20px;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gift-icon-desktop {
    width: 26px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.offer-btn-desktop:hover {
    background-color: #C62828;
    color: #FFFFFF !important;
}

.offer-btn-desktop:active {
    background-color: #B71C1C;
}

/* ========== MOBILE ВЕРСИЯ ========== */

.offer-card-mobile {
    display: flex; /* По умолчанию показываем (mobile-first) */
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
    flex-direction: column;
    text-decoration: none !important;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transition: all 0.2s ease;
}

.offer-card-mobile:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.offer-card-main-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.offer-logo-container-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-logo-mobile {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
}

.offer-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #E53935;
    border-radius: 10px;
    min-width: 140px;
    flex-shrink: 0;
}

.gift-icon-mobile {
    width: 24px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.offer-btn-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.offer-btn-text-top {
    font-size: 11px;
    color: #FFFFFF;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

.offer-btn-text-bottom {
    font-size: 15px;
    color: #FFFFFF;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

.offer-info-panel-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 20px;
    background-color: #F5F5F5;
    border-radius: 0 0 20px 20px;
}

.star-icon-mobile {
    font-size: 16px;
    color: #FFB400;
    line-height: 1;
    padding-bottom: 2.5px;
}

.offer-info-text-mobile {
    font-size: 12px;
    color: #424242;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */

/* 1. Mobile: до 768px */
@media screen and (max-width: 768px) {
    .offer-card-desktop {
        display: none !important;
    }
    
    .offer-card-mobile {
        display: flex !important;
    }
    
    .seogen-offers-grid {
        gap: 12px;
        padding: 0 15px;
    }
    
    .offer-card-mobile {
        border-radius: 20px;
    }
    
    .offer-card-main-mobile {
        padding: 18px;
        gap: 12px;
    }
    
    .offer-logo-mobile {
        max-width: 95px;
        max-height: 38px;
    }
    
    .offer-btn-mobile {
        gap: 8px;
        padding: 10px 14px;
        border-radius: 10px;
        min-width: 135px;
    }
    
    .gift-icon-mobile {
        width: 22px;
        height: 19px;
    }
    
    .offer-btn-text-top {
        font-size: 11px;
    }
    
    .offer-btn-text-bottom {
        font-size: 14px;
    }
    
    .offer-info-panel-mobile {
        padding: 11px 18px;
        gap: 7px;
        border-radius: 0 0 20px 20px;
    }
    
    .star-icon-mobile {
        font-size: 15px;
    }
    
    .offer-info-text-mobile {
        font-size: 11px;
    }
}

/* 2. Tablet: 769-1199px */
@media screen and (min-width: 769px) and (max-width: 1199px) {
    .offer-card-desktop {
        display: none !important;
    }
    
    .offer-card-mobile {
        display: flex !important;
    }
    
    .seogen-offers-grid {
        gap: 15px;
        padding: 0 20px;
    }
    
    .offer-card-mobile {
        border-radius: 22px;
        max-width: 600px;
    }
    
    .offer-card-main-mobile {
        padding: 22px;
        gap: 18px;
    }
    
    .offer-logo-mobile {
        max-width: 110px;
        max-height: 45px;
    }
    
    .offer-btn-mobile {
        gap: 10px;
        padding: 12px 18px;
        border-radius: 12px;
        min-width: 160px;
    }
    
    .gift-icon-mobile {
        width: 26px;
        height: 22px;
    }
    
    .offer-btn-text-top {
        font-size: 12px;
    }
    
    .offer-btn-text-bottom {
        font-size: 16px;
    }
    
    .offer-info-panel-mobile {
        padding: 14px 22px;
        gap: 8px;
        border-radius: 0 0 22px 22px;
    }
    
    .star-icon-mobile {
        font-size: 17px;
    }
    
    .offer-info-text-mobile {
        font-size: 13px;
    }
}

/* 3. Desktop: 1200px+ */
@media screen and (min-width: 1200px) {
    .offer-card-mobile {
        display: none !important;
    }
    
    .offer-card-desktop {
        display: flex !important;
    }
}
