/* Keyframe Animations */
@keyframes breadcrumbSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalHeaderGlow {
    0%, 100% {
        border-bottom-color: rgba(52,217,255,0.2);
    }
    50% {
        border-bottom-color: rgba(52,217,255,0.35);
    }
}

.modal-breadcrumbs a {
    animation: breadcrumbSlideIn 0.3s ease-out backwards;
}

.modal-breadcrumbs a:nth-child(1) { animation-delay: 0.05s; }
.modal-breadcrumbs a:nth-child(3) { animation-delay: 0.1s; }
.modal-breadcrumbs a:nth-child(5) { animation-delay: 0.15s; }
.modal-breadcrumbs a:nth-child(7) { animation-delay: 0.2s; }
.modal-breadcrumbs a:nth-child(9) { animation-delay: 0.25s; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        padding: 0.6rem 0.75rem 0.5rem;
    }
    
    header .logo {
        width: 280px;
    }
    
    #search-bar {
        width: 95%;
    }
    
    .filters {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .filters label {
        width: auto;
        justify-content: flex-start;
        font-size: 0.85rem;
    }
    
    .filters select {
        min-width: 120px;
    }
    
    #item-list-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .item-card {
        padding: 0.75rem;
    }
    
    .item-card .badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .modal-content {
        padding: 0.6rem;
        max-height: 90vh;
        width: 96%;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-title-section {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.8rem;
    }
    
    .modal-item-icon {
        width: 56px;
        height: 56px;
    }
    
    .modal-title-info h2 {
        font-size: 1.25rem;
    }
    
    .modal-badges {
        justify-content: flex-start;
    }
    
    .item-details {
        grid-template-columns: 1fr;
    }
    

}

@media (max-width: 480px) {
    header {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    header .logo {
        width: 220px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .search-container {
        padding: 0.5rem;
    }
    
    #search-bar {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem 0.45rem 2.5rem;
    }
    
    .filter-sort-container {
        padding: 0 0.5rem 0.75rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .filters label {
        width: 100%;
        justify-content: space-between;
    }
    
    .filters select {
        flex: 1;
        min-width: auto;
        width: 100%;
    }
    
    .results-count {
        font-size: 0.75rem;
    }
    
    #item-list-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
        padding: 0.6rem;
    }
    
    .item-card {
        padding: 0.6rem;
    }
    
    .item-card img {
        width: 48px;
        height: 48px;
    }
}
