/* Surgery Walkthrough Styles */

/* Section Wrapper */
.surgery-walkthrough {
    padding: 20px 0 80px;
    background: transparent;
}

/* Wrapper */
.walkthrough-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Procedure Tabs */
.procedure-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.procedure-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.procedure-tab i {
    font-size: 18px;
    color: #00CED1;
}

.procedure-tab:hover {
    background: rgba(0, 206, 209, 0.1);
    border-color: rgba(0, 206, 209, 0.3);
    color: #fff;
}

.procedure-tab.active {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, rgba(0, 206, 209, 0.05) 100%);
    border-color: #00CED1;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.2);
}

/* Procedure Overview */
.procedure-overview {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 25px 30px;
    margin-bottom: 30px;
    align-items: center;
}

.overview-content h3 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.overview-content h3 i {
    color: #00CED1;
}

.overview-content p {
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.overview-stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: var(--bg-input);
    border-radius: 12px;
    min-width: 100px;
}

.stat-item i {
    color: #00CED1;
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

/* Timeline Container */
.timeline-container {
    margin-bottom: 30px;
}

.phase-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 10px;
}

.phase-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 15px;
}

.phase-label.before {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
}

.phase-label.during {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
}

.phase-label.after {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(226, 232, 240, 1);
    height: 6px;
    border-radius: 3px;
    padding: 0 25px;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #F59E0B, #10B981);
    border-radius: 3px;
    transition: width 0.4s ease;
    z-index: 1;
}

.timeline-step {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-step .step-dot {
    display: none;
}

.timeline-step .step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.timeline-step.before {
    border-color: #3B82F6;
}

.timeline-step.during {
    border-color: #F59E0B;
}

.timeline-step.after {
    border-color: #10B981;
}

.timeline-step:hover {
    transform: scale(1.15);
}

.timeline-step.active {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
}

.timeline-step.active .step-number {
    color: #fff;
}

.timeline-step.active.before {
    background: #3B82F6;
}

.timeline-step.active.during {
    background: #F59E0B;
}

.timeline-step.active.after {
    background: #10B981;
}

.timeline-step.completed {
    background: rgba(226, 232, 240, 0.5);
}

.timeline-step.completed .step-number {
    color: #fff;
}

/* Step Content */
.step-content {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 30px;
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-phase-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.step-phase-badge.before {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.step-phase-badge.during {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.step-phase-badge.after {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, rgba(0, 206, 209, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #00CED1;
    border: 1px solid rgba(0, 206, 209, 0.3);
    flex-shrink: 0;
}

.step-info h4 {
    color: var(--text-main);
    font-size: 24px;
    margin: 0 0 8px 0;
}

.step-duration {
    color: #64748B;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-duration i {
    color: #00CED1;
}

.step-description {
    color: var(--text-sec);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.step-details {
    background: var(--bg-input);
    border-radius: 14px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.step-details h5 {
    color: #00CED1;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.step-details li {
    color: var(--text-sec);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-details li i {
    color: #10B981;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(.disabled) {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
}

.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.step-counter {
    color: #64748B;
    font-size: 14px;
}

/* CTA */
.walkthrough-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1) 0%, rgba(0, 206, 209, 0.02) 100%);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 20px;
}

.walkthrough-cta p {
    color: #94A3B8;
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #00CED1 0%, #00ACC1 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 206, 209, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .procedure-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .overview-stats {
        justify-content: center;
    }

    .phase-labels {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .timeline-track {
        padding: 0 15px;
    }

    .timeline-step {
        width: 32px;
        height: 32px;
    }

    .timeline-step .step-number {
        font-size: 12px;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
    }

    .step-details ul {
        grid-template-columns: 1fr;
    }

    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}