/* Mention system styles */
.mention-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    background: rgba(0, 102, 204, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.mention-link:hover {
    background: rgba(0, 102, 204, 0.2);
    text-decoration: none;
}

/* Internal post link styles */
.internal-post-link {
    color: #d63384;
    text-decoration: none;
    font-weight: 500;
    background: rgba(214, 51, 132, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(214, 51, 132, 0.2);
    display: inline-block;
}

.internal-post-link:hover {
    background: rgba(214, 51, 132, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(214, 51, 132, 0.3);
}

/* Mention autocomplete dropdown */
.mention-autocomplete {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.mention-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.mention-autocomplete-item:last-child {
    border-bottom: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.selected {
    background: #f0f0f0;
}

.mention-autocomplete-item.selected {
    background: #e6f3ff;
}

/* Mention input helper */
.mention-input-wrapper {
    position: relative;
    width: 100%;
}

.mention-input-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure admin form textareas keep full width */
.admin-inline-form .mention-input-wrapper {
    width: 100%;
}

.admin-inline-form .mention-input-wrapper .reply-textarea {
    width: 100%;
}

.mention-preview {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
}

.mention-preview strong {
    color: #333;
}

.mention-count {
    color: #0066cc;
    font-weight: 500;
}

/* Responsive mention dropdown */
@media (max-width: 768px) {
    .mention-autocomplete {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 8px 8px 0 0;
        max-height: 50vh;
        border: none;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
    }
    
    .mention-autocomplete-item {
        padding: 12px 16px;
        font-size: 16px;
    }
}