/* Backlog Specific Styles */

/* Roadmap Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--light-gray);
    border-radius: 2px;
}

.quarter-card {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.quarter-card::before {
    content: '';
    position: absolute;
    left: -2.4rem; /* Adjust based on padding of container */
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.quarter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.quarter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quarter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.quarter-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.85rem;
}

.quarter-status.future {
    background: #e3f2fd;
    color: #1565c0;
}

/* Backlog Detail Page */
.backlog-header {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Epics */
.epic-container {
    margin-bottom: 2.5rem;
    background: var(--white);
    border-radius: 8px; /* Rounded corners for the whole epic block */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden; /* Contains the children */
    border: 1px solid var(--border-color);
}

.epic-header {
    background: #f8f9fa; /* Slight off-white header */
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.epic-title-group h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.epic-meta {
    font-size: 0.85rem;
    color: #666;
}

/* User Stories (Jira-like layout) */
.story-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.story-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.1s;
}

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

.story-item:hover {
    background-color: #fafafa;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.story-id {
    font-family: monospace;
    font-weight: 600;
    color: #555;
    background: #eee;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.story-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-right: auto;
}

/* Tags & Badges */
.badge-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-priority-high, .badge-priority-must-have {
    background-color: #ffebee;
    color: #c62828;
}

.badge-priority-medium {
    background-color: #fff3e0;
    color: #ef6c00;
}

.badge-status-done {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-status-inprogress {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.badge-points {
    background-color: #eceff1;
    color: #455a64;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    title: "Story Points";
}

/* Content */
.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
    }
}

.story-description p {
    margin: 0.5rem 0;
    font-style: italic;
    color: #444;
}

.story-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.acceptance-criteria h4, .tech-notes h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.acceptance-criteria ul, .tech-notes ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #444;
}

.acceptance-criteria li, .tech-notes li {
    margin-bottom: 0.25rem;
}

.tech-notes {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 0.85rem;
}
