/*
Theme Name: Kenyx
Template: Impreza
Version: 1.0
Author:	Webzoom
Theme URI: https://webzoom.pro/
Author URI: https://webzoom.pro/
*/

/*Add your own styles here:*/
.kenyx-ral-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    margin-bottom: 20px;
    font-family: inherit; /* Или укажите var(--font-family) из Impreza */
}

/* Внешняя белая обертка для эффекта рамки/тени */
.ral-circle-outer {
    background: #fff;
    padding: 4px; /* Толщина белой рамки */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Мягкая тень как на фото */
    display: inline-block;
    margin-bottom: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.kenyx-ral-item:hover{}
.kenyx-ral-item:hover .ral-circle-outer {
    background:var(--color-content-primary);
    transform: translateY(-2px); /* Легкая анимация при наведении */
}

.ral-circle-inner {
    display: block;
}

.ral-info {
    line-height: 1.2;
    font-size: .8rem;
    FONT-WEIGHT: 600;
}

.ral-code {

    color: #333;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ral-name {
    font-weight: 600;
    font-size: 14px;
    color: #555; /* Чуть светлее, как "Графит" на скрине */
}




/* Контейнер */
.kenyx-hotspot-wrapper {
    position: relative;
    overflow: hidden;
    /* border-radius: 20px; Скругление картинки */
    line-height: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.kenyx-hs-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
        aspect-ratio: 21 / 9;
}

/* Эффект увеличения картинки при наведении на блок (как в примере) */
.kenyx-hotspot-wrapper:hover .kenyx-hs-image {
    transform: scale(1.03);
}

/* Сама точка (обертка) */
.kenyx-hs-item {
    position: absolute;
    z-index: 10;
    /* Центрируем точку относительно координат */
    transform: translate(-50%, -50%); 
}

/* Триггер (сама видимая точка) */
.kenyx-hs-dot-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* Пульсирующее кольцо */
.kenyx-hs-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-content-primary, #007cc3); /* Цвет из темы */
    opacity: 0.75;
    animation: kenyx-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Центральное ядро точки */
.kenyx-hs-core {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-content-primary, #007cc3); /* Цвет из темы */
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Анимация пульсации */
@keyframes kenyx-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Тултип (подсказка) */
.kenyx-hs-tooltip {
    position: absolute;
    left: 40px; /* Отступ вправо от точки */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    line-height: 1.5;
    text-align: left;
    z-index: 20;
}

/* Показываем тултип при наведении на точку */
.kenyx-hs-item:hover .kenyx-hs-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Адаптивность тултипа: если точка слишком справа, показываем тултип слева */
@media (max-width: 768px) {
    .kenyx-hs-tooltip {
        width: 200px;
    }
}

/* Заголовок в тултипе */
.kenyx-hs-title {
    color: var(--color-content-primary, #007cc3);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

/* Текст в тултипе */
.kenyx-hs-desc, 
.kenyx-hs-desc ul, 
.kenyx-hs-desc li {
    font-size: 14px;
    color: var(--color-content-text, #333);
    margin: 0;
}

.kenyx-hs-desc ul {
    list-style: disc;
    padding-left: 20px;
}

.kenyx-hs-desc li {
    margin-bottom: 4px;
}

/* Окрашиваем маркеры списка в цвет темы */
.kenyx-hs-desc li::marker {
    color: var(--color-content-primary, #007cc3);
}