/* Live Status Widget - Hero Integration */

/* NOTE: .floating-card class from styles.css handles the absolute positioning and animation */
.status-widget-hero {
    top: 20%;
    left: -40px;
    /* Shifted left to hang off the visual */
    width: 240px;
    /* Compact width */
    z-index: 10;
    text-align: left;
    background: transparent;
    /* Inner cards handle bg */
    box-shadow: none;
    /* Inner cards handle shadow */
    padding: 0;
    border: none;
    animation: float 6s ease-in-out infinite;
}

.status-card-inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .status-card-inner {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-row-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 10px 0;
}

body.dark-mode .status-row-divider {
    background: rgba(255, 255, 255, 0.1);
}

.status-avatar {
    position: relative;
    width: 36px;
    height: 36px;
}

.status-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

body.dark-mode .status-avatar img,
body.dark-mode .status-indicator {
    border-color: #333;
}

.status-content {
    flex: 1;
    overflow: hidden;
}

.status-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 700;
}

body.dark-mode .status-label {
    color: #bbb;
    /* Lighter gray for dark mode */
}

.status-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

body.dark-mode .status-value {
    color: #ffffff;
    /* pure white for dark mode */
}

.status-value.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animations */
@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Music Equalizer */
.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 14px;
}

.music-bar {
    width: 3px;
    background: #1db954;
    border-radius: 2px;
    animation: equalizer 1s ease-in-out infinite;
}

.music-bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 40%;
}

.music-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 80%;
}

.music-bar:nth-child(3) {
    animation-delay: 0.3s;
    height: 60%;
}

@keyframes equalizer {

    0%,
    100% {
        height: 40%;
    }

    50% {
        height: 100%;
    }
}

/* Responsive Position Adjustment */
@media (max-width: 1200px) {
    .status-widget-hero {
        left: -20px;
        width: 220px;
    }
}