/**
 * Sidebar CSS for Index Page
 * How It Works section, Privacy & Security section, and neomorphism steps
 */

/* How It Works Section */
.how-it-works-section {
    position: relative;
}

/* Neomorphism numbered bullet points */
.neomorphism-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    position: relative;
}

.neomorphism-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.neomorphism-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--card-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neomorphism-steps li:hover::before {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.5),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.neomorphism-steps li .step-content {
    flex: 1;
    line-height: 1.5;
}

.neomorphism-steps li .step-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Connecting line animation between steps */
.connecting-line {
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(139, 92, 246, 0.3) 5%, 
        rgba(139, 92, 246, 0.5) 50%, 
        rgba(139, 92, 246, 0.3) 95%, 
        transparent 100%);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 750ms;
    z-index: 0;
}

.connecting-line.animate-grow {
    opacity: 1;
    transform: scaleY(1);
}

/* Privacy & Security Section */
.security-shield {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-shield.animate-scale-in {
    transform: scale(1);
    opacity: 1;
    animation: shield-pulse 3s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Shield pulse animation */
@keyframes shield-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    }
}

/* Privacy features list styling */
.privacy-features {
    margin-bottom: 0;
}

.privacy-features li {
    line-height: 1.6;
    font-size: 0.9rem;
}

.privacy-features li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.security-badge {
    display: block;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-badge.animate-badge {
    opacity: 1;
    transform: translateX(0);
}

.privacy-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 300ms;
}

.privacy-text.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* Card title animations */
.animate-card-title {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-card-title.animate-fade-down {
    opacity: 1;
    transform: translateY(0);
}

/* Guides Link Section Styling */
.guides-link-section {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(163, 177, 198, 0.15);
}

.guides-link {
    background: var(--card-background);
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    box-shadow: 
        3px 3px 6px rgba(163, 177, 198, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(10px);
    transition-delay: 600ms;
}

.guides-link.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.guides-link:hover {
    color: var(--text-dark);
    text-decoration: none;
    background: var(--card-background);
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(163, 177, 198, 0.1);
}

.guides-link i:first-child {
    color: #64748b;
    font-size: 0.85rem;
}

.guides-link i:last-child {
    color: #64748b;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.guides-link:hover i:first-child {
    color: var(--text-muted);
}

.guides-link:hover i:last-child {
    color: var(--text-muted);
    transform: translateX(2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .connecting-line {
        left: 20px;
        top: 20px;
        bottom: 20px;
    }
    
    .how-it-works-section .neomorphism-steps li {
        transform: translateX(-20px);
    }
    
    .privacy-text {
        transform: translateY(15px);
    }
    
    .guides-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        gap: 0.2rem;
    }
    
    .guides-link i:first-child {
        font-size: 0.85rem;
    }
    
    .guides-link i:last-child {
        font-size: 0.7rem;
    }
}

/* Desktop - no animations, everything visible by default */
@media (min-width: 769px) {
    .privacy-text,
    .animate-card-title,
    .security-badge,
    .security-shield,
    .how-it-works-section .security-badge,
    .privacy-features li {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Ensure privacy section has same layout as how-it-works */
    .how-it-works-section {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
}