/**
 * Content Status Indicator Styles
 *
 * Visual indicators for read/unread, sent/received status on content items
 */

.content-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===== Status Chips ===== */

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-chip i {
    font-size: 0.65rem;
}

/* ===== Unread Status ===== */

.status-unread {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-unread i {
    animation: pulse-status 1.5s ease-in-out infinite;
}

/* ===== Unsent Status ===== */

.status-unsent {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-unsent i {
    animation: spin 2s linear infinite;
}

/* ===== Sent Status ===== */

.status-sent {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* ===== Received Status ===== */

.status-received {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== Timestamp ===== */

.status-timestamp {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== On Unread Cards ===== */

.content-card.unread .content-status-indicator {
    opacity: 1;
}

.content-card.read .content-status-indicator {
    opacity: 0.6;
}

/* ===== Animations ===== */

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .content-status-indicator {
        gap: 4px;
    }

    .status-chip {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .status-timestamp {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .status-chip {
        padding: 1px 5px;
        font-size: 0.6rem;
    }

    .status-chip i {
        font-size: 0.6rem;
    }

    .status-timestamp {
        display: none;
    }
}

/* ===== Dark Mode ===== */

@media (prefers-color-scheme: dark) {
    .status-unread {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
    }

    .status-unsent {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
    }

    .status-sent {
        background: rgba(249, 115, 22, 0.2);
        border-color: rgba(249, 115, 22, 0.4);
    }

    .status-received {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }
}
