/**
 * @file: breadcrumbs.css
 * @description: Стилі для хлібних крихт на сторінці рецепту
 * @created: 2025-11-30
 * @version: 1.0.0
 */

/* ============================================
   Breadcrumbs - Хлібні крихти
   ============================================ */

.gotuimo-breadcrumbs {
    padding: 12px 0 16px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.gotuimo-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gotuimo-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Посилання */
.gotuimo-breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bb-primary-color, #007bff);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.gotuimo-breadcrumbs__link:hover {
    color: var(--bb-primary-color-hover, #0056b3);
    text-decoration: underline;
}

.gotuimo-breadcrumbs__link:focus {
    outline: 2px solid var(--bb-primary-color, #007bff);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Іконка "Головна" */
.gotuimo-breadcrumbs__home-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Роздільник */
.gotuimo-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    opacity: 0.6;
    margin: 0 2px;
}

.gotuimo-breadcrumbs__separator svg {
    width: 12px;
    height: 12px;
}

/* Поточний елемент (без посилання) */
.gotuimo-breadcrumbs__current {
    color: #495057;
    font-weight: 500;
}

.gotuimo-breadcrumbs__item--current {
    color: #495057;
}

/* ============================================
   Responsive - Мобільна адаптація
   ============================================ */

@media (max-width: 767px) {
    .gotuimo-breadcrumbs {
        padding: 10px 0 12px;
        font-size: 13px;
    }
    
    .gotuimo-breadcrumbs__list {
        gap: 2px;
    }
    
    .gotuimo-breadcrumbs__home-icon {
        width: 14px;
        height: 14px;
    }
    
    .gotuimo-breadcrumbs__separator svg {
        width: 10px;
        height: 10px;
    }
    
    /* На маленьких екранах обрізаємо довгі назви */
    .gotuimo-breadcrumbs__current {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .gotuimo-breadcrumbs {
        font-size: 12px;
    }
    
    .gotuimo-breadcrumbs__current {
        max-width: 150px;
    }
}

/* ============================================
   Dark Mode підтримка (BuddyBoss)
   ============================================ */

body.bb-dark-theme .gotuimo-breadcrumbs__link {
    color: #6ea8fe;
}

body.bb-dark-theme .gotuimo-breadcrumbs__link:hover {
    color: #9ec5fe;
}

body.bb-dark-theme .gotuimo-breadcrumbs__separator {
    color: #adb5bd;
}

body.bb-dark-theme .gotuimo-breadcrumbs__current {
    color: #e9ecef;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .gotuimo-breadcrumbs {
        display: none;
    }
}

