/* Salted Edge Progress Tracker Styles */

/* Progress Widget - Header Slim Style */
.salted-progress-widget.salted-header-widget {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 10px 0;
    max-width: 100%;
    border: 1px solid rgba(45, 90, 135, 0.1);
}

.salted-widget-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 36px;
}

.salted-widget-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.salted-widget-label {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.salted-stage-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.salted-widget-center {
    flex: 1;
    min-width: 120px;
}

.salted-header-widget .salted-mini-progress-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.salted-header-widget .salted-mini-progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    transition: width 0.8s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 35px;
}

.salted-progress-percentage {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.salted-widget-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.salted-task-count {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
}

.salted-header-widget .salted-view-progress-btn {
    background: transparent;
    color: #28a745;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #28a745;
    white-space: nowrap;
}

.salted-header-widget .salted-view-progress-btn:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
    transform: translateX(2px);
}

/* Dark header compatibility */
.site-header .salted-progress-widget.salted-header-widget,
header .salted-progress-widget.salted-header-widget {
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments for header widget */
@media (max-width: 768px) {
    .salted-progress-widget.salted-header-widget {
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .salted-widget-content {
        gap: 10px;
        min-height: 32px;
    }
    
    .salted-stage-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .salted-widget-center {
        min-width: 80px;
    }
    
    .salted-task-count {
        font-size: 0.75rem;
    }
    
    .salted-header-widget .salted-view-progress-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .salted-header-widget .salted-mini-progress-bar {
        height: 16px;
    }
}

@media (max-width: 580px) {
    .salted-task-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .salted-stage-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .salted-header-widget .salted-view-progress-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

/* Full Tracker Styles */
.salted-tracker-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.salted-tracker-header {
    text-align: center;
    margin-bottom: 40px;
}

.salted-tracker-header h1 {
    font-size: 2rem;
    color: #2d5a87;
    margin-bottom: 5px;
}

.salted-tracker-header p {
    color: #666;
}

.salted-journey-progress {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.salted-progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.salted-current-stage {
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 8px;
}

.salted-stage-description {
    color: #666;
    margin-bottom: 20px;
}

.salted-stage-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
}

.salted-nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #28a745;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.salted-nav-btn:hover:not(:disabled) {
    background: #28a745;
    color: white;
}

.salted-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#saltedStageIndicator {
    font-weight: 600;
    color: #28a745;
}

.salted-main-progress-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.salted-main-progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    transition: width 1s ease;
    border-radius: 10px;
}

.salted-stage-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

.salted-stage-marker {
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.salted-stage-marker.completed {
    color: #28a745;
    font-weight: 600;
}

.salted-stage-marker.current {
    color: #28a745;
    font-weight: 600;
}

.salted-current-tasks {
    margin-top: 30px;
}

.salted-tasks-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #28a745;
}

.salted-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.salted-task-item:last-child {
    border-bottom: none;
}

.salted-task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.salted-task-checkbox:hover {
    border-color: #28a745;
}

.salted-task-checkbox.checked {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.salted-task-checkbox.checked::after {
    content: '✓';
    font-size: 11px;
    font-weight: bold;
}

.salted-task-text {
    flex: 1;
    cursor: pointer;
}

.salted-task-text.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.salted-task-link {
    color: #28a745;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.salted-task-link:hover {
    background: #f0f2f5;
    text-decoration: none;
}

.salted-stage-complete-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.salted-stage-complete-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.salted-stage-complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.salted-completion-stats {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.salted-celebration {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.salted-celebration.show {
    animation: saltedSlideIn 0.5s ease;
}

@keyframes saltedSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.salted-next-steps {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.salted-next-steps h4 {
    color: #856404;
    margin-bottom: 8px;
    margin-top: 0;
}

.salted-next-steps p {
    color: #856404;
    margin: 0;
}

/* Preview Mode Indicators */
.salted-preview-mode .salted-task-checkbox {
    pointer-events: none;
    opacity: 0.7;
}

.salted-preview-mode .salted-stage-complete-btn {
    pointer-events: none;
    opacity: 0.7;
}

.salted-preview-indicator {
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Mobile Responsiveness for Full Tracker */
@media (max-width: 768px) {
    .salted-tracker-container {
        padding: 5px;
        max-width: 100%;
    }
    
    .salted-journey-progress {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    }
    
    .salted-progress-header {
        margin-bottom: 20px;
    }
    
    .salted-current-stage {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .salted-stage-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .salted-stage-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        flex-direction: row;
    }
    
    .salted-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
    
    .salted-stage-indicator {
        font-size: 0.85rem;
    }
    
    .salted-main-progress-bar {
        height: 10px;
        margin: 15px 0;
    }
    
    .salted-stage-markers {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    
    .salted-tasks-header {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .salted-task-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .salted-task-checkbox {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
    
    .salted-task-text {
        flex: 1;
        font-size: 0.9rem;
        line-height: 1.4;
        padding-right: 5px;
    }
    
    .salted-task-link {
        font-size: 0.8rem;
        padding: 3px 8px;
        white-space: nowrap;
        margin-top: 2px;
    }
    
    .salted-stage-complete-btn {
        padding: 12px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .salted-completion-stats {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .salted-next-steps {
        padding: 12px;
        margin-top: 15px;
    }
    
    .salted-next-steps h4 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .salted-next-steps p {
        font-size: 0.85rem;
    }
    
    .salted-celebration {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .salted-celebration h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .salted-preview-indicator {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .salted-tracker-container {
        padding: 0;
    }
    
    .salted-journey-progress {
        padding: 12px;
        border-radius: 6px;
    }
    
    .salted-current-stage {
        font-size: 1rem;
    }
    
    .salted-stage-description {
        font-size: 0.8rem;
    }
    
    .salted-nav-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .salted-main-progress-bar {
        height: 8px;
    }
    
    .salted-stage-markers {
        font-size: 0.65rem;
        gap: 2px;
    }
    
    .salted-stage-marker {
        padding: 0 2px;
    }
    
    .salted-task-item {
        padding: 8px 0;
    }
    
    .salted-task-checkbox {
        width: 18px;
        height: 18px;
    }
    
    .salted-task-text {
        font-size: 0.85rem;
    }
    
    .salted-task-link {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .salted-stage-complete-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .salted-stage-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .salted-stage-indicator {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 5px;
    }
    
    .salted-nav-btn {
        flex: 1;
    }
    
    .salted-task-link {
        display: none;
    }
    
    .salted-task-text {
        padding-right: 0;
    }
}