/* Recollection Dates Status Styling */
/* Created: September 25, 2025 */

/* Base recollection date styling */
.recollection-date {
    position: relative;
    display: inline-block;
    font-weight: 500;
}

/* Active dates - normal styling */
.recollection-date.status-active {
    color: var(--color-text-primary, #374151);
    font-weight: 500;
}

/* Cancelled dates - red diagonal strikethrough */
.recollection-date.status-cancelled {
    color: #dc2626;
    text-decoration: line-through;
    position: relative;
}

.recollection-date.status-cancelled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc2626;
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 1;
}

/* TBA dates - italic styling */
.recollection-date.status-tba {
    color: var(--color-warning, #f59e0b);
    font-style: italic;
    font-weight: 600;
}

/* Moved dates - show original struck out + new date */
.recollection-date.status-moved {
    color: var(--color-text-primary, #374151);
    position: relative;
}

.recollection-date.status-moved .original-date {
    text-decoration: line-through;
    color: var(--color-text-muted, #6b7280);
    margin-right: 8px;
}

.recollection-date.status-moved .new-date {
    color: var(--color-success, #16a34a);
    font-weight: 600;
}

/* Empty cells - muted styling */
.recollection-date.status-empty {
    color: var(--color-text-muted, #6b7280);
    font-weight: 300;
}

/* Table cell styling for status-based backgrounds */
.recollection-table td.status-active {
    background: #f0fdf4;
}

.recollection-table td.status-cancelled {
    background: #fef2f2;
}

.recollection-table td.status-tba {
    background: #fffbeb;
}

.recollection-table td.status-moved {
    background: #f0fdf4;
}

.recollection-table td.status-empty {
    background: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recollection-date.status-moved .original-date {
        margin-right: 4px;
        font-size: 0.9em;
    }
    
    .recollection-date.status-moved .new-date {
        font-size: 0.9em;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .recollection-date.status-cancelled {
        color: #000;
        background: #ff0000;
    }
    
    .recollection-date.status-tba {
        color: #000;
        background: #ffff00;
    }
    
    .recollection-date.status-moved .new-date {
        color: #000;
        background: #00ff00;
    }
}

/* Print styles */
@media print {
    .recollection-date.status-cancelled::after {
        display: none;
    }
    
    .recollection-date.status-cancelled {
        text-decoration: line-through;
    }
    
    .recollection-date.status-moved .original-date {
        text-decoration: line-through;
    }
}
