/* Changelog Page Styles */
.changelog-section {
    width: 100%;
    padding: 150px 40px 80px;
    min-height: calc(100vh - 200px);
}

.changelog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.changelog-main-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    margin-top: 20px;
}

.changelog-product-title {
    font-family: var(--font-family-heading);
    font-size: 72px;
    font-weight: bold;
    color: white;
    margin: 0 0 24px 0;
    text-align: center;
}

.changelog-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    margin: 0 0 40px 0;
    text-align: center;
    max-width: 1000px;
    line-height: 1.6;
}

.changelog-view-toggle-container {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.changelog-view-toggle {
    display: flex;
    background: rgba(38, 38, 38, 1);
    border-radius: 17px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 4px 5px 5.2px 0 rgba(0, 0, 0, 0.25);
}

.view-toggle-btn {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle-btn i {
    font-size: 16px;
}

.view-toggle-btn.active {
    background: rgba(55, 55, 55, 1);
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.view-toggle-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.changelog-timeline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-view-cards.hidden,
.changelog-view-graph.hidden {
    display: none !important;
}

.changelog-view-cards:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-view-graph:not(.hidden) {
    display: block;
}

.changelog-version {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .changelog-version {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}


.changelog-version:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-number {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-date {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 0.8);
    font-weight: 400;
}

.version-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.version-badge-new {
    background: rgba(100, 104, 251, 0.2);
    color: #6468FB;
    border-color: rgba(100, 104, 251, 0.5);
}

.version-badge-major {
    background: rgba(107, 255, 124, 0.2);
    color: #6bff70;
    border-color: rgba(107, 255, 156, 0.5);
}

.version-badge-beta {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.5);
}

.version-badge-alpha {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border-color: rgba(156, 39, 176, 0.5);
}

.version-changes {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.change-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.change-category-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 20px;
    background: rgba(21, 21, 21, 0.35);
    border: 1px solid rgba(71, 71, 71, 0.35);
}

.change-category-title i {
    font-size: 18px;
}

.change-new {
    color: #6468FB;
}

.change-improved {
    color: #5AF75A;
}

.change-fixed {
    color: #FF6B6B;
}

.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.change-item {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
}

.change-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    line-height: 1;
}

.change-category:has(.change-new) .change-item::before {
    color: #6468FB;
}

.change-category:has(.change-improved) .change-item::before {
    color: #5AF75A;
}

.change-category:has(.change-fixed) .change-item::before {
    color: #FF6B6B;
}

/* Ссылки на модули в тексте: тот же оттенок, что у акцентов сайта, без «кнопочного» вида */
.changelog-version .change-item .changelog-doc-link {
    color: rgba(100, 104, 251, 0.78);
    text-decoration: none;
    transition: color 0.18s ease;
}

.changelog-version .change-item .changelog-doc-link:hover {
    color: rgba(180, 182, 255, 0.98);
}

.changelog-footer {
    width: 100%;
    padding: 40px;
    text-align: center;
}

/* Graph View Styles */
.changelog-graph {
    width: 100%;
    padding: 40px 0;
}

.graph-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.graph-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        rgba(100, 104, 251, 0.3) 0%,
        rgba(100, 104, 251, 0.6) 50%,
        rgba(100, 104, 251, 0.3) 100%
    );
    transform: translateX(-50%);
    border-radius: 2px;
}

.graph-node {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    z-index: 1;
}

.graph-node:last-child {
    margin-bottom: 0;
}

.graph-node:nth-of-type(even) {
    flex-direction: row-reverse;
}

.graph-node:nth-of-type(even) .graph-node-content {
    margin-left: 0;
    margin-right: auto;
}

.graph-node-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6468FB;
    border: 4px solid rgba(21, 21, 21, 0.9);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(100, 104, 251, 0.2);
    transition: all 0.3s ease;
}

.graph-node:hover .graph-node-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(100, 104, 251, 0.3);
}

.graph-node-content {
    width: calc(50% - 40px);
    background: rgba(21, 21, 21, 0.6);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
    margin-right: 0;
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .graph-node-content {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}


.graph-node:hover .graph-node-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.graph-node-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.graph-version-number {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.graph-version-date {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(186, 186, 186, 0.8);
    font-weight: 400;
}

.graph-version-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    margin-left: auto;
}

.graph-node-summary {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: rgba(186, 186, 186, 1);
    line-height: 1.6;
    margin: 0;
}

.graph-node-summary p {
    margin: 0;
}

/* Changelog Responsive */
@media (max-width: 767px) {
    .changelog-section {
        padding: calc(92px + env(safe-area-inset-top)) 16px 40px;
    }

    .changelog-main-title {
        font-size: 28px;
        margin-top: 16px;
    }

    .changelog-product-title {
        font-size: 32px;
        margin-bottom: 16px;
        letter-spacing: 1px;
    }

    .changelog-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .changelog-version {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .version-number {
        font-size: 22px;
    }
    
    .version-date {
        font-size: 13px;
    }

    .change-category-title {
        font-size: 17px;
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .change-item {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 20px;
    }

    .changelog-view-toggle {
        width: 100%;
        display: flex;
        width: 100%;
        margin-bottom: 24px;
    }

    .view-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .graph-timeline {
        padding: 20px 0;
    }

    .graph-line {
        left: 20px;
    }

    .graph-node {
        flex-direction: row !important;
        padding-left: 40px;
    }

    .graph-node-dot {
        left: 20px;
    }

    .graph-node-content {
        width: calc(100% - 40px);
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .graph-version-number {
        font-size: 20px;
    }

    .graph-node-summary {
        font-size: 13px;
    }
}

