/* Shared styling for the star-history popup on card-style pages. */

.star-history-tooltip {
    position: absolute;
    width: 432px;
    height: 302px;
    background: #1a1f2e;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
    font-family: "JetBrains Mono", "Azeret Mono", "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.star-history-tooltip.visible { display: block; }

.star-history-tooltip .tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.star-history-tooltip .repo-title {
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.star-history-tooltip .chart-label {
    color: #4ade80;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.star-history-tooltip .time-filter-container {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}
.star-history-tooltip .time-filter-btn {
    padding: 3px 8px;
    font-size: 11px;
    border: none;
    border-radius: 12px;
    background: #374151;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.star-history-tooltip .time-filter-btn:hover { background: #4b5563; color: #e5e7eb; }
.star-history-tooltip .time-filter-btn.active { background: #4ade80; color: #1a1f2e; font-weight: 600; }

.star-history-tooltip .chart-wrapper {
    width: 100%;
    height: calc(100% - 60px);
    position: relative;
    overflow: visible;
}

.star-history-tooltip .momentum-gauge {
    position: absolute;
    top: -5px;
    left: 35px;
    width: 100px;
    z-index: 10;
    overflow: visible;
}
.star-history-tooltip .momentum-gauge img { width: 100%; height: auto; display: block; }
.star-history-tooltip .momentum-gauge .gauge-needle-svg {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    pointer-events: none;
    overflow: visible;
}
.star-history-tooltip .momentum-gauge .needle-group {
    transition: transform 0.5s ease-out;
}
