/**
 * Version History Styles
 * Modal mit Abschnitten (Breakthrough, Bugfixes, Optimizations) + Performance-Badges/Graphen pro Version
 */

.version-indicator-new {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: var(--radius-circle);
    margin-left: 6px;
    animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

/* === Modal Overlay + Card === */
#version-history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#version-history-modal.show {
    display: flex;
}

.version-history-container,
#version-history-modal .version-history-modal {
    background: rgba(28, 28, 30, 0.65);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.version-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.version-history-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.version-history-header .close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.version-history-header .close-btn:hover {
    color: #fff;
}

#version-history-list {
    margin-top: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* === Monats-Header === */
.month-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin: 32px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.month-header:first-child {
    margin-top: 0;
}

/* === Version-Item (Karte pro Version) === */
.version-item {
    background: transparent;
    border-radius: 8px;
    padding: 24px 20px;
    margin-bottom: 24px;
    border-left: none; /* Kein Rand bei normalen Versionen */
}

/* Nur Breakthrough bekommt grünen Rand */
.version-item.breakthrough-version {
    border-left: 4px solid #4ade80;
    padding-left: 20px;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.version-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-number {
    font-size: 18px;
    font-weight: 600;
    color: #fff; /* Weiß statt Blau */
}

.version-session-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.version-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* === Abschnitte (Breakthrough, Bugfixes, Optimizations) === */
.version-section {
    margin-top: 20px;
    margin-bottom: 16px;
}

.version-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

/* Keine bunten Section-Titel mehr - alle grau */

.breakthrough-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}

.breakthrough-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.breakthrough-impact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.breakthrough-impact .arrow {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.3);
}

.version-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-highlights li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.version-highlights li:last-child {
    border-bottom: none;
}

.version-highlights li .arrow {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.25);
}

.version-highlights li .impact {
    color: rgba(255, 255, 255, 0.5);
}

.version-highlights li.internal-bullet {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.internal-icon {
    opacity: 0.8;
}

/* Load More Button */
.load-more-versions {
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 14px;
}

.load-more-versions:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* === Period Filter (New / All) === */
.vh-filter-bar {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.vh-filter-btn {
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vh-filter-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.vh-filter-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}
