/* Live Pulse Frontend Styles */

.live-pulse-content {
    background-color: #fffbcc; /* Light yellow highlight */
    padding: 2px 4px;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.live-pulse-content:hover {
    background-color: #fff2aa;
}

.live-pulse-content sup {
    color: #0073aa;
    font-weight: bold;
    margin-left: 2px;
}

/* Dependent content styling */
.live-pulse-dependent {
    background-color: #fce4ec; /* Light pink highlight */
    padding: 1px 2px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.live-pulse-dependent:hover {
    background-color: #f8bbd9;
}

/* Version popup */
.live-pulse-popup {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 1000;
    min-width: 250px;
    max-width: 400px;
    display: none;
}

.live-pulse-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.live-pulse-version {
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.live-pulse-version:hover {
    background-color: #f5f5f5;
}

.live-pulse-version.current {
    background-color: #e7f4fd;
    border-left: 3px solid #0073aa;
}

.live-pulse-version-date {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}

.live-pulse-version-content {
    color: #333;
    font-weight: 500;
}

/* Footnotes section */
.live-pulse-footnotes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.live-pulse-footnotes h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.live-pulse-footnote {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.live-pulse-footnote-number {
    color: #0073aa;
    font-weight: bold;
    margin-right: 6px;
}

.live-pulse-footnote-source {
    color: #666;
    font-style: italic;
    margin-left: 4px;
}

/* Loading states */
.live-pulse-loading {
    background-color: #f0f0f0;
    color: #666;
    font-style: italic;
}

.live-pulse-loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Error states */
.live-pulse-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
    padding: 4px 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .live-pulse-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .live-pulse-content {
        padding: 3px 6px;
    }
}

/* Admin styles */
.live-pulse-admin-notice {
    background: #fff;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

#live-pulse-toolbar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#live-pulse-toolbar .button {
    font-size: 12px;
    height: auto;
    line-height: 1.4;
    padding: 4px 8px;
}
