/* Progress Bar Component - Matches site design schema */

.progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(91, 79, 63, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #5b4f3f, #6d5f4f);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(91, 79, 63, 0.3);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 0 3px 3px 0;
    animation: progressGlow 2s ease-in-out infinite;
}

.progress-text {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #5b4f3f;
    background: rgba(255, 252, 248, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 79, 63, 0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: progressTextFadeIn 1s ease-out 0.5s forwards;
    letter-spacing: 0.5px;
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes progressTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comprehensive Responsive Progress System */

/* Extra Large Desktop - 1600px+ */
@media (min-width: 1600px) {
    .progress-container {
        height: 8px;
    }
    
    .progress-text {
        font-size: 14px;
        padding: 6px 16px;
        bottom: 15px;
        right: 30px;
        border-radius: 25px;
    }
}

/* Large Desktop - 1400px to 1599px */
@media (max-width: 1599px) and (min-width: 1400px) {
    .progress-container {
        height: 7px;
    }
    
    .progress-text {
        font-size: 13px;
        padding: 5px 14px;
        bottom: 12px;
        right: 25px;
    }
}

/* Standard Desktop - 1200px to 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .progress-container {
        height: 6px;
    }
    
    .progress-text {
        font-size: 12px;
        padding: 4px 12px;
        bottom: 10px;
        right: 20px;
    }
}

/* Large Laptop - 1024px to 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .progress-container {
        height: 6px;
    }
    
    .progress-text {
        font-size: 12px;
        padding: 4px 12px;
        bottom: 10px;
        right: 18px;
    }
}

/* Landscape Mode - Tablets and Small Laptops */
@media (max-width: 1023px) and (orientation: landscape) and (min-height: 600px) {
    .progress-container {
        height: 5px;
    }
    
    .progress-text {
        font-size: 11px;
        padding: 3px 10px;
        bottom: 8px;
        right: 15px;
        border-radius: 18px;
    }
}

/* Portrait Tablets - 768px to 1023px */
@media (max-width: 1023px) and (min-width: 768px) and (orientation: portrait) {
    .progress-container {
        height: 5px;
    }
    
    .progress-text {
        font-size: 11px;
        padding: 4px 11px;
        bottom: 9px;
        right: 16px;
        border-radius: 18px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Large Mobile - 600px to 767px */
@media (max-width: 767px) and (min-width: 600px) {
    .progress-container {
        height: 4px;
    }
    
    .progress-text {
        font-size: 10px;
        padding: 3px 9px;
        bottom: 7px;
        right: 14px;
        border-radius: 16px;
    }
}

/* Standard Mobile - 480px to 599px */
@media (max-width: 599px) and (min-width: 480px) {
    .progress-container {
        height: 4px;
    }
    
    .progress-text {
        font-size: 10px;
        padding: 3px 8px;
        bottom: 6px;
        right: 12px;
        border-radius: 14px;
        letter-spacing: 0.3px;
    }
    
    .progress-bar {
        border-radius: 0 2px 2px 0;
    }
    
    .progress-bar::after {
        width: 15px;
        border-radius: 0 2px 2px 0;
    }
}

/* Small Mobile - 375px to 479px */
@media (max-width: 479px) and (min-width: 375px) {
    .progress-container {
        height: 3px;
    }
    
    .progress-text {
        font-size: 9px;
        padding: 2px 7px;
        bottom: 5px;
        right: 10px;
        border-radius: 12px;
        letter-spacing: 0.2px;
    }
    
    .progress-bar {
        border-radius: 0 2px 2px 0;
        box-shadow: 0 0 8px rgba(91, 79, 63, 0.25);
    }
    
    .progress-bar::after {
        width: 12px;
    }
}

/* Extra Small Mobile - Under 375px */
@media (max-width: 374px) {
    .progress-container {
        height: 3px;
    }
    
    .progress-text {
        font-size: 8px;
        padding: 2px 6px;
        bottom: 4px;
        right: 8px;
        border-radius: 10px;
        letter-spacing: 0.1px;
        min-width: 40px;
        text-align: center;
    }
    
    .progress-bar {
        border-radius: 0 1px 1px 0;
        box-shadow: 0 0 6px rgba(91, 79, 63, 0.2);
    }
    
    .progress-bar::after {
        width: 10px;
        border-radius: 0 1px 1px 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .progress-container {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid #000;
    }
    
    .progress-bar {
        background: linear-gradient(135deg, #000, #333);
        box-shadow: none;
    }
    
    .progress-text {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
        border: 1px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .progress-container {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .progress-bar {
        background: linear-gradient(135deg, #8b7d6f, #9d8f7f);
    }
    
    .progress-text {
        background: rgba(30, 30, 30, 0.9);
        color: #f0f0f0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .progress-text {
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
    }
}

/* Print styles - hide progress elements */
@media print {
    .progress-container,
    .progress-text {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .progress-bar {
        transition: width 0.3s ease;
    }
    
    .progress-bar::after {
        animation: none;
    }
    
    .progress-text {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}