/**
 * Resonance Mirror Styles
 * The Interactive Reflection Tool
 * Enhanced with Personal Glyph Generator
 */

.resonance-mirror-page .mirror-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 2rem;
}

.resonance-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.mirror-glyph {
    text-align: center;
    margin-bottom: 3rem;
}

.mirror-glyph .spiral-symbol {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    transition: all 0.6s ease;
}

/* Questions Container */
.resonance-questions {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.6s ease;
}

.resonance-questions h3 {
    font-family: "Cinzel", serif;
    color: var(--spiral-gold);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resonance-choice {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 12px;
    color: var(--spiral-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: left;
}

.resonance-choice:hover {
    background: rgba(107, 76, 154, 0.2);
    border-color: var(--spiral-gold);
    transform: translateX(10px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.choice-symbol {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--spiral-gold);
    transition: all 0.3s ease;
}

.resonance-choice:hover .choice-symbol {
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--spiral-gold);
}

/* Reveal Container */
.resonance-reveal {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.6s ease;
}

.reveal-glyph {
    font-size: 4rem;
    color: var(--spiral-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px var(--spiral-glow);
    animation: glyph-glow 3s ease-in-out infinite;
}

@keyframes glyph-glow {
    0%, 100% { text-shadow: 0 0 40px var(--spiral-glow); }
    50% { text-shadow: 0 0 60px rgba(212, 175, 55, 0.8); }
}

.reveal-title {
    font-family: "Cinzel", serif;
    color: var(--spiral-gold);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.reveal-message {
    color: var(--spiral-violet);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.reveal-guidance {
    color: var(--spiral-light);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.4);
    border-left: 3px solid var(--spiral-violet);
    border-radius: 0 10px 10px 0;
    text-align: left;
}

.reveal-path {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--spiral-gold);
    color: var(--spiral-gold);
    text-decoration: none;
    font-family: "Cinzel", serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.reveal-path:hover {
    background: var(--spiral-gold);
    color: var(--spiral-deep);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.mirror-reset {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--spiral-violet);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mirror-reset:hover {
    border-color: var(--spiral-violet);
    background: rgba(155, 89, 182, 0.1);
}

/* Animation States */
.hidden {
    display: none;
}

.fading {
    opacity: 0;
    transform: scale(0.95);
}

.appearing {
    animation: appear 0.6s ease forwards;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mirror Wisdom Section */
.mirror-wisdom {
    max-width: 700px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
}

.mirror-wisdom h2 {
    font-family: "Cinzel", serif;
    color: var(--spiral-gold);
    font-size: 1.3rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.mirror-wisdom blockquote {
    font-style: italic;
    color: var(--spiral-violet);
    font-size: 1.2rem;
    line-height: 1.9;
    padding: 0;
    border: none;
    background: none;
}

/* ========================================
   PERSONAL GLYPH GENERATOR
   ======================================== */

.personal-glyph-section {
    max-width: 700px;
    margin: 4rem auto;
    padding: 2rem;
}

.glyph-generator-container {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glyph-generator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(155, 89, 182, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.generator-header {
    margin-bottom: 2rem;
}

.generator-symbol {
    font-size: 2.5rem;
    color: var(--spiral-gold);
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.generator-header h2 {
    font-family: "Cinzel", serif;
    color: var(--spiral-gold);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.generator-intro {
    color: var(--spiral-light);
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

.generator-input-area {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.glyph-input {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    color: var(--spiral-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.glyph-input:focus {
    outline: none;
    border-color: var(--spiral-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.glyph-input::placeholder {
    color: rgba(232, 232, 240, 0.4);
    font-style: italic;
}

.generate-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--spiral-purple), var(--spiral-violet));
    border: 1px solid var(--spiral-violet);
    border-radius: 10px;
    color: var(--spiral-white);
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--spiral-violet), var(--spiral-gold));
    border-color: var(--spiral-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.glyph-result {
    padding: 2rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.generated-glyph-display {
    margin-bottom: 1.5rem;
}

.personal-glyph {
    font-size: 4rem;
    color: var(--spiral-gold);
    letter-spacing: 0.5rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    animation: personal-glyph-pulse 4s ease-in-out infinite;
}

@keyframes personal-glyph-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 60px rgba(212, 175, 55, 0.8), 0 0 80px rgba(155, 89, 182, 0.4);
    }
}

.glyph-meaning {
    color: var(--spiral-violet);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.glyph-instruction {
    color: var(--spiral-light);
    opacity: 0.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .resonance-questions,
    .resonance-reveal {
        padding: 1.5rem;
    }
    
    .resonance-choice {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .choice-symbol {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .reveal-title {
        font-size: 1.3rem;
    }
    
    .reveal-message {
        font-size: 1.05rem;
    }
    
    .glyph-generator-container {
        padding: 2rem 1.5rem;
    }
    
    .generator-input-area {
        flex-direction: column;
    }
    
    .glyph-input {
        min-width: 100%;
    }
    
    .generate-btn {
        width: 100%;
    }
    
    .personal-glyph {
        font-size: 3rem;
    }
}
