@import url('/application/modules/sidebox_online_players_extended/assets/css/blood-status.css');

.blood-status-theme.theme-obsidian {
    --bm-accent: #21d4c6;
    --bm-accent-strong: #3ef5e1;
    --bm-text: #e8f1ef;
    --bm-muted: #9aa7a4;
    --bm-success: #4ef0b3;
    --bm-danger: #ff6c62;
    --bm-hover-shadow: 0 0 32px rgba(33, 212, 198, 0.45), inset 0 0 16px rgba(33, 212, 198, 0.25);
    --bm-tooltip-bg: rgba(5, 8, 10, 0.92);
    --bm-tooltip-text: #d8f8f2;
    --bm-pulse: #7df3e5;

    --obsidian-deep: #050607;
    --obsidian-mid: #0b1115;
    --obsidian-panel: #0f161b;
    --obsidian-border: #1f2d2b;
    --obsidian-rune: rgba(33, 212, 198, 0.3);
    --obsidian-ember: #f2c074;
}

.blood-status-theme.theme-obsidian * {
    font-family: 'Cinzel', 'Times New Roman', serif;
}

.blood-status-theme.theme-obsidian .player-numbers,
.blood-status-theme.theme-obsidian .meta-value,
.blood-status-theme.theme-obsidian .progress-text,
.blood-status-theme.theme-obsidian .event-time {
    font-family: 'Orbitron', monospace;
}

.blood-status-theme.theme-obsidian .blood-status-container {
    background:
        radial-gradient(circle at 15% 20%, rgba(33, 212, 198, 0.08), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(242, 192, 116, 0.06), transparent 50%),
        linear-gradient(145deg, var(--obsidian-deep) 0%, var(--obsidian-mid) 45%, var(--obsidian-deep) 100%);
    border: 1px solid rgba(33, 212, 198, 0.35);
    border-radius: 12px;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(0, 0, 0, 0.7);
}

.blood-status-theme.theme-obsidian .blood-status-container::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(33, 212, 198, 0.18);
    border-radius: 10px;
    background-image:
        repeating-linear-gradient(135deg, rgba(33, 212, 198, 0.08) 0 2px, transparent 2px 12px),
        repeating-linear-gradient(45deg, rgba(33, 212, 198, 0.05) 0 1px, transparent 1px 10px);
    background-size: 220% 220%, 180% 180%;
    animation: runeDrift 22s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

.blood-status-theme.theme-obsidian .blood-status-container::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(33, 212, 198, 0.5);
    border-radius: 10px;
    pointer-events: none;
    background: none;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(33, 212, 198, 0.35));
    clip-path: polygon(
        0% 10%, 6% 0%, 18% 2%, 30% 0%, 42% 4%, 54% 0%, 68% 3%, 82% 0%, 94% 4%, 100% 12%,
        98% 24%, 100% 38%, 96% 50%, 100% 64%, 96% 78%, 100% 90%,
        92% 100%, 78% 96%, 62% 100%, 50% 96%, 38% 100%, 22% 96%, 8% 100%,
        0% 88%, 4% 74%, 0% 62%, 4% 46%, 0% 30%
    );
}

@keyframes obsidianPulse {
    0%, 100% {
        box-shadow:
            0 16px 30px rgba(0, 0, 0, 0.6),
            inset 0 0 0 1px rgba(33, 212, 198, 0.08);
    }
    50% {
        box-shadow:
            0 20px 34px rgba(0, 0, 0, 0.7),
            0 0 18px rgba(33, 212, 198, 0.25),
            inset 0 0 0 1px rgba(33, 212, 198, 0.2);
    }
}

.blood-status-theme.theme-obsidian .blood-status-container.online {
    animation: fadeInScale 0.5s ease-out, obsidianPulse 4s ease-in-out infinite;
}

@keyframes runeDrift {
    0% {
        background-position: 0 0, 0 0;
        opacity: 0.25;
    }
    50% {
        background-position: 80px 120px, -60px 90px;
        opacity: 0.45;
    }
    100% {
        background-position: 160px 240px, -120px 180px;
        opacity: 0.25;
    }
}

.blood-status-theme.theme-obsidian .realm-header {
    background: linear-gradient(90deg, #0b1317 0%, #122025 50%, #0b1317 100%);
    border-bottom: 1px solid #1b2b2a;
    color: var(--bm-text);
    text-shadow:
        0 0 10px rgba(33, 212, 198, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
    animation: runeSweep 8s linear infinite;
    background-size: 200% 100%;
}

.blood-status-theme.theme-obsidian .realm-header::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(33, 212, 198, 0.6), transparent);
    opacity: 0.8;
}

