/**
 * Breadcrumb Navigation Styles
 * Professional, subtle, and eye-catching design
 * Matches navy blue and gold theme
 */

/* ===================================
   Breadcrumb Container
   =================================== */
.breadcrumb-container {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    padding: 0.875rem 0;
    margin: 0;
    position: relative;
}

/* Subtle top accent line */
.breadcrumb-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(184, 134, 11, 0.3) 20%,
            rgba(184, 134, 11, 0.5) 50%,
            rgba(184, 134, 11, 0.3) 80%,
            transparent 100%);
}

.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Breadcrumb List
   =================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Override Bootstrap's default breadcrumb divider */
    --bs-breadcrumb-divider: none;
}

/* ===================================
   Breadcrumb Items
   =================================== */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding-left: 0;
}

/* Remove Bootstrap's default slash divider */
.breadcrumb-item::before {
    display: none !important;
    content: none !important;
    padding-right: 0 !important;
}

/* Elegant chevron separator */
.breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(-45deg);
    margin: 0 0.5rem;
    opacity: 0.7;
}

/* ===================================
   Breadcrumb Links
   =================================== */
.breadcrumb-link {
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    padding: 0.25rem 0;
}

.breadcrumb-link:hover {
    color: #1e3a5f;
}

/* Subtle underline animation on hover */
.breadcrumb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 100%);
    transition: width 0.25s ease;
}

.breadcrumb-link:hover::after {
    width: 100%;
}

/* ===================================
   Home Link - Minimal SVG Icon
   =================================== */
.breadcrumb-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover .breadcrumb-home-icon {
    color: #b8860b;
}

/* ===================================
   Active/Current Item
   =================================== */
.breadcrumb-item.active {
    color: #1e3a5f;
    font-weight: 600;
}

.breadcrumb-item.active span {
    color: #1e3a5f;
    position: relative;
}

/* Subtle highlight for current page */
.breadcrumb-item.active span::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 100%);
    border-radius: 1px;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .breadcrumb-container {
        padding: 0.75rem 0;
    }

    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
        width: 4px;
        height: 4px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .breadcrumb-container {
        padding: 0.625rem 0;
    }

    .breadcrumb-wrapper {
        padding: 0 0.75rem;
    }

    .breadcrumb {
        font-size: 0.6875rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.375rem;
        width: 4px;
        height: 4px;
    }

    .breadcrumb-home-icon {
        width: 14px;
        height: 14px;
    }

    /* Truncate long breadcrumb text on mobile */
    .breadcrumb-item span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    /* Don't truncate current page */
    .breadcrumb-item.active span {
        max-width: 150px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .breadcrumb {
        font-size: 0.625rem;
    }

    .breadcrumb-item span {
        max-width: 80px;
    }

    .breadcrumb-item.active span {
        max-width: 120px;
    }

    .breadcrumb-home-icon {
        width: 12px;
        height: 12px;
        margin-right: 0.125rem;
    }
}

/* ===================================
   Accessibility Enhancements
   =================================== */

/* Focus styles for keyboard navigation */
.breadcrumb-link:focus {
    outline: none;
    color: #1e3a5f;
}

.breadcrumb-link:focus::after {
    width: 100%;
    background: #b8860b;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .breadcrumb-link {
        text-decoration: underline;
    }

    .breadcrumb-item.active span::before {
        height: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .breadcrumb-link,
    .breadcrumb-link::after,
    .breadcrumb-home-icon {
        transition: none;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .breadcrumb-container {
        background: none;
        border-bottom: 1px solid #ccc;
        padding: 0.25rem 0;
    }

    .breadcrumb-container::before {
        display: none;
    }

    .breadcrumb-link {
        color: #000;
    }

    .breadcrumb-link::after {
        display: none;
    }

    .breadcrumb-item.active span::before {
        display: none;
    }
}