/* RepairNinja - Timeline Styles */

/* Montserrat Font Faces */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Montserrat-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Montserrat-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Montserrat-Bold.woff2') format('woff2');
}

:root {
    --primary-color: #1a73e8;
}

/* Base font styles for timeline */
.timeline-section,
.timeline-entry {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.timeline-section {
    margin: 30px 0;
}

.timeline-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 16px;
}

.timeline-entry {
    background: #f9f9f9;
    border-left: 4px solid #457b9d;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.timeline-entry.has-notes {
    background: #e8f2f7;
    border-left-color: #e63946;
}

.timeline-entry.has-attachments {
    background: #f0f7fa;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.timeline-entry.has-attachments .timeline-header {
    cursor: pointer;
    user-select: none;
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.timeline-header:focus {
    outline: 3px solid var(--primary-color, #1a73e8);
    outline-offset: 2px;
}

.timeline-entry.has-attachments .timeline-header:hover {
    background-color: rgba(69, 123, 157, 0.1);
}

.timeline-stage {
    font-weight: 600;
    color: #1d3557;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-stage .stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color, #1a73e8);
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.timeline-time {
    color: #666;
    font-size: 16px;
}

.timeline-notes {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
}

.timeline-expand-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    color: #457b9d;
    transition: transform 0.3s ease;
}

.timeline-entry.expanded .timeline-expand-icon {
    transform: rotate(90deg);
}

.timeline-attachments-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.timeline-entry.expanded .timeline-attachments-container {
    max-height: 1000px;
    opacity: 1;
    margin-top: 12px;
}

.timeline-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.timeline-attachment {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;
    background: none;
    padding: 0;
    display: block;
}

.timeline-attachment:focus {
    outline: 3px solid var(--primary-color, #1a73e8);
    outline-offset: 2px;
}

.timeline-attachment:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #457b9d;
}

.timeline-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-attachments-count {
    display: inline-block;
    background: #457b9d;
    color: white;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

.timeline-occurrence {
    display: inline-block;
    background: #e0e0e0;
    color: #666;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-family: monospace;
    font-weight: 500;
}

