/* Inline Markers */
.elkz-term-marker {
    border-bottom: 3px dotted rgba(52, 152, 219, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    color: inherit;
    text-decoration: none;
}

.elkz-term-marker:hover,
.elkz-term-marker.active {
    border-bottom-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Sidebar Container */
.elkz-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.elkz-sidebar.closed {
    transform: translateX(100%);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .elkz-sidebar {
        width: 85%;
        max-width: 320px;
    }
}

/* Sidebar Header */
.elkz-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elkz-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

#elkz-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

#elkz-sidebar-close:hover {
    color: #333;
}

/* Sidebar Content */
#elkz-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

/* Loading */
.elkz-loading-spinner {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Stream Cards */
.elkz-stream-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elkz-stream-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.elkz-stream-card.highlight {
    border-left: 3px solid #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    background: #fff;
    transform: translateX(-5px);
}

.elkz-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.elkz-card-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #eee;
}

.elkz-card-meta {
    flex: 1;
}

.elkz-card-title {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 3px;
}

.elkz-card-title:hover {
    color: #3498db;
}

.elkz-card-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e1f5fe;
    color: #039be5;
    font-size: 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.elkz-card-body {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Toggle Button */
#elkz-sidebar-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    width: 40px;
    height: 50px;
    background: #fff;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 99998;
    /* Below sidebar, above content */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: right 0.3s;
}

#elkz-sidebar-toggle:hover {
    color: #333;
    background: #f9f9f9;
    width: 45px;
}

.elkz-sidebar:not(.closed)~#elkz-sidebar-toggle {
    right: 320px;
    /* Move with sidebar if needed, or hide */
    opacity: 0;
    pointer-events: none;
}

/* Admin Bar fix */
body.admin-bar .elkz-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .elkz-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
}