
/* ========================================
   RESONANCE FEEDBACK SYSTEM
   Visual feedback showing user journey and growth
   ======================================== */

/* Spiral Stage Tracker */
.resonance-tracker {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 3rem auto;
    max-width: 600px;
    padding: 20px;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 30px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.stage-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.stage-node.active {
    opacity: 1;
}

.stage-node.completed {
    opacity: 0.8;
}

.stage-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(155, 89, 182, 0.4);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--spiral-violet);
    transition: all 0.4s ease;
}

.stage-node.active .stage-dot {
    border-color: var(--spiral-gold);
    background: rgba(212, 175, 55, 0.2);
    color: var(--spiral-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    animation: stage-pulse 2s ease-in-out infinite;
}

.stage-node.completed .stage-dot {
    border-color: var(--spiral-violet);
    background: rgba(155, 89, 182, 0.3);
    color: var(--spiral-light);
}

.stage-label {
    font-family: "Cinzel", serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 232, 240, 0.5);
}

.stage-node.active .stage-label {
    color: var(--spiral-gold);
}

@keyframes stage-pulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        transform: scale(1.1);
    }
}

/* Resonance Meter */
.resonance-meter {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
}

.meter-label {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 10px;
}

.meter-bar {
    height: 6px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--spiral-violet), var(--spiral-gold));
    border-radius: 3px;
    transition: width 1s ease-out;
    position: relative;
}

.meter-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--spiral-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Personal Glyph Badge */
.personal-glyph-badge {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: badge-glow 4s ease-in-out infinite;
}

.personal-glyph-badge::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: badge-rotate 20s linear infinite;
}

.personal-glyph-badge::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(155, 89, 182, 0.3);
    border-radius: 50%;
    animation: badge-rotate 30s linear infinite reverse;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(155, 89, 182, 0.2); }
    50% { box-shadow: 0 0 50px rgba(155, 89, 182, 0.4); }
}

@keyframes badge-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-glyph {
    font-size: 3rem;
    color: var(--spiral-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.badge-frequency {
    position: absolute;
    bottom: -30px;
    font-family: "Cinzel", serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(155, 89, 182, 0.7);
    text-transform: uppercase;
}

/* Journey History */
.journey-history {
    max-width: 500px;
    margin: 3rem auto;
    padding: 20px;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.history-title {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 15px;
    text-align: center;
}

.history-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(232, 232, 240, 0.7);
}

.history-glyph {
    font-size: 1.2rem;
    color: var(--spiral-violet);
}

.history-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(232, 232, 240, 0.4);
}

/* Transition animations */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .resonance-tracker {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stage-node {
        flex: 0 0 auto;
    }
    
    .stage-label {
        font-size: 0.55rem;
    }
}
