/* Page Header Styles for Roadmap */
body.fancyBackground .page-header h2 {
    color: #2d1b3d;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

body.fancyBackground .page-header .subtitle {
    color: #3d2b4d;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

/* Latest Update Section */
.latest-update-section {
    margin: 3rem 0;
}

.latest-update-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 4rem 5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.latest-update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.latest-update-card h3 {
    color: #2d1b3d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.latest-update-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #3d2b4d;
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

.latest-update-card .feature-list {
    text-align: left;
    display: inline-block;
    margin-top: 2rem;
}

.latest-update-card .timeline-status {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Roadmap Control Slider */
.roadmap-control {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timeline-control-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d1b3d;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.slider-value {
    color: #4a1a6c;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.slider-container {
    position: relative;
}

.timeline-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(0, 102, 255, 0.2) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-slider:hover {
    height: 10px;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.5);
    transition: all 0.3s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.7);
}

.timeline-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.5);
    transition: all 0.3s ease;
}

.timeline-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.7);
}

.slider-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 12px;
    padding-left: 0;
    margin-left: -10px;
}

.slider-step {
    font-size: 0.85rem;
    color: #4a1a6c;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    user-select: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.slider-step:hover {
    color: #2d1b3d;
    background: rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.slider-step.active {
    color: #2d1b3d;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
    padding: 2rem 0;
    min-height: 500px;
}

.timeline-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem 4rem;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
    /* Начальное состояние для анимации появления */
    opacity: 0;
    transform: translateY(50px) translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.timeline-item.visible:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item.current {
    background: rgba(240, 253, 244, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-item.current.visible:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item h3 {
    color: #2d1b3d;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.timeline-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-current {
    background-color: #dcfce7;
    color: #10b981;
}

.status-in-progress {
    background-color: #dbeafe;
    color: #0066ff;
    font-weight: 600;
}

.status-planned {
    background-color: #fef3c7;
    color: #d97706;
}

.status-future {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.status-recent {
    background-color: #fdf2f8;
    color: #ec4899;
}

.feature-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
    color: #3d2b4d;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.feature-list li::before {
    content: "•";
    color: #4a1a6c;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.timeline-item p {
    color: #3d2b4d;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

/* Класс для видимых элементов */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
    pointer-events: auto;
    z-index: 1;
}

