/* Roadmap Page Styles */

.roadmap-content {
    max-width: 900px;
}

.roadmap-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.roadmap-section:last-of-type {
    border-bottom: none;
}

.roadmap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.roadmap-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.roadmap-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 0;
}

.status-completed {
    background: #000;
    color: #fff;
}

.status-progress {
    background: var(--accent-color);
    color: #fff;
}

.status-planned {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.status-considering {
    background: #fff;
    color: #666;
    border: 1px dashed #ccc;
}

.roadmap-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.roadmap-item {
    padding: 1.2rem;
    background: #fafafa;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.roadmap-item:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.completed .roadmap-item {
    border-left: 3px solid #000;
}

.in-progress .roadmap-item {
    border-left: 3px solid var(--accent-color);
}

.planned .roadmap-item {
    border-left: 3px solid #ddd;
}

.considering .roadmap-item {
    border-left: 3px dashed #ccc;
    background: #fff;
}

.roadmap-item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roadmap-item p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.roadmap-eta {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 51, 255, 0.05);
    border: 1px solid rgba(0, 51, 255, 0.2);
}

.roadmap-note {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.roadmap-note a {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .roadmap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .roadmap-items {
        grid-template-columns: 1fr;
    }

    .roadmap-item {
        padding: 1rem;
    }

    .roadmap-item h3 {
        font-size: 0.95rem;
    }

    .roadmap-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .roadmap-header h2 {
        font-size: 1.1rem;
    }

    .roadmap-status {
        font-size: 0.6rem;
    }
}

/* ============================================
   ROADMAP PAGE ANIMATIONS
   ============================================ */

/* Roadmap Content Container */
.roadmap-content {
    opacity: 0;
    animation: roadmapFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes roadmapFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Roadmap Sections Stagger */
.roadmap-section {
    opacity: 0;
    transform: translateX(-40px);
    animation: roadmapSectionSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.roadmap-section:nth-child(1) { animation-delay: 0.4s; }
.roadmap-section:nth-child(2) { animation-delay: 0.6s; }
.roadmap-section:nth-child(3) { animation-delay: 0.8s; }
.roadmap-section:nth-child(4) { animation-delay: 1.0s; }

@keyframes roadmapSectionSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status Badge Pulse */
.status-progress {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(0, 51, 255, 0);
    }
}

/* Status Badge Hover */
.roadmap-status {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.roadmap-status:hover {
    transform: scale(1.05);
}

/* Roadmap Items Stagger Animation */
.roadmap-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: itemPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.roadmap-section:nth-child(1) .roadmap-item:nth-child(1) { animation-delay: 0.5s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(2) { animation-delay: 0.55s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(3) { animation-delay: 0.6s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(4) { animation-delay: 0.65s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(5) { animation-delay: 0.7s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(6) { animation-delay: 0.75s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(7) { animation-delay: 0.8s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(8) { animation-delay: 0.85s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(9) { animation-delay: 0.9s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(10) { animation-delay: 0.95s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(11) { animation-delay: 1.0s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(12) { animation-delay: 1.05s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(13) { animation-delay: 1.1s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(14) { animation-delay: 1.15s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(15) { animation-delay: 1.2s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(16) { animation-delay: 1.25s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(17) { animation-delay: 1.3s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(18) { animation-delay: 1.35s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(19) { animation-delay: 1.4s; }
.roadmap-section:nth-child(1) .roadmap-item:nth-child(20) { animation-delay: 1.45s; }

.roadmap-section:nth-child(2) .roadmap-item:nth-child(1) { animation-delay: 0.7s; }
.roadmap-section:nth-child(2) .roadmap-item:nth-child(2) { animation-delay: 0.75s; }
.roadmap-section:nth-child(2) .roadmap-item:nth-child(3) { animation-delay: 0.8s; }

.roadmap-section:nth-child(3) .roadmap-item:nth-child(1) { animation-delay: 0.9s; }
.roadmap-section:nth-child(3) .roadmap-item:nth-child(2) { animation-delay: 0.95s; }
.roadmap-section:nth-child(3) .roadmap-item:nth-child(3) { animation-delay: 1.0s; }
.roadmap-section:nth-child(3) .roadmap-item:nth-child(4) { animation-delay: 1.05s; }
.roadmap-section:nth-child(3) .roadmap-item:nth-child(5) { animation-delay: 1.1s; }

.roadmap-section:nth-child(4) .roadmap-item:nth-child(1) { animation-delay: 1.1s; }
.roadmap-section:nth-child(4) .roadmap-item:nth-child(2) { animation-delay: 1.15s; }
.roadmap-section:nth-child(4) .roadmap-item:nth-child(3) { animation-delay: 1.2s; }

@keyframes itemPopIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Roadmap Item Enhanced Hover */
.roadmap-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    cursor: default;
}

.roadmap-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.completed .roadmap-item:hover {
    border-left-color: var(--accent-color);
}

.in-progress .roadmap-item:hover {
    box-shadow: 8px 8px 0 rgba(0, 51, 255, 0.2);
}

/* Item Title Animation */
.roadmap-item h3 {
    transition: color 0.3s ease, transform 0.3s ease;
}

.roadmap-item:hover h3 {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* ETA Badge Animation */
.roadmap-eta {
    transition: transform 0.3s ease, background 0.3s ease;
}

.roadmap-item:hover .roadmap-eta {
    transform: scale(1.05);
    background: rgba(0, 51, 255, 0.1);
}

/* Completed Checkmark Effect */
.completed .roadmap-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #000;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transform: scale(0);
    animation: checkmarkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.completed .roadmap-item {
    position: relative;
}

.completed .roadmap-item:nth-child(1)::after { animation-delay: 0.6s; }
.completed .roadmap-item:nth-child(2)::after { animation-delay: 0.65s; }
.completed .roadmap-item:nth-child(3)::after { animation-delay: 0.7s; }
.completed .roadmap-item:nth-child(4)::after { animation-delay: 0.75s; }
.completed .roadmap-item:nth-child(5)::after { animation-delay: 0.8s; }
.completed .roadmap-item:nth-child(6)::after { animation-delay: 0.85s; }
.completed .roadmap-item:nth-child(7)::after { animation-delay: 0.9s; }
.completed .roadmap-item:nth-child(8)::after { animation-delay: 0.95s; }
.completed .roadmap-item:nth-child(9)::after { animation-delay: 1.0s; }
.completed .roadmap-item:nth-child(10)::after { animation-delay: 1.05s; }
.completed .roadmap-item:nth-child(11)::after { animation-delay: 1.1s; }
.completed .roadmap-item:nth-child(12)::after { animation-delay: 1.15s; }
.completed .roadmap-item:nth-child(13)::after { animation-delay: 1.2s; }
.completed .roadmap-item:nth-child(14)::after { animation-delay: 1.25s; }
.completed .roadmap-item:nth-child(15)::after { animation-delay: 1.3s; }
.completed .roadmap-item:nth-child(16)::after { animation-delay: 1.35s; }
.completed .roadmap-item:nth-child(17)::after { animation-delay: 1.4s; }
.completed .roadmap-item:nth-child(18)::after { animation-delay: 1.45s; }
.completed .roadmap-item:nth-child(19)::after { animation-delay: 1.5s; }
.completed .roadmap-item:nth-child(20)::after { animation-delay: 1.55s; }

@keyframes checkmarkPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* In Progress Spinner Effect */
.in-progress .roadmap-item::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 51, 255, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

.in-progress .roadmap-item {
    position: relative;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Roadmap Note Animation */
.roadmap-note {
    opacity: 0;
    animation: noteFadeIn 0.6s ease 1.3s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header Line Animation */
.roadmap-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    animation: headerLine 0.8s ease forwards;
}

.roadmap-header {
    position: relative;
}

.roadmap-section:nth-child(1) .roadmap-header::after { animation-delay: 0.5s; }
.roadmap-section:nth-child(2) .roadmap-header::after { animation-delay: 0.7s; }
.roadmap-section:nth-child(3) .roadmap-header::after { animation-delay: 0.9s; }
.roadmap-section:nth-child(4) .roadmap-header::after { animation-delay: 1.1s; }

@keyframes headerLine {
    to {
        width: 100%;
    }
}

/* Grid Reveal Effect for Items Container */
.roadmap-items {
    position: relative;
}

.roadmap-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,1) 100%);
    animation: gridReveal 1s ease forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridReveal {
    to {
        opacity: 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .roadmap-content,
    .roadmap-section,
    .roadmap-item,
    .roadmap-note,
    .completed .roadmap-item::after,
    .in-progress .roadmap-item::before,
    .status-progress {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .roadmap-items::before {
        display: none;
    }
}
