/*
 * NPL Sports Pro Theme - Breadcrumb Styles
 * File: Assets/css/breadcrumb.css
 */

.breadcrumb-nav {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.breadcrumb-nav a {
    color: #0010a0; /* Brand Blue */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* Home Icon via CSS */
.breadcrumb-nav a:first-child::before {
    content: "\f015"; /* FontAwesome Home Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 14px;
}

.breadcrumb-nav a:hover {
    color: #dd0000; /* Brand Red */
    text-decoration: none;
}

.breadcrumb-nav .separator {
    margin: 0 12px;
    color: #cccccc;
    font-size: 14px;
    font-weight: normal;
}

.breadcrumb-nav .current-item {
    color: #777777;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px; /* Prevents long titles from breaking the bar */
}

/* Error styling (if try/catch triggers) */
.breadcrumb-error {
    background: #fff5f5;
    color: #c0392b;
    padding: 10px;
    border: 1px dashed #e74c3c;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 8px 15px;
        margin-bottom: 20px;
    }
    .breadcrumb-nav .current-item {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav .current-item {
        display: none; /* Hide long title on small phones for better UX */
    }
    .breadcrumb-nav .separator:last-child {
        display: none;
    }
}