/* ================================================
   Компактный блок текущего конкурса
   ================================================ */

.compact_contest_section {
    margin: 20px 0;
}

.contest_card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s linear;
    overflow: hidden;
    position: relative;
}

.contest_card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Кликабельная ссылка на весь блок */
.contest_card_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.contest_card_link:hover {
    text-decoration: none;
    color: inherit;
}

/* Внутренний контейнер с flex-версткой */
.contest_card_inner {
    display: flex;
    align-items: stretch;
    min-height: 180px;
    position: relative;
    z-index: 2;
}

/* Изображение конкурса */
.contest_image {
    flex: 1;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Основной контент */
.contest_content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

/* Заголовок */
.contest_header {
    margin-bottom: 20px;
}

.contest_title {
    font-family: "RC_Bold";
    font-size: 24px;
    font-weight: normal;
    color: #444;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.contest_dates {
    font-family: "SSP_Regular";
    font-size: 14px;
    color: #858585;
    font-weight: normal;
}

/* Статистика */
.contest_stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat_label {
    font-family: "SSP_Regular";
    font-size: 11px;
    font-weight: normal;
    color: #858585;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat_value {
    font-family: "RC_Bold";
    font-size: 16px;
    font-weight: normal;
    color: #444;
}

/* Таймер */
.contest_timer {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 6px;
    text-align: right;
}

.timer_label {
    font-size: 14px;
    font-weight: 600;
    color: #F7A600;
}

/* Кнопки действий */
.contest_actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dbdbdb;
}

.contest_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    font-family: "Open Sans";
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    letter-spacing: 0.3px;
    border-radius: 4px;
    border-bottom: 2px solid rgba(0,0,0,.2);
    text-decoration: none;
    transition: all 0.3s linear;
    min-width: 100px;
}

.contest_btn:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 40px;
    visibility: hidden;
    opacity: 0;
    background: rgba(255,255,255,.18);
    transition: all 0.3s linear;
}

.contest_btn:hover, .contest_btn:focus {
    color: #fff;
    text-decoration: none;
}

.contest_btn:hover:before {
    visibility: visible;
    opacity: 1;
}

.btn-register {
    background: #F7A600;
    flex: 1;
}

.btn-register:hover {
    background: #F7A600;
}

.btn-view {
    background: #F7A600;
    flex: 1;
}

.btn-view:hover {
    background: #F7A600;
}

.btn-rules {
    background: #333;
    flex: 1;
}

.btn-rules:hover {
    background: #000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contest_card_inner {
        flex-direction: column;
        min-height: auto;
    }
    
    .contest_image {
        min-height: 180px;
        flex: none;
        height: 180px;
    }
    
    .contest_content {
        padding: 15px;
    }
    
    .contest_title {
        font-size: 20px;
    }
    
    .contest_stats {
        gap: 15px;
    }
    
    .contest_actions {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .contest_btn {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contest_content {
        padding: 12px;
    }
    
    .contest_title {
        font-size: 18px;
    }
    
    .contest_stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat_item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .contest_image {
        height: 160px;
        min-height: 160px;
    }
    
    .contest_actions {
        padding: 10px 12px;
    }
}
