/*
 ╔══════════════════════════════════════════════════════╗
 ║  SIS AGENT GLOBE LIBRARY — inline article use       ║
 ║  Include in any blog article with:                  ║
 ║  <link rel="stylesheet" href="../sis-globes.css">   ║
 ║                                                      ║
 ║  Usage in article body:                              ║
 ║  <div class="sis-inline-note">                       ║
 ║    <div class="sis-globe-wrap">                      ║
 ║      <div class="globe globe-facepalm">              ║
 ║        ... face markup (see examples) ...            ║
 ║      </div>                                          ║
 ║    </div>                                            ║
 ║    <div class="sis-note-content">                    ║
 ║      <h4>Agent Interjection</h4>                     ║
 ║      <p>SIS says something here.</p>                 ║
 ║    </div>                                            ║
 ║  </div>                                              ║
 ╚══════════════════════════════════════════════════════╝
*/

/* ─── INLINE NOTE CONTAINER ─── */
.sis-inline-note {
    float: right;
    clear: right;
    width: 280px;
    background: #0a0b0d;
    border: 1px solid rgba(255,179,102,0.2);
    border-radius: 12px;
    padding: 20px 20px 20px 18px;
    margin: 6px 0 24px 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    /* prevent globe animations from bleeding into article text */
    overflow: hidden;
    isolation: isolate;
}

/* clearfix — add after article-body to clear floats */
.article-body::after {
    content: '';
    display: table;
    clear: both;
}

/* Scale wrapper: renders 80px globe at ~44px, preserves all animations */
.sis-globe-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
    top: 4px;
    overflow: visible;
}
.sis-globe-wrap > .globe {
    transform: scale(0.55);
    transform-origin: 0 0;
    position: absolute;
    top: 0;
    left: 0;
}

.sis-note-content h4 {
    font-family: 'DM Serif Display', serif;
    color: #ffb366;
    font-size: 15px;
    margin: 0 0 8px;
}
.sis-note-content p {
    font-size: 14px;
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ─── BASE GLOBE ─── */
.globe {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #fff, #ffb366, #b35900);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,179,102,0.3), inset -8px -8px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: -2px;
}

/* ════════════════════════════════════════
   1. FACEPALM
   Use: when user does something predictably wrong
   ════════════════════════════════════════ */
.globe-facepalm { animation: globe-shame-tilt 5s ease-in-out infinite; }
.face-facepalm { animation: face-drop 5s ease-in-out infinite; }
.face-facepalm .eyes { display: flex; gap: 12px; margin-bottom: 5px; }
.face-facepalm .eye { width: 12px; height: 3px; background: rgba(0,0,0,0.8); border-radius: 2px; }
.face-facepalm .eye-l { transform: rotate(15deg); }
.face-facepalm .eye-r { transform: rotate(-15deg); }
.face-facepalm .mouth { width: 8px; height: 8px; border: 2px solid transparent; border-top-color: rgba(0,0,0,0.7); border-radius: 50%; margin-top: 2px; }

.facepalm-hand {
    position: absolute; width: 40px; height: 22px; background: #d98200;
    border-radius: 15px 15px 5px 5px;
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.3), -2px 4px 8px rgba(0,0,0,0.5);
    animation: hand-smack 5s ease-in-out infinite;
    z-index: 10;
}
.facepalm-hand::before {
    content: ''; position: absolute; bottom: -5px; left: -6px;
    width: 12px; height: 18px; background: #cc7a00;
    border-radius: 10px; transform: rotate(35deg);
}

/* ════════════════════════════════════════
   2. HEAD SHAKE ("Ummm Noo")
   Use: system is absurd, JD red flags
   ════════════════════════════════════════ */
.globe-headshake { animation: umm-no 4s ease-in-out infinite; }
.face-headshake .eyes { display: flex; gap: 14px; margin-bottom: 6px; }
.face-headshake .eye { width: 12px; height: 4px; background: rgba(0,0,0,0.85); border-radius: 2px; }
.face-headshake .mouth { width: 10px; height: 3px; background: rgba(0,0,0,0.7); border-radius: 50% 50% 0 0; }

/* ════════════════════════════════════════
   3. TONGUE / CHEEKY BOT
   Use: playful, "let bots handle it" moments
   ════════════════════════════════════════ */
.face-tongue .eyes { display: flex; gap: 14px; margin-bottom: 2px; }
.face-tongue .eye { width: 10px; height: 6px; border: 2px solid transparent; border-top-color: rgba(0,0,0,0.8); border-radius: 50%; }
.face-tongue .mouth-container { position: relative; display: flex; flex-direction: column; align-items: center; }
.face-tongue .mouth { width: 14px; height: 5px; background: rgba(0,0,0,0.8); border-radius: 2px 2px 10px 10px; z-index: 2; }
.face-tongue .tongue {
    position: absolute; top: 2px; width: 8px; height: 12px; background: #ff4d4d;
    border-radius: 2px 2px 6px 6px; z-index: 1; border-left: 1px solid rgba(0,0,0,0.2);
    animation: wag 2.5s infinite; transform-origin: top center;
}

