/* Evolution Explainer Styles - Pyramid with Gaps */

.evolution-container {
    position: relative;
    padding: 2rem 0;
}

.evolution-pyramid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Pyramid Structure - Separated tiers with gaps */
.evolution-pyramid {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gap between tiers */
.pyramid-gap {
    height: 20px;
    width: 100%;
}

.pyramid-tier {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pyramid-tier:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.pyramid-tier-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.pyramid-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.pyramid-label {
    font-size: 1rem;
    font-weight: 700;
}

/* Tier 3: Enlightened (Top - Triangle) */
.tier-enlightened {
    width: 50%;
    min-height: 100px;
    background: linear-gradient(135deg, #e8f0ff 0%, #d0e0ff 100%);
    box-shadow: 0 4px 16px rgba(27, 73, 201, 0.2);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.tier-enlightened .pyramid-icon {
    color: #1B49C9;
}

.tier-enlightened .pyramid-label {
    color: #1B49C9;
}

/* Tier 2: Conscious (Middle - Trapezoid) */
.tier-conscious {
    width: 75%;
    min-height: 90px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    clip-path: polygon(17% 0%, 83% 0%, 100% 100%, 0% 100%);
}

.tier-conscious .pyramid-icon {
    color: #FFA500;
}

.tier-conscious .pyramid-label {
    color: #FFA500;
}

/* Tier 1: Unconscious (Bottom - Trapezoid) */
.tier-unconscious {
    width: 100%;
    min-height: 90px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    clip-path: polygon(12.5% 0%, 87.5% 0%, 100% 100%, 0% 100%);
}

.tier-unconscious .pyramid-icon {
    color: #666;
}

.tier-unconscious .pyramid-label {
    color: #666;
}

/* Text Descriptions */
.evolution-descriptions {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.evolution-desc-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.desc-connector {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 2px;
    margin-top: 0.5rem;
    background: currentColor;
    opacity: 0.6;
}

.desc-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.desc-content {
    flex: 1;
}

.desc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.desc-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.desc-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1B49C9;
    padding: 0.25rem 0.75rem;
    background-color: rgba(27, 73, 201, 0.1);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Color coding for descriptions */
.desc-enlightened .desc-connector {
    color: #1B49C9;
}

.desc-enlightened .desc-title {
    color: #1B49C9;
}

.desc-conscious .desc-connector {
    color: #FFA500;
}

.desc-conscious .desc-title {
    color: #FFA500;
}

.desc-unconscious .desc-connector {
    color: #666;
}

.desc-unconscious .desc-title {
    color: #666;
}

/* Mobile Layout - Stack vertically */
@media (max-width: 767.98px) {
    .evolution-pyramid-wrapper {
        gap: 2rem;
    }
    
    .evolution-pyramid {
        max-width: 100%;
    }
    
    .pyramid-gap {
        height: 15px;
    }
    
    .tier-enlightened {
        min-height: 80px;
        width: 60%;
    }
    
    .tier-conscious {
        min-height: 70px;
        width: 80%;
    }
    
    .tier-unconscious {
        min-height: 70px;
    }
    
    .pyramid-icon {
        font-size: 2rem;
    }
    
    .pyramid-label {
        font-size: 0.9rem;
    }
    
    .evolution-descriptions {
        gap: 1.5rem;
    }
    
    .desc-connector {
        width: 40px;
    }
}

/* Desktop Layout - Side by side */
@media (min-width: 768px) {
    .evolution-pyramid-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .evolution-pyramid {
        flex: 0 0 auto;
        width: 400px;
    }
    
    .pyramid-gap {
        height: 25px;
    }
    
    .tier-enlightened {
        min-height: 110px;
        width: 50%;
    }
    
    .tier-conscious {
        min-height: 100px;
        width: 75%;
    }
    
    .tier-unconscious {
        min-height: 100px;
        width: 100%;
    }
    
    .evolution-descriptions {
        flex: 0 0 auto;
        width: 450px;
        max-width: none;
    }
    
    .desc-connector {
        width: 60px;
    }
    
    .desc-title {
        font-size: 1.5rem;
    }
    
    .desc-text {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .evolution-pyramid {
        width: 450px;
    }
    
    .pyramid-gap {
        height: 30px;
    }
    
    .tier-enlightened {
        min-height: 120px;
    }
    
    .tier-conscious {
        min-height: 110px;
    }
    
    .tier-unconscious {
        min-height: 110px;
    }
    
    .evolution-descriptions {
        width: 500px;
    }
}