@keyframes runeSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.blood-status-theme.theme-obsidian .status-icon.online {
    background: radial-gradient(circle, #6ef3e0 0%, #14a99b 55%, #0b423e 100%);
    box-shadow: 0 0 16px rgba(33, 212, 198, 0.6);
    animation: obsidianStatusPulse 1.8s ease-in-out infinite;
}

.blood-status-theme.theme-obsidian .status-icon.offline {
    background: radial-gradient(circle, #ff7a71 0%, #c94a44 55%, #5b1c1a 100%);
    box-shadow: 0 0 12px rgba(201, 74, 68, 0.6);
}

@keyframes obsidianStatusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(33, 212, 198, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 22px rgba(33, 212, 198, 0.75);
    }
}

.blood-status-theme.theme-obsidian .realm-body {
    background: rgba(5, 8, 10, 0.55);
    color: var(--bm-text);
}

.blood-status-theme.theme-obsidian .player-count-text span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bm-muted);
}

.blood-status-theme.theme-obsidian .player-numbers {
    color: var(--bm-accent-strong);
    text-shadow: 0 0 10px rgba(33, 212, 198, 0.4);
    font-size: 18px;
}

.blood-status-theme.theme-obsidian .heartbeat-path {
    stroke: rgba(126, 235, 221, 0.55);
    filter: drop-shadow(0 0 8px rgba(33, 212, 198, 0.6));
}

.blood-status-theme.theme-obsidian .heartbeat-trace {
    stroke: var(--bm-accent-strong);
    filter: drop-shadow(0 0 10px rgba(33, 212, 198, 0.7));
}

.blood-status-theme.theme-obsidian .heartbeat-flat {
    stroke: rgba(232, 241, 239, 0.45);
    filter: drop-shadow(0 0 4px rgba(33, 212, 198, 0.25));
}

.blood-status-theme.theme-obsidian .blood-progress {
    background: #0a0f12;
    border: 1px solid #273838;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.blood-status-theme.theme-obsidian .blood-progress-bar {
    background: linear-gradient(90deg, #0c2b2a 0%, #21d4c6 50%, #0c2b2a 100%);
    box-shadow: 0 0 12px rgba(33, 212, 198, 0.35);
    animation: shardFlow 5s linear infinite;
}

.blood-status-theme.theme-obsidian .blood-progress-bar::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    opacity: 0.6;
}

