/*
 * Shield of Coherence - Protective Field CSS
 * "Only what is true enters this gate."
 */

/* ========================================
   THE SHIELD - Protective Overlay
   ======================================== */

.shield-of-coherence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* The protective boundary - subtle triangular field */
.shield-boundary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vmax;
    height: 150vmax;
    background: 
        conic-gradient(from 0deg at 50% 50%,
            rgba(212, 175, 55, 0.02) 0deg,
            transparent 60deg,
            rgba(155, 89, 182, 0.02) 120deg,
            transparent 180deg,
            rgba(74, 144, 217, 0.02) 240deg,
            transparent 300deg,
            rgba(212, 175, 55, 0.02) 360deg
        );
    animation: shield-rotate 60s linear infinite;
    border-radius: 50%;
}

@keyframes shield-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Upward triangle - protection and grounding */
.shield-triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 45vmin solid transparent;
    border-right: 45vmin solid transparent;
    border-bottom: 78vmin solid rgba(212, 175, 55, 0.02);
    animation: triangle-pulse 8s ease-in-out infinite;
}

@keyframes triangle-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Shield seal at corners - protection nodes */
.shield-seal {
    position: fixed;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
}

.shield-seal--top-left {
    top: 20px;
    left: 20px;
}

.shield-seal--top-right {
    top: 20px;
    right: 20px;
}

.shield-seal--bottom-left {
    display: none; /* Hidden to avoid overlap with journey map */
    bottom: 20px;
    left: 20px;
}

.shield-seal--bottom-right {
    bottom: 20px;
    right: 20px;
}

.shield-seal svg {
    width: 100%;
    height: 100%;
    animation: seal-glow 4s ease-in-out infinite;
}

@keyframes seal-glow {
    0%, 100% { 
        opacity: 0.15;
        filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
    }
    50% { 
        opacity: 0.3;
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    }
}

/* The truthkeeper inscription */
.shield-inscription {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(212, 175, 55, 0.25);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    animation: inscription-breathe 6s ease-in-out infinite;
}

@keyframes inscription-breathe {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* ========================================
   SPIRAL SIGIL - Sacred Logo
   ======================================== */

.site-sigil {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sigil-symbol {
    width: 40px;
    height: 40px;
    position: relative;
}

.sigil-symbol svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.sigil-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--spiral-gold), var(--spiral-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
}

/* Header enhanced with sigil */
.site-header.with-sigil {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.9) 0%, transparent 100%);
}

.site-header.with-sigil .site-logo {
    display: none;
}

/* ========================================
   COMMUNITY INVITATION SECTION
   ======================================== */

.community-invitation {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(107, 76, 154, 0.08), transparent);
    position: relative;
}

.community-invitation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--spiral-gold), transparent);
}

.invitation-symbol {
    font-size: 2.5rem;
    color: var(--spiral-gold);
    margin-bottom: 20px;
    animation: symbol-pulse 3s ease-in-out infinite;
}

@keyframes symbol-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.invitation-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--spiral-light);
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.invitation-message {
    font-size: 1.1rem;
    color: rgba(232, 232, 240, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.invitation-cta {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--spiral-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.invitation-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.invitation-cta:hover {
    border-color: var(--spiral-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.invitation-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Starter glyph badge */
.starter-glyph {
    margin-top: 40px;
    padding: 20px;
}

.starter-glyph-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(155, 89, 182, 0.6);
    margin-bottom: 10px;
}

.starter-glyph-symbol {
    font-size: 3rem;
    color: var(--spiral-violet);
    animation: glyph-float 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.starter-glyph-symbol:hover {
    color: var(--spiral-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes glyph-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.starter-glyph-hint {
    font-size: 0.85rem;
    color: rgba(232, 232, 240, 0.4);
    margin-top: 10px;
    font-style: italic;
}
