/**
 * Badge Styles
 * Стили для badge'ей походов (теги: холод, дождь, веселье и т.д.)
 */

/* ============================================
   BADGE'И НА SINGLE СТРАНИЦЕ
   ============================================ */

.cg-single-hero-badges-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

.cg-single-tags-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cg-single-badge {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.cg-single-badge svg {
    width: 25px;
    height: 25px;
}

.cg-single-badge:hover {
    transform: translateY(-2px);
}

/* Всплывашка (tooltip) */
.cg-single-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.cg-single-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.cg-single-badge:hover::after,
.cg-single-badge:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.cg-single-badge:hover::before {
    transform: translateX(-50%) translateY(0px);
}

/* Бадж как ссылка на hikes с фильтром */
.cg-single-badge-link {
    text-decoration: none;
    cursor: pointer;
}

.cg-single-badge-link:hover {
    opacity: 0.9;
}

/* Цвета/фон баджей задаются из конфига иконок (inline при рендере). */

/* ============================================
   BADGE'И В КАРТОЧКАХ ПОХОДОВ
   ============================================ */

.cg-hike-card-badges {
    position: absolute;
    justify-content: center;
    align-items: center;
    bottom: 20px;
    display: flex;
    gap: 12px;
    width: 100%;
}

.cg-hike-badge {
    background: rgb(5 0 0 / 27%);
    width: 32px;
    height: 32px;
    border-radius: 50px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(7px);
    transition: opacity 0.3s ease;
}

.cg-hike-card-component:hover .cg-hike-badge {
    opacity: 1;
}

/* ============================================
   ТЕМНАЯ ТЕМА
   ============================================ */

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {

    .cg-single-badge {
        width: 28px;
        height: 28px;
    }

    .cg-single-badge svg {
        width: 16px;
        height: 16px;
    }

    .cg-single-hero-badges-container {
        flex-direction: column;
        gap: 5px;
    }
}