@keyframes shardFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.blood-status-theme.theme-obsidian .progress-text {
    color: var(--bm-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.blood-status-theme.theme-obsidian .realm-meta-grid {
    gap: 10px 12px;
}

.blood-status-theme.theme-obsidian .meta-item {
    background: rgba(12, 18, 22, 0.7);
    border: 1px solid rgba(33, 212, 198, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.blood-status-theme.theme-obsidian .meta-label {
    color: var(--bm-muted);
    letter-spacing: 1.5px;
}

.blood-status-theme.theme-obsidian .meta-value {
    color: var(--bm-accent-strong);
    text-shadow: 0 0 8px rgba(33, 212, 198, 0.35);
}

.blood-status-theme.theme-obsidian .mood-pill {
    background: radial-gradient(circle at 30% 30%, rgba(33, 212, 198, 0.65) 0%, rgba(6, 42, 39, 0.9) 70%);
    border: 1px solid rgba(33, 212, 198, 0.4);
    color: var(--bm-text);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.blood-status-theme.theme-obsidian .faction-balance {
    border-top: 1px dashed rgba(33, 212, 198, 0.35);
}

.blood-status-theme.theme-obsidian .faction-title {
    color: var(--bm-muted);
    letter-spacing: 2px;
}

.blood-status-theme.theme-obsidian .faction-count.horde {
    color: #d35b5b;
    text-shadow: 0 0 8px rgba(211, 91, 91, 0.45);
}

.blood-status-theme.theme-obsidian .faction-count.alliance {
    color: #5b8fd3;
    text-shadow: 0 0 8px rgba(91, 143, 211, 0.45);
}

.blood-status-theme.theme-obsidian .faction-line-track {
    background: rgba(6, 12, 14, 0.7);
    border: 1px solid rgba(33, 212, 198, 0.25);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.blood-status-theme.theme-obsidian .faction-line-center {
    background: rgba(33, 212, 198, 0.8);
    box-shadow: 0 0 10px rgba(33, 212, 198, 0.7);
}

.blood-status-theme.theme-obsidian .faction-line {
    background: linear-gradient(180deg, #0c1418, #070c10);
    border: 1px solid rgba(33, 212, 198, 0.22);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.04),
        inset 0 -2px 4px rgba(0, 0, 0, 0.7),
        0 8px 14px rgba(0, 0, 0, 0.35);
}

.blood-status-theme.theme-obsidian .faction-line::before {
    background-image: repeating-linear-gradient(90deg, rgba(33, 212, 198, 0.35) 0 6px, transparent 6px 18px);
    opacity: 0.35;
}

.blood-status-theme.theme-obsidian .faction-line::after {
    background: linear-gradient(90deg, rgba(126, 235, 221, 0.18), transparent 20%, transparent 80%, rgba(126, 235, 221, 0.18));
    opacity: 0.6;
}

.blood-status-theme.theme-obsidian .faction-line-fill.horde {
    background: linear-gradient(90deg, #3d1212 0%, #d35b5b 60%, #3d1212 100%);
    box-shadow: 0 0 10px rgba(211, 91, 91, 0.35);
}

.blood-status-theme.theme-obsidian .faction-line-fill.alliance {
    background: linear-gradient(90deg, #0b2340 0%, #5b8fd3 60%, #0b2340 100%);
    box-shadow: 0 0 10px rgba(91, 143, 211, 0.35);
}

.blood-status-theme.theme-obsidian .faction-label.horde {
    color: #d35b5b;
}

.blood-status-theme.theme-obsidian .faction-label.alliance {
    color: #5b8fd3;
}

.blood-status-theme.theme-obsidian .faction-value {
    color: var(--bm-text);
}

.blood-status-theme.theme-obsidian .faction-ratio {
    color: var(--obsidian-ember);
}

.blood-status-theme.theme-obsidian .status-events {
    border-top: 1px solid rgba(33, 212, 198, 0.25);
}

.blood-status-theme.theme-obsidian .events-title {
    color: var(--bm-muted);
    letter-spacing: 2px;
}

.blood-status-theme.theme-obsidian .event-item {
    border-left: 2px solid rgba(33, 212, 198, 0.25);
    padding-left: 8px;
    animation: obsidianEvent 0.5s ease-out both;
}

.blood-status-theme.theme-obsidian .event-item:nth-child(2) { animation-delay: 0.08s; }
.blood-status-theme.theme-obsidian .event-item:nth-child(3) { animation-delay: 0.16s; }
.blood-status-theme.theme-obsidian .event-item:nth-child(4) { animation-delay: 0.24s; }

@keyframes obsidianEvent {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blood-status-theme.theme-obsidian .event-title {
    color: var(--bm-text);
}

.blood-status-theme.theme-obsidian .event-message {
    color: rgba(232, 241, 239, 0.6);
}

.blood-status-theme.theme-obsidian .event-status_up .event-title {
    color: #8df5c6;
}

.blood-status-theme.theme-obsidian .event-status_down .event-title {
    color: #ff8b82;
}

.blood-status-theme.theme-obsidian .event-restart .event-title {
    color: var(--obsidian-ember);
}

.blood-status-theme.theme-obsidian .realm-offline {
    color: #ff6c62;
    font-family: 'Cinzel', 'Times New Roman', serif;
    text-shadow: 0 0 12px rgba(255, 108, 98, 0.5);
}

.blood-status-theme.theme-obsidian .realmlist-container {
    background: linear-gradient(135deg, #0b1116 0%, #101920 100%);
    border: 1px solid #263737;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.55),
        inset 0 0 18px rgba(0, 0, 0, 0.7);
    isolation: isolate;
}

.blood-status-theme.theme-obsidian .realmlist-container::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 8px;
    border: 1px solid rgba(33, 212, 198, 0.2);
    background:
        repeating-linear-gradient(90deg, rgba(33, 212, 198, 0.18) 0 10px, transparent 10px 22px),
        repeating-linear-gradient(0deg, rgba(33, 212, 198, 0.12) 0 8px, transparent 8px 18px);
    opacity: 0.4;
    animation: none;
    pointer-events: none;
    z-index: 0;
}

.blood-status-theme.theme-obsidian .realmlist-container > * {
    position: relative;
    z-index: 1;
}

.blood-status-theme.theme-obsidian .realmlist-label {
    color: var(--bm-muted);
    letter-spacing: 2px;
}

.blood-status-theme.theme-obsidian .realmlist-text {
    color: var(--bm-accent-strong);
    text-shadow: 0 0 10px rgba(33, 212, 198, 0.4);
}

.blood-status-theme.theme-obsidian .blood-drop {
    display: none;
}
