/* Breadcrumbs Styles for 3snet.info */

/* Основные стили breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #a6bbd3;
    margin-bottom: 20px;
    position: relative;
}

/* Ссылки в breadcrumbs */
.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.breadcrumbs a:hover {
    color: #40f3f7;
    text-decoration: none;
}

.breadcrumbs a:focus {
    outline: none;
    color: #40f3f7;
}

/* Текущая страница (последний элемент) */
.breadcrumbs .kb_title {
    color: #40f3f7;
    font-weight: 600;
    position: relative;
    padding: 2px 0;
}

/* Подчеркивание для текущей страницы */
.breadcrumbs .kb_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #40f3f7, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.breadcrumbs .kb_title:hover::after {
    transform: scaleX(1);
}

/* Стили для span элементов внутри ссылок */
.breadcrumbs a span {
    color: #fff;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover span {
    color: #40f3f7;
}

/* Стили для мобильных устройств */
@media (max-width: 767px) {
    .breadcrumbs {
        font-size: 11px;
        margin-bottom: 20px;
        padding: 10px 0;
        line-height: 1.3;
    }
    
    .breadcrumbs .kb_sep {
        margin: 0 5px;
    }
    
    .breadcrumbs .kb_sep::before {
        font-size: 12px;
    }
    
    /* Скрываем длинные названия на мобильных */
    .breadcrumbs a,
    .breadcrumbs .kb_title {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Стили для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .breadcrumbs {
        font-size: 11px;
        margin-bottom: 25px;
    }
    
    .breadcrumbs a,
    .breadcrumbs .kb_title {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Темная тема (если нужно) */
.breadcrumbs.dark-theme {
    background: rgba(15, 25, 50, 0.8);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(7, 16, 39, 0.3);
}

/* Стили для schema.org разметки */
.breadcrumbs[itemscope][itemtype="http://schema.org/BreadcrumbList"] {
    /* Дополнительные стили для семантической разметки */
}

/* Стили для элементов списка в schema.org */
.breadcrumbs [itemprop="itemListElement"] {
    display: inline-flex;
    align-items: center;
}

/* Стили для ссылок в schema.org */
.breadcrumbs [itemprop="item"] {
    text-decoration: none;
}

/* Стили для названий в schema.org */
.breadcrumbs [itemprop="name"] {
    color: inherit;
}

/* Hover эффекты для интерактивности */
.breadcrumbs a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #40f3f7;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.breadcrumbs a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Стили для состояний загрузки */
.breadcrumbs.loading {
    opacity: 0.7;
    pointer-events: none;
}

.breadcrumbs.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #40f3f7;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Стили для ошибок */
.breadcrumbs.error {
    color: #f74056;
    border-left: 3px solid #f74056;
    padding-left: 15px;
    background: rgba(247, 64, 86, 0.1);
    border-radius: 4px;
}

/* Стили для пустых breadcrumbs */
.breadcrumbs:empty {
    display: none;
}

/* Стили для breadcrumbs с иконками */
.breadcrumbs.with-icons a::before {
    content: '🏠';
    margin-right: 5px;
    font-size: 14px;
}

.breadcrumbs.with-icons a:not(:first-child)::before {
    content: '';
    margin-right: 0;
}

/* Стили для breadcrumbs в модальных окнах */
.modal .breadcrumbs {
    background: rgba(15, 25, 50, 0.95);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    box-shadow: 0 4px 20px rgba(7, 16, 39, 0.4);
}

/* Стили для breadcrumbs в сайдбаре */
.sidebar .breadcrumbs {
    font-size: 11px;
    margin-bottom: 15px;
    padding: 10px 0;
}

/* Стили для breadcrumbs в футере */
footer .breadcrumbs {
    font-size: 10px;
    color: #a6bbd3;
    margin-bottom: 15px;
    opacity: 0.8;
}

footer .breadcrumbs a {
    color: #a6bbd3;
}

footer .breadcrumbs a:hover {
    color: #40f3f7;
}

/* Стили для breadcrumbs в печати */
@media print {
    .breadcrumbs {
        display: none;
    }
}

/* Стили для высокого контраста */
@media (prefers-contrast: high) {
    .breadcrumbs {
        border: 1px solid #40f3f7;
        background: #000;
    }
    
    .breadcrumbs a {
        color: #fff;
        text-decoration: underline;
    }
    
    .breadcrumbs .kb_title {
        color: #40f3f7;
        font-weight: bold;
    }
}

/* Стили для уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
    .breadcrumbs,
    .breadcrumbs a,
    .breadcrumbs .kb_sep::before,
    .breadcrumbs .kb_title::after,
    .breadcrumbs a::before {
        animation: none;
        transition: none;
    }
} 