/* Enhanced Design Components for How it Works and Modern Pages */

/* Process Steps Timeline */
.process-timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.process-step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.process-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
    position: relative;
    z-index: 2;
}

.process-step-number.accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.process-step-number.secondary {
    background: linear-gradient(135deg, var(--secondary-primary), var(--secondary-secondary));
    box-shadow: 0 4px 12px rgba(var(--secondary-primary-rgb), 0.3);
}

.process-step-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, var(--brand-primary), transparent);
    margin-top: var(--spacing-sm);
    opacity: 0.5;
}

.process-step:last-child .process-step-line {
    display: none;
}

.process-step-content {
    flex: 1;
    padding-top: var(--spacing-sm);
}

/* Enhanced Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.05), rgba(var(--accent-primary-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 32px rgba(var(--brand-primary-rgb), 0.2);
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-primary));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.pricing-amount.free {
    background: linear-gradient(135deg, var(--success-primary), var(--success-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount.featured {
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount.contact {
    background: linear-gradient(135deg, var(--secondary-primary), var(--secondary-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.pricing-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced Feature Lists */
.features-section {
    margin-bottom: var(--spacing-lg);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    color: var(--brand-primary);
    transform: translateX(4px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--success-primary);
    flex-shrink: 0;
}

/* Enhanced Cards */
.card-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

.card-glow {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-primary));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glow:hover::before {
    opacity: 0.3;
}

.card-neo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-neo:hover {
    transform: translateY(-2px);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.15);
}

/* Enhanced Pledge Section */
.pledge-container {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.pledge-card {
    position: relative;
    background: var(--surface-elevated);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(var(--brand-primary-rgb), 0.1);
}

.quote-mark {
    position: absolute;
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.2;
    line-height: 1;
}

.quote-mark:first-child {
    top: var(--spacing-md);
    left: var(--spacing-md);
}

.quote-mark.end {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    transform: rotate(180deg);
}

.pledge-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Enhanced Process Numbers */
.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.process-number.accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
}

.process-number.secondary {
    background: linear-gradient(135deg, var(--secondary-primary), var(--secondary-secondary));
    box-shadow: 0 6px 20px rgba(var(--secondary-primary-rgb), 0.4);
}

.process-number.success {
    background: linear-gradient(135deg, var(--success-primary), var(--success-secondary));
    box-shadow: 0 6px 20px rgba(var(--success-primary-rgb), 0.4);
}

/* Enhanced Audit Info Box */
.audit-info-box {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Enhanced Focus States */
.enhanced-focus {
    transition: all 0.3s ease;
}

.enhanced-focus:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.enhanced-focus:focus-within {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

.status-online {
    background: var(--success-primary);
}

.status-warning {
    background: var(--warning-primary);
}

.status-success {
    background: var(--success-primary);
}

/* Pulse Glow Animation */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(var(--brand-primary-rgb), 0.8);
    }
}

/* GPU Acceleration for Smooth Animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Code Block Styling */
.code-block {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .process-step-line {
        width: 80px;
        height: 2px;
        margin: var(--spacing-sm) 0;
    }
    
    .pledge-card {
        margin: 0 var(--spacing-md);
    }
    
    .quote-mark {
        font-size: 3rem;
    }
}