/* Contribution Grid Styles */
.contribution-grid-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contribution-grid-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 3px;
    margin-top: 0.5rem;
}

.contribution-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    background-color: #ebedf0;
    transition: all 0.2s ease;
}

.contribution-cell.level-1 {
    background-color: #9be9a8;
}

.contribution-cell.level-2 {
    background-color: #40c463;
}

.contribution-cell.level-3 {
    background-color: #30a14e;
}

.contribution-cell.level-4 {
    background-color: #216e39;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #586069;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
}

.legend-color.empty {
    background-color: #ebedf0;
}

.legend-color.level-1 {
    background-color: #9be9a8;
}

.legend-color.level-2 {
    background-color: #40c463;
}

.legend-color.level-3 {
    background-color: #30a14e;
}

.legend-color.level-4 {
    background-color: #216e39;
}

.contribution-tooltip {
    position: absolute;
    background-color: #24292e;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .contribution-grid {
        grid-template-columns: repeat(15, 1fr);
    }
}

@media (max-width: 480px) {
    .contribution-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .contribution-legend {
        justify-content: center;
    }
}