/* Modern Breadcrumb Styles - SEO Optimized */

/* Container */
.breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.breadcrumbs::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 100%;
    background: rgba(255, 115, 97, 0.05);
    transform: skewX(-20deg);
}

/* Breadcrumb List */
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Breadcrumb Items */
.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #ff7361;
    background-color: rgba(255, 115, 97, 0.08);
}

/* Home Icon */
.breadcrumb-item.home a {
    padding: 4px 10px;
}

.breadcrumb-item.home i {
    font-size: 16px;
}

/* Separator */
.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 4px;
    font-size: 12px;
    user-select: none;
}

/* Current Page */
.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Badge */
.breadcrumb-category {
    background-color: #ff7361;
    color: white;
    padding: 2px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

/* Dark Theme */
body.dark .breadcrumbs {
    background: linear-gradient(135deg, #2f3239 0%, #393c44 100%);
    border-bottom-color: #43464b;
}

body.dark .breadcrumbs::before {
    background: rgba(255, 115, 97, 0.08);
}

body.dark .breadcrumb-item a {
    color: #adb5bd;
}

body.dark .breadcrumb-item a:hover {
    color: #ff7361;
    background-color: rgba(255, 115, 97, 0.15);
}

body.dark .breadcrumb-separator {
    color: #6c757d;
}

body.dark .breadcrumb-item.active {
    color: #e9ecef;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-list {
        font-size: 13px;
        gap: 4px;
    }
    
    .breadcrumb-item a {
        padding: 2px 6px;
    }
    
    .breadcrumb-item.active {
        max-width: 200px;
    }
    
    /* Hide middle items on very small screens */
    @media (max-width: 480px) {
        .breadcrumb-item:not(.home):not(:last-child):not(:nth-last-child(2)) {
            display: none;
        }
        
        .breadcrumb-item:nth-last-child(3)::after {
            content: '...';
            margin: 0 8px;
            color: #adb5bd;
        }
    }
}

/* Microdata Support */
.breadcrumb-item[itemscope] {
    position: relative;
}

/* Schema.org Rich Snippet Preview */
.breadcrumb-meta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-item {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.15s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.25s; }
.breadcrumb-item:nth-child(5) { animation-delay: 0.3s; }