* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 860px;
    width: 100%;
}

h1 {
    color: #1e4b69;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.framework-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.framework-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #fff;
}

.scrum-header {
    background: linear-gradient(135deg, #2471a3, #2e86c1);
}

.kanban-header {
    background: linear-gradient(135deg, #1e8449, #27ae60);
}

.framework-header h2 {
    font-size: 1.2rem;
}

.framework-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.scrum-content {
    padding: 20px;
}

.sprint-cycle-wrapper {
    display: flex;
    gap: 24px;
    align-items: center;
}

.sprint-cycle {
    flex-shrink: 0;
}

.cycle-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: 700;
    color: #1e4b69;
    font-size: 1rem;
    line-height: 1.3;
}

.cycle-duration {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

.cycle-event {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translateY(-80px) rotate(calc(-1 * var(--angle)));
    margin: -16px 0 0 -40px;
    width: 80px;
    text-align: center;
    cursor: pointer;
}

.event-dot {
    width: 14px;
    height: 14px;
    background: #2e86c1;
    border-radius: 50%;
    margin: 0 auto 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cycle-event:hover .event-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(46, 134, 193, 0.3);
}

.event-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.sprint-backlog {
    flex: 1;
}

.sprint-backlog h3 {
    color: #1e4b69;
    font-size: 1rem;
    margin-bottom: 10px;
}

.backlog-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.backlog-item {
    background: #f0f7fc;
    border-left: 3px solid #2e86c1;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-pts {
    background: #2e86c1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.velocity-bar {
    margin-top: 10px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e86c1;
}

.scrum-tooltip {
    margin-top: 12px;
    min-height: 40px;
    padding: 10px 14px;
    background: #f0f7fc;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    display: none;
}

.scrum-tooltip.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Comparison Callouts */
.comparison-callouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid #1e4b69;
}

.callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.callout-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.callout-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #555;
}

.callout-text strong {
    color: #1e4b69;
}

/* Kanban Board */
.kanban-content {
    padding: 20px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.kanban-column {
    background: #f8faf8;
    border-radius: 8px;
    min-height: 180px;
}

.column-header {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.column-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #1e4b69;
}

.wip-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

.kanban-cards {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kanban-card {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.kanban-card:hover {
    transform: translateX(3px);
}

.card-feature {
    background: #fff;
    border-left: 3px solid #27ae60;
    color: #333;
}

.card-bug {
    background: #fff;
    border-left: 3px solid #e74c3c;
    color: #333;
}

.card-done {
    background: #e8f8f0;
    border-left: 3px solid #95d5b2;
    color: #888;
    text-decoration: line-through;
}

.animated-card {
    animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 2px 12px rgba(39, 174, 96, 0.2); }
}

.flow-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.flow-arrow {
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, #27ae60, #1e8449);
    position: relative;
    border-radius: 2px;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border-top: 5.5px solid transparent;
    border-bottom: 5.5px solid transparent;
    border-left: 10px solid #1e8449;
}

.flow-indicator span {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

@media (max-width: 650px) {
    .sprint-cycle-wrapper {
        flex-direction: column;
    }

    .kanban-board {
        grid-template-columns: 1fr 1fr;
    }

    .comparison-callouts {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.3rem; }
}

@media (max-width: 400px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}
