/* Professional Breadcrumb Styles for Poola Theme */

/* Modern Breadcrumb Style */
.breadcrumb-nav {
    margin-bottom: 15px;
    padding-top: 0;
    position: relative;
}

/* Style 1: Floating Pills (Default) */
.breadcrumb-nav .breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8px 16px;
    margin: 0;
    font-size: 13px;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(41, 100, 250, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.breadcrumb-nav .breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(41, 100, 250, 0.05), transparent);
    transition: left 0.6s ease;
}

.breadcrumb-nav .breadcrumb:hover::before {
    left: 100%;
}

/* Breadcrumb items */
.breadcrumb-nav .breadcrumb-item {
    color: #6c757d;
    display: flex;
    align-items: center;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Custom arrow separator */
.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #2A64FA;
    border-right: 1.5px solid #2A64FA;
    transform: rotate(45deg);
    margin: 0 10px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.breadcrumb-nav .breadcrumb-item:hover + .breadcrumb-item::before {
    opacity: 1;
}

/* Links styling */
.breadcrumb-nav .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 3px 0;
    display: inline-flex;
    align-items: center;
}

/* Animated underline */
.breadcrumb-nav .breadcrumb-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2A64FA 0%, #5882fc 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #2A64FA;
    transform: translateY(-1px);
}

.breadcrumb-nav .breadcrumb-item a:hover::after {
    width: 100%;
}

/* Active state */
.breadcrumb-nav .breadcrumb-item.active {
    color: #2A64FA;
    font-weight: 500;
}

/* Home icon with Font Awesome */
.breadcrumb-nav .breadcrumb-item:first-child a::before {
    content: "\f015"; /* Font Awesome home icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
    font-size: 12px;
    color: #2A64FA;
}

/* Style 2: Minimal Line Style (Alternative) */
.breadcrumb-minimal .breadcrumb {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding-bottom: 15px;
}

.breadcrumb-minimal .breadcrumb-item a {
    font-weight: 500;
}

.breadcrumb-minimal .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    border: none;
    width: auto;
    height: auto;
    transform: none;
    color: #dee2e6;
    font-weight: 300;
}

/* Style 3: Gradient Background (Premium) */
.breadcrumb-gradient .breadcrumb {
    background: linear-gradient(135deg, #2A64FA 0%, #5882fc 100%);
    color: white;
    border: none;
}

.breadcrumb-gradient .breadcrumb-item,
.breadcrumb-gradient .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-gradient .breadcrumb-item.active {
    color: white;
}

.breadcrumb-gradient .breadcrumb-item + .breadcrumb-item::before {
    border-color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-gradient .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-gradient .breadcrumb-item:first-child a::before {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding-top: 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-nav .breadcrumb {
        font-size: 12px;
        padding: 6px 12px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .breadcrumb-nav .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 8px;
    }
    
    /* Simplify on mobile */
    .breadcrumb-nav .breadcrumb-item:first-child a::before {
        display: none;
    }
    
    .breadcrumb-nav .breadcrumb-item a::after {
        display: none;
    }
}

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

.breadcrumb-nav .breadcrumb {
    animation: breadcrumbSlideIn 0.5s ease-out;
}

/* RTL Support */
[dir="rtl"] .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    transform: rotate(-135deg);
}

[dir="rtl"] .breadcrumb-nav .breadcrumb-item:first-child a::before {
    margin-right: 0;
    margin-left: 8px;
}

/* Print styles */
@media print {
    .breadcrumb-nav .breadcrumb {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .breadcrumb-nav .breadcrumb-item a {
        color: #000 !important;
    }
}