/**
 * ============================================================================
 * PREMIUM BREADCRUMB - ELEGANT & SOPHISTICATED
 * SEO-optimized with Schema.org markup and beautiful design
 * ============================================================================
 */

/* =================================================================
   BREADCRUMB SECTION CONTAINER
   ================================================================= */
.premium-breadcrumb {
    position: relative;
    margin-top: var(--header-height);
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, 
                var(--color-bg-cream) 0%, 
                var(--color-bg-rose) 50%,
                var(--color-bg-champagne) 100%);
    overflow: hidden;
}

/* With Background Image */
.premium-breadcrumb.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-5xl) 0 var(--spacing-4xl);
}

@media (max-width: 768px) {
    .premium-breadcrumb {
        padding: var(--spacing-2xl) 0;
    }
    
    .premium-breadcrumb.with-image {
        padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    }
}

/* =================================================================
   BREADCRUMB OVERLAY (FOR BACKGROUND IMAGES)
   ================================================================= */
.breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
                rgba(28, 25, 23, 0.75) 0%, 
                rgba(41, 37, 36, 0.65) 100%);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* =================================================================
   BREADCRUMB CONTAINER
   ================================================================= */
.breadcrumb-container {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    z-index: 1;
}

/* =================================================================
   BREADCRUMB NAVIGATION
   ================================================================= */
.breadcrumb-nav {
    margin-bottom: var(--spacing-xl);
}

/* Breadcrumb List */
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    margin: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 66, 117, 0.1);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.with-image .breadcrumb-list {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
    .breadcrumb-list {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.8125rem;
    }
}

/* =================================================================
   BREADCRUMB ITEMS
   ================================================================= */
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Breadcrumb Links */
.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-neutral-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.breadcrumb-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
                rgba(245, 66, 117, 0.08), 
                rgba(247, 168, 38, 0.08));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.breadcrumb-link:hover::before {
    opacity: 1;
}

.breadcrumb-link:hover {
    color: var(--color-primary-600);
    transform: translateY(-1px);
}

/* Subtle underline animation */
.breadcrumb-link span {
    position: relative;
}

.breadcrumb-link span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--color-primary-500);
    transition: width var(--transition-fast);
}

.breadcrumb-link:hover span::after {
    width: 100%;
}

/* Current Page (Active State) */
.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: white;
    background: var(--gradient-rose-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* Breadcrumb Separator */
.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--color-neutral-400);
    font-size: 0.625rem;
    margin: 0 0.125rem;
}

.breadcrumb-separator i {
    opacity: 0.6;
}

/* =================================================================
   PAGE HEADER SECTION
   ================================================================= */
.breadcrumb-header {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* Page Title */
.breadcrumb-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.with-image .breadcrumb-title {
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .breadcrumb-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 480px) {
    .breadcrumb-title {
        font-size: var(--text-3xl);
    }
}

/* Page Subtitle */
.breadcrumb-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-regular);
    color: var(--color-neutral-600);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
}

.with-image .breadcrumb-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .breadcrumb-subtitle {
        font-size: var(--text-base);
    }
}

/* =================================================================
   DECORATIVE DIVIDER
   ================================================================= */
.breadcrumb-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.divider-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-rose-gold);
    border-radius: var(--radius-full);
    position: relative;
}

.divider-left {
    animation: expandLeft 1.5s ease-out forwards;
}

.divider-right {
    animation: expandRight 1.5s ease-out forwards;
}

@keyframes expandLeft {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

@keyframes expandRight {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.divider-icon {
    font-size: 1rem;
    color: var(--color-primary-500);
    animation: sparkleRotate 3s ease-in-out infinite;
}

.with-image .divider-icon {
    color: white;
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: rotate(540deg) scale(1.2);
        opacity: 0.7;
    }
}

/* =================================================================
   DECORATIVE BACKGROUND SHAPES
   ================================================================= */
.breadcrumb-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
                rgba(245, 66, 117, 0.08) 0%, 
                transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.9);
    }
}

/* Hide decorations on very small screens */
@media (max-width: 640px) {
    .decoration-shape {
        display: none;
    }
}

/* =================================================================
   BREADCRUMB VARIANTS
   ================================================================= */

/* Compact Variant (Less Padding) */
.premium-breadcrumb.breadcrumb-compact {
    padding: var(--spacing-xl) 0;
}

.premium-breadcrumb.breadcrumb-compact .breadcrumb-header {
    margin-top: var(--spacing-md);
}

/* Centered Variant (Center-aligned breadcrumb list) */
.premium-breadcrumb.breadcrumb-centered .breadcrumb-list {
    margin: 0 auto;
}

/* Dark Variant (For light backgrounds) */
.premium-breadcrumb.breadcrumb-dark {
    background: var(--color-neutral-900);
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-list {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-link {
    color: var(--color-neutral-300);
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-link:hover {
    color: var(--color-primary-400);
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-separator {
    color: var(--color-neutral-600);
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-title {
    color: white;
}

.premium-breadcrumb.breadcrumb-dark .breadcrumb-subtitle {
    color: var(--color-neutral-400);
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
.breadcrumb-link:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Screen reader text for separators */
.breadcrumb-separator::before {
    content: '/';
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =================================================================
   ANIMATION ENHANCEMENTS
   ================================================================= */

/* Fade in animation on page load */
@keyframes fadeInBreadcrumb {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-list {
    animation: fadeInBreadcrumb 0.6s ease-out forwards;
}

.breadcrumb-header {
    animation: fadeInBreadcrumb 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Stagger animation for breadcrumb items */
.breadcrumb-item {
    opacity: 0;
    animation: fadeInSlideUp 0.4s ease-out forwards;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
    }
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }
.breadcrumb-item:nth-child(5) { animation-delay: 0.5s; }

/* =================================================================
   REDUCED MOTION SUPPORT
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-list,
    .breadcrumb-header,
    .breadcrumb-item,
    .decoration-shape,
    .divider-line,
    .divider-icon {
        animation: none;
        opacity: 1;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        transition: none;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .premium-breadcrumb {
        background: white;
        padding: var(--spacing-md) 0;
    }
    
    .breadcrumb-overlay,
    .breadcrumb-decoration,
    .breadcrumb-divider {
        display: none;
    }
    
    .breadcrumb-list {
        background: white;
        border: 1px solid black;
    }
    
    .breadcrumb-separator i {
        display: none;
    }
    
    .breadcrumb-separator::after {
        content: '>';
    }
}