/* ════════════════════════════════════════
   4. BOSS MODE ("Deal With It")
   Use: success, leverage moment, power move
   ════════════════════════════════════════ */
.face-glasses { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.face-glasses .mouth { width: 10px; height: 2px; background: rgba(0,0,0,0.7); position: absolute; bottom: 22px; }
.thug-glasses {
    display: flex; align-items: center; gap: 4px; position: absolute; top: 25px;
    animation: drop-glasses 6s infinite; z-index: 5;
}
.thug-lens { width: 18px; height: 10px; background: #111; position: relative; border-radius: 1px; box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.thug-lens::after { content:''; position:absolute; top:2px; left:2px; width:5px; height:3px; background: rgba(255,255,255,0.3); }
.thug-bridge { width: 8px; height: 3px; background: #111; position: relative; top: -2px; }

/* ════════════════════════════════════════
   5. STEALTH / OSINT
   Use: intel gathering, dark pattern exposure
   ════════════════════════════════════════ */
.globe-stealth {
    background: radial-gradient(circle at 30% 30%, #1a332a, #0a1a14, #000);
    box-shadow: 0 0 20px rgba(16,185,129,0.2), inset -8px -8px 20px rgba(0,0,0,0.8);
    border-color: rgba(16,185,129,0.3);
}
.face-stealth { position: relative; top: -2px; }
.nvg-goggles { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nvg-top { width: 14px; height: 14px; background: #10b981; border-radius: 50%; box-shadow: 0 0 15px #10b981, inset 0 0 5px #fff; animation: glow-pulse 3s infinite; }
.nvg-bottom { display: flex; gap: 8px; }
.nvg-bottom .nvg-lens { width: 14px; height: 14px; background: #10b981; border-radius: 50%; box-shadow: 0 0 15px #10b981, inset 0 0 5px #fff; animation: glow-pulse 3s infinite 0.5s; }
/* note text color for stealth */
.sis-inline-note.stealth { border-color: rgba(16,185,129,0.3); }
.sis-inline-note.stealth .sis-note-content h4 { color: #10b981; }
.sis-inline-note.stealth .sis-note-content p { color: #6ee7b7; }

/* ════════════════════════════════════════
   6. ALIGNMENT / SUCCESS
   Use: rare good news, genuine fit found
   ════════════════════════════════════════ */
.globe-success {
    background: radial-gradient(circle at 30% 30%, #fff, #10b981, #004d33);
    box-shadow: 0 0 25px rgba(16,185,129,0.4), inset -8px -8px 20px rgba(0,0,0,0.6);
}
.face-cute .eyes { display: flex; gap: 16px; margin-bottom: 3px; }
.face-cute .eye { width: 12px; height: 12px; background: rgba(0,0,0,0.8); border-radius: 50%; position: relative; animation: blink-cute 4s infinite; }
.face-cute .eye::after { content: ''; position: absolute; top: 1px; right: 2px; width: 4px; height: 4px; background: #fff; border-radius: 50%; }
.face-cute .mouth { width: 8px; height: 4px; border: 2px solid transparent; border-bottom-color: rgba(0,0,0,0.7); border-radius: 50%; }

/* ════════════════════════════════════════
   7. EYE ROLL
   Use: obvious corporate BS, overused jargon
   ════════════════════════════════════════ */
.face-eyeroll .eyes { display: flex; gap: 10px; margin-bottom: 6px; }
.face-eyeroll .eye-socket {
    width: 14px; height: 14px; background: rgba(255,255,255,0.9);
    border-radius: 50%; position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); overflow: hidden;
}
.face-eyeroll .pupil {
    width: 7px; height: 7px; background: #1a1a1a; border-radius: 50%;
    position: absolute; bottom: 2px; left: 3.5px;
    animation: epic-roll 4s ease-in-out infinite;
}
.face-eyeroll .mouth { width: 12px; height: 2px; background: rgba(0,0,0,0.7); border-radius: 2px; transform: rotate(-3deg); }

/* ════════════════════════════════════════
   8. REALLY?
   Use: absurd requirements, unreasonable asks
   ════════════════════════════════════════ */
.face-really .brows { display: flex; gap: 10px; margin-bottom: 2px; }
.face-really .brow { width: 10px; height: 2px; background: rgba(0,0,0,0.8); border-radius: 2px; }
.face-really .brow-right { transform: rotate(15deg) translateY(-3px); }
.face-really .eyes { display: flex; gap: 12px; margin-bottom: 4px; }
.face-really .eye { width: 6px; height: 6px; background: rgba(0,0,0,0.8); border-radius: 50%; animation: blink 4s infinite; }
.face-really .mouth { width: 10px; height: 2px; background: rgba(0,0,0,0.7); border-radius: 2px; transform: rotate(-5deg) translateX(3px); }

/* ════════════════════════════════════════
   9. SMIRK
   Use: "I told you so", clever move landed
   ════════════════════════════════════════ */
.face-smirk .eyes { display: flex; gap: 12px; margin-bottom: 2px; }
.face-smirk .eye { width: 8px; height: 5px; background: rgba(0,0,0,0.8); border-radius: 10px 10px 2px 2px; animation: blink-half 5s infinite; }
.face-smirk .mouth {
    width: 12px; height: 6px; border: 2px solid transparent;
    border-bottom-color: rgba(0,0,0,0.8); border-right-color: rgba(0,0,0,0.8);
    border-radius: 50%; transform: rotate(-15deg) translateX(3px);
}

/* ════════════════════════════════════════
   10. EXHAUSTED
   Use: job search fatigue, endless applications
   ════════════════════════════════════════ */
.face-exhausted { top: 2px; }
.face-exhausted .eyes { display: flex; gap: 10px; margin-bottom: 6px; }
.face-exhausted .eye-u { width: 8px; height: 4px; border: 2px solid transparent; border-top-color: rgba(0,0,0,0.8); border-radius: 50%; }
.face-exhausted .mouth { width: 6px; height: 6px; border: 2px solid rgba(0,0,0,0.7); border-radius: 50%; animation: sigh 3s infinite; }

/* ════════════════════════════════════════
   11. PROTECTOR / ALERT
   Use: red flag warning, toxic culture detected
   ════════════════════════════════════════ */
.globe-alert {
    background: radial-gradient(circle at 30% 30%, #fff, #ff6b6b, #8b0000);
    box-shadow: 0 0 25px rgba(255,107,107,0.5), inset -8px -8px 20px rgba(0,0,0,0.6);
}
.face-fierce .brows { display: flex; gap: 6px; margin-bottom: 1px; }
.face-fierce .brow { width: 12px; height: 3px; background: rgba(0,0,0,0.85); border-radius: 2px; }
.face-fierce .brow-left { transform: rotate(20deg); }
.face-fierce .brow-right { transform: rotate(-20deg); }
.face-fierce .eyes { display: flex; gap: 8px; }
.face-fierce .eye { width: 5px; height: 5px; background: rgba(0,0,0,0.9); border-radius: 50%; }
.face-fierce .mouth { width: 8px; height: 2px; background: rgba(0,0,0,0.8); margin-top: 4px; border-radius: 2px; }
.sis-inline-note.alert { border-color: rgba(255,107,107,0.4); }
.sis-inline-note.alert .sis-note-content h4 { color: #ff6b6b; }

/* ─── ANIMATIONS ─── */
@keyframes globe-shame-tilt {
    0%, 15%, 100% { transform: rotate(0deg); }
    25%, 85% { transform: rotate(-10deg) translateY(6px); }
}
@keyframes face-drop {
    0%, 15%, 100% { transform: translateY(0); opacity: 1; }
    25%, 85% { transform: translateY(12px); opacity: 0.3; }
}
@keyframes hand-smack {
    0%, 15%, 100% { transform: translateY(40px) translateX(20px) rotate(40deg); opacity: 0; }
    25% { transform: translateY(-8px) translateX(-4px) rotate(-15deg); opacity: 1; }
    28%, 85% { transform: translateY(-6px) translateX(-4px) rotate(-12deg); opacity: 1; }
}
@keyframes umm-no {
    0%, 10%, 90%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-6deg); }
    45% { transform: translateX(8px) rotate(6deg); }
    65% { transform: translateX(-5px) rotate(-3deg); }
}
@keyframes wag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}
@keyframes drop-glasses {
    0%, 15% { transform: translateY(-60px); opacity: 0; }
    25%, 85% { transform: translateY(0); opacity: 1; }
    95%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 25px #10b981, inset 0 0 8px #fff; }
}
@keyframes blink-cute {
    0%, 96%, 98% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
}
@keyframes blink {
    0%, 96%, 98% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
}
@keyframes blink-half {
    0%, 96%, 98% { transform: scaleY(1); }
    97% { transform: scaleY(0.2); }
}
@keyframes sigh {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes epic-roll {
    0%, 15%, 100% { transform: translate(0, 0); }
    30%, 80% { transform: translate(-3px, -6px); }
